|
|
Hi
I am creating a tree view control dynamically and all the nodes and child nodes of that tree view are being read from an xml file. Now I have two buttons "Move Up" and "Move Down". On click of these buttons I should be able to navigate through the nodes and child nodes. How can i set the focus to the previous node and next node?The Applicaton is a simple Windows based and I am using VB.Net.
Any help would be highly appreciated.
Thanks
Qot
|
|
|
|
|
Qot wrote:
Now I have two buttons "Move Up" and "Move Down". On click of these buttons I should be able to navigate through the nodes and child nodes. How can i set the focus to the previous node and next node?
I think the part of this article[^] could give you some idea about what you want.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hello All;
I am trying to write a vb.net application to communicate with the usb port, a step before communication with usb modem.
I want to retrieve as well as send data to the modem.
If any body out there has a document on the subject or can lead me to a site that may help or at least tell me which namespace to use,I will much appreciate that.
Thank you.
Bilal Awwad
|
|
|
|
|
Bilal Awwad wrote:
I am trying to write a vb.net application to communicate with the usb port
Try to read this information[^] it might be give you some idea about what you want to do.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
THe modem should show up as a virtual COM port. You can talk to the modem using normal Serial comm.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i want to create web form that have some textboxes to enter the information to the bank and retrive from the bank to the form.can you help me?
|
|
|
|
|
|
I've noticed that 1st exceptions always take a while to be thrown to your program (at least with file ops anyway). Then any following exceptions are thrown immediately.
Does anyone know how to make 1st ones throw immediately?
Thanks - Gary.
|
|
|
|
|
You can't force it to throw "immediately". What kind of time are you talking about? What is your code doing? Are the file operations that your talking about on the local machine or remote, on a network share, or FTP, ...?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a listbox with a list of all 50 states. I want to know which state the preson has selected on in the listbox. It dosent matter if the program will instantly know and then act or if a button must be clicked adn the information is transfered into a string.
Help!
|
|
|
|
|
|
Listbox.SelectedItem.Text
|
|
|
|
|
Is this what you need?
Private Sub lstBox_Click()
str = lstBox.Text
End Sub
When listbox is selected, it will be handle by the Click event. To get the state selected use lstBox.Text .
<italic>Work hard, Work effectively.
|
|
|
|
|
This is what I think you are looking for.
Private Sub lstBox_Click()
str = lstBox.SelectedItem ' To get the currently select item in the Listbox
End Sub
|
|
|
|
|
Your looking for ListBox.SelectedItem
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
StateList is the ListBox with the states...
'Get the state selected in the StateList
Public Function GetSelectedState() As String
'Check if there's something selected
If StateList.SelectedIndex = -1 Then
'There's nothing selected
Return "No State Selected"
Else
'Return the selected state
Return StateList.SelectedItem.ToString
End If
End Function
and the SelectedIndex event is raised when the user selects a different state...
|
|
|
|
|
i'm from indonesia,
i wan't share my problem but my english not good...
my problem now that i can't take the color(with argb) from image in picturebox.image or picturebox.backcolor...
i hope somebody have an idea...
thanks
: : The Experience Is Te Best Teacher : :
Share Your Experience...
Thanks....
|
|
|
|
|
Is this[^] what you need?
<italic>Work hard, Work effectively.
|
|
|
|
|
i have a medical application. once the doctor selects a patient for consultation. there are a list of differnt diagnosis which can be selected multiple for a single patient at a time.Now each diagnosis has differnt findings and surgerys booked for the diagnosis.These findings are 40% common in all diagnosis and rest are differnt. Now there are around 20 diagnosis. my clinet wants to see the selected diagnosis findingson a findings form and surgery information for all selected in surgery form. i cannot make all the controls for differnt findingds on the same form a make visisble true false according to the selected. and making controls at runtime will be cumbersome.can any body tell me the flow to do this. any further information needed will be provided.
Thanks
Monica
|
|
|
|
|
Hope it helps
Dim UserControl As New YourControl
Me.Panel1.Controls.Clear()
UserControl.Location = New System.Drawing.Point(x, x) 'x - Specify your control location
UserControl.Name = "YourControl"
UserControl.Size = New System.Drawing.Size(x, x) 'x - Specify your control size
UserControl.TabIndex = 0
Me.Panel1.Controls.Add(UserControl)
|
|
|
|
|
User Control is only one example name.
Put another name.
First you must reference your control on the form.
In the solution explorer/References/Add references/Select your control
Then you must import your control:
Imports YourControl 'The name of your control
|
|
|
|
|
i know i am reffering my user control not this name(user Control) i have alos added the reference but ist not showing up when i use dim ctrl as new ___ i cannot find that in the list popup. what other way i can refrence. its in my project .
|
|
|
|
|
Verify if your control is Private.
It must be Public if it is a different project
|
|
|
|
|
its in the same project and how can i verify its public or private
|
|
|
|