|
When the form that you use to enter the new details is closed (assuming it's a modal dialog), you'll have to wipe out the data in the combobox and re-populate it, probably using the same code that populated it in the first place.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If you look at the original code sent in, it is clearing the list box and repopulating it.
|
|
|
|
|
If it's still in the GotFocus event, it won't update the ComboBox. You have to update the combobox in another event that doesn't depend on focus. I already suggested the MouseEvent event, but it's better it you repopulate all your data dependant controls just after you update the database.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
well im actually not a newbie.. i started learning vb years ago.. but i stopped studyin about it..
anyway.. i need help. im actually creating a program. and i need help.
its just about simple text switch.
for example. you have two frames with 7 option buttons and 7 text fields (prepopulated) each.
how do i reference the textbox to the option button??
since one can only choose one option from 7options on each frame, how can i exchange the strings on the chosen textfields???
and another thing.. how can i store those 2 strings, so that the data inside the chosen text boxes will change once the strings have been exchanged.. without loading the form again??
help.. i really need help...
|
|
|
|
|
calvin0176 wrote:
how do i reference the textbox to the option button??
You don't.
calvin0176 wrote:
how can i exchange the strings on the chosen textfields???
What? What strings?
calvin0176 wrote:
how can i store those 2 strings, so that the data inside the chosen text boxes will change once the strings have been exchanged.. without loading the form again??
This doesn't make any sense. Perhaps if you setup your questions with an explanation of what is in the textboxes first, then explain what you want to happen when you click on one of the option buttons, we can understand what you want to do.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Does anyone knows how to create a setup package that will install a custom font into the clients windows\fonts directory without prompting him.
Some People succeed because they are Destined to, but most people succeed because they are Determined to
|
|
|
|
|
the default property of font folder is that if you copy any font it automatically installs it. so you just need to add the font in your setup project and give it destination to windows\font folder and it will be installed
|
|
|
|
|
I have the following problem:
I have a project ActiveX Document (vbd) developed in vb and wanted to develop it in NET.
Everywhere I have read that this is not possible.
Somebody could help me?
Thanks
|
|
|
|
|
VB.NET doesn't build ActiveX documents or binaries.
You'll have to keep using VB6 if you want to continue the project. You'll have to scrap it and start from scratch if you want to do something equivilent in VB.NET or C#. Though, the user will have to have the .NET Framework installed on their machines if they want to use your component.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Sorry,
but my ingles is bad.
I do not understand the expression "scrap it and start from scratch"
|
|
|
|
|
Drop the original project. Rewrite the entire project in something equivilent in the .NET Framework.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ok!!
but, what he is its equivalent one in NET that is looked like a project?
thanks again
|
|
|
|
|
There isn't any one project that replaces an ActiveX project. What you use depends on what your doing. It could be limited to client-side JavaScript, a Web Control, a mixture of both.
The only language in the .NET Framework that still targets ActiveX is C++.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What is the easiest way to format all the items of a column to currency?
|
|
|
|
|
The listview won't do it, you need to.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i need help in connecting Access to VB.net ..
can anyone let me know what is wrong with my code ..
Public strSQL As String
Public objCon As ADODB.Connection
objCon = New ADODB.Connection
Dim Rs As New ADODB.Recordset
objCon.ConnectionString = "MaxBufferSize=2048;FIL=MS Access;DSN=Scan;PageTimeout=5;UID=admin;DBQ=D:\VB.Net\VulnerabilityAssessment.mdb;DriverId=25"
objCon.Open()
strSQL = "Insert Into RemoteHost(HostIP, HostAddress,ScanTime)"
strSQL = strSQL & " Values(strIpAddress,Host.HostName ,Date.Now);"
objCon.Execute(strSQL)
objCon.Close()
objCon = Nothing
|
|
|
|
|
Please don't ask the same question twice.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
i need help in connecting access to vb.net ...
but i m having problem ...
can anyone let me knoe wht is wrong with my code
Public strSQL As String
Public objCon As ADODB.Connection
objCon = New ADODB.Connection
Dim Rs As New ADODB.Recordset
objCon.ConnectionString = "MaxBufferSize=2048;FIL=MS Access;DSN=Scan;PageTimeout=5;UID=admin;DBQ=D:\VB.Net\VulnerabilityAssessment.mdb;DriverId=25"
objCon.Open()
strSQL = "Insert Into RemoteHost(HostIP, HostAddress,ScanTime)"
strSQL = strSQL & " Values(strIpAddress,Host.HostName ,Date.Now);"
objCon.Execute(strSQL)
objCon.Close()
objCon = Nothing
|
|
|
|
|
fareee wrote:
strSQL = strSQL & " Values(strIpAddress,Host.HostName ,Date.Now);"
Try
strSQL = strSQL & " Values( " & strIpAddress & ", " & Host.HostName & " , " & Date.Now & " );"
You're trying to pass constant strings into the table.
This is assuming that your question is poorly worded, and you're not really having trouble connecting to Access. Either way, this is a problem in your code.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How can I copy or save data from an MSHFlexGrid COntrol of another application? I tried the API functions, but it did not work.
Any idea
Holger
|
|
|
|
|
Ok easy one for y'all, but Im stumped. I have 2 listboxes. First listbox is populated with the 12 months and when double clicked on a month, it needs to move to the other listbox. The second listbox is initially blank.
Any ideas??
Thanks in advance
Jason
|
|
|
|
|
Remove it from the items collection on one, and add it to the other.
VB6 or VB.NET ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
1st Listbox has a collection of months. When double clicked on a month it moves to the 2nd Listbox. I would assume that I need to have it move back to the 1st listbox when double clicked as well.
VB.Net
Thanks Christian
|
|
|
|
|
Private Sub ListBox1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.DoubleClick
Dim S As String = ListBox1.SelectedItem
ListBox2.Items.Add(S)
ListBox1.Items.Remove(S)
End Sub
Private Sub ListBox2_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox2.DoubleClick
Dim S As String = ListBox2.SelectedItem
ListBox1.Items.Add(S)
ListBox2.Items.Remove(S)
End Sub
You'd need to add something to rearrange them in the right order, if you want that.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
CG, you da man as always. I knew it was something very simple. I couldn't see the forest because of the trees. Thanks again.
I'll work on customizing it from here.
THANKS AGAIN CHRISTIAN!!!!
JB
|
|
|
|