|
Thank you very much, now I understand ! 
|
|
|
|
|
Unless I am mistaken, := allows you to pass variables by name vs. by position (example below is freehand).
Example sub: sub test (byval Value1 as string, byval Value2 as integer, byval Value3 as object)
Normal way to call by position: Call sub test("value1", 2, new object)
call by name: Call sub test(Value3:= New object, Value2:=2, Value3:="doh!")
Generally you see the := used in attributes.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Thanks, now I understand ! 
|
|
|
|
|
you can use it to assign values like you did in that function call...say some of those are optional and you want to assign directly to the variable name..
--
"Keyboard not found. Press < F1 > to RESUME. "
Source unknown (appears in many common BIOSes as a real error message)
|
|
|
|
|
in my 16 years experience in VB, ive never use this sign :=
|
|
|
|
|
I know I should probably post this in the XML-forum, but since I code in VB.NET I posted it here. I have a problem: I am trying to save data in a XML-document, but when I try to do so, I get an error message telling me that special characters are not allowed. Since I do want to save special characters in my document, I'd like to know if there is a way around this, so that my program can input and output special characters.
Thanks in advance,
Zaegra
Motivation is the key to software development.
|
|
|
|
|
Zaegra wrote: I know I should probably post this in the XML-forum
Still, you did that...
Zaegra wrote: Since I do want to save special characters in my document, I'd like to know if there is a way around this, so that my program can input and output special characters.
Have a look at this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi,
I'm using xhttp to send a xml file to another remote place wiht POST method. In the place xhttp.send I got the error "the system cannot locate the resource specified". The size of the xml file is 473 kb. I've checked it works fine in my lan. What may be the problem??
Pls, help me.......
Thank You,
Rishi.
WinCrs
|
|
|
|
|
hi
I m Working on vb.net window application.
Actually I want to get the Session Data using Session id in my application.
please help me
thanks in advance
|
|
|
|
|
A client application doesn't use sessions, as it's a single user environment.
What is it that you are trying to accomplish?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
my problem is how to connect more then two table in single DataGridView like a DataGridViewComboBox1 connect one master table1, DataGridViewComboBox2 connect one master table2
at a same time in the two column data’s save in transition table1,
How can I do please help me. This is major problem
Please mail me it is argent
Franics K Antony
|
|
|
|
|
Hi,
I'm trying to save a dataset contents in a .csv or text file. The following code I've written.
My problem is "my.Computer.FileSystem.WriteAllText("d:\testcsv.csv", str.ToString, False)" in this line "my" is showing error always saying "my" is not declared. How to solve this problem.
Imports System.Text
Imports System.Data
Imports System.IO
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim str As New StringBuilder
SqlDataAdapter1.Fill(DataSet11)
For Each dr As DataRow In Me.DataSet11.stockm
For Each field As Object In dr.ItemArray
str.Append(field.ToString & ",")
Next
str.Replace(",", vbNewLine, str.Length - 1, 1)
Next
Try
my.Computer.FileSystem.WriteAllText("d:\testcsv.csv", str.ToString, False)
Catch ex As Exception
MessageBox.Show("Write Error")
End Try
End Sub
|
|
|
|
|
Ramana Nori wrote: How to solve this problem.
Go and buy a book.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
For that you don't need to suggest
|
|
|
|
|
Which version of VIsual Studio (VB.NET) are you using?? The My namespace didn't show up until Visual Studio 2005. If you're using 2002 or 2003, this code will never work.
If you ARE using 2005, you need to import the Microsoft.VisualBasic namespace either in your code or in My Project settings, under the References tab.
|
|
|
|
|
Dear Friends,
I have developing small application in that application i need to make auto hide task bar how can i do that
Regards
K. Rajesh Kumar
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
What do you mean? Do you want to stop your application from showing up in the taskbar, minimize to tray or do you want to close the whole taskbar? If you want to do the last, as far as i know the only way to accomplish that is to close explorer.exe, resulting in loss of windows functions
Motivation is the key to software development.
|
|
|
|
|
Dear Friend,
I would like to hide my task bar only not like to stop the explorer.exe
i am a fresher in software development i have so many doubts in .net so i need to ca
|
|
|
|
|
Hi,
I am developing one application in that I have to display CPU usage history graph and Pagefile usage history graph.
When we open task manager it will display window, in that performance tab it will display CPU usage history graph and Pagefile usage history graph.
How to get those graphs from Task manager using vb.Net.
If anybody know about this please provide me some source code to complete this task.
To get the CPU Usage speed from taskmanager I used the following code
Private m_PerformanceCounter As New System.Diagnostics.PerformanceCounter("Processor", "% Processor Time", "_Total")
Dim cupcount As String = CInt(m_PerformanceCounter.NextValue()) & "%"
Here m_PerformanceCounter.NextValue() will gives the cpu usage percentage.
If anybody know about how to display those graphs, please provide me some source code to complete this task.
Thanks
pavani
|
|
|
|
|
You'll have to make the graph youself from the values. There are several graph libraries on CodeProject, such as this one[^] and this one[^].
|
|
|
|
|
How can i write all URL in to a file used in the browser.
Thankyou,
Yesu
|
|
|
|
|
You already asked this once and you have already received an answer (hint).
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
I would like to get all computer names and IP addresses within a specified range. I am unsure how I can get this information I was thinking using a for loop and starting at the lowest address and resolving the IP to get the name up to the highest address. I am not sure if that is possible and I am sure there is probably a better way. Please let me know thoughts. Any help will be much appreciated even if it is just a namespace to look into. Thanks.
Humble Programmer
|
|
|
|
|
You may be able to do this with scripting.
Use the tracert utility to reverse an IP address to a computer name, then parse the output to a cleaner list.
Try it out.
1) Use IPCONFIG on your machine
2) Use TRACERT x.x.x.x (where the x.x.x.x is your machine's IP address) and observe the output results.
3) You would capture this output to a file and parse the output to get the machine name.
Just a thought. 
|
|
|
|
|
Are you sure this is a solution to the problem at hand? To me, this just shows how to convert an IP to a hostname, which can be done using .NET code[^]. I think he's looking for an efficient way to loop through a block of IP addresses.
|
|
|
|