|
Cheers for the help, i use the following code now which works:
Try
audiospeakersrightclick = Registry.CurrentUser.OpenSubKey("SOFTWARE\NVIDIA Corporation\NvMixer\Profiles", True)
If audiospeakersrightclick Is Nothing Then
combospeaker1.SelectedIndex = 0
combospeaker2.SelectedIndex = 0
audiospeakers.CreateSubKey("Profiles")
End If
Catch ex As Exception
End Try
Many thanks again.
|
|
|
|
|
k sorry bout this but I am having the same problem when reading binary values from the registry. Here's the code I am attempting to use:
Dim showadvanced, showfirewall As Byte
Try
nvmixersettings = audiospeakers.OpenSubKey("Settings", True)
showadvanced = nvmixersettings.GetValue("ShowAdvanced")
showfirewall = nvmixersettings.GetValue("ShowFirewall")
If showfirewall = Nothing Then
soundstormadvancedenable.Checked = False
soundstormadvanceddisable.Checked = True
soundstormfirewallenable.Enabled = False
soundstormfirewalldisable.Enabled = False
GroupControl13.Visible = True
End If
If showfirewall = 10000000 Then
soundstormadvancedenable.Checked = True
soundstormadvanceddisable.Checked = False
soundstormfirewallenable.Enabled = True
soundstormfirewallenable.Enabled = True
GroupControl13.Visible = False
End If
Catch ex As Exception
End Try
Now i have tried to Declare the variable type to string and byte and still no good, any other ideas??
|
|
|
|
|
Hi, how can I use MS Scan Wizard in my app?
Can I use and assign parameters to it?
Thanks
|
|
|
|
|
hellow to all ..
i am trying to chain a textbox name ,
i is integer ..
like textbox&"i"&.text
how can i do it ?
|
|
|
|
|
Wow - that's bizarre. To do that, you need to build the string first, then use reflection to turn it into a textbox instance. The neater way would be to build a hash table of indexes to textboxes. Oh, and if you put i in quotes, you get i, not i as an integer variable value.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
that's cool ...
i can do this with assembler in 30sec !
|
|
|
|
|
I keep getting the following error when trying to delete a row from a dataset using a datagrid (specifically the last row in the datagrid) :
An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object.
Any ideas?
I know the err could be caused by a lot of things but..
Why just the last row?
If I start deleting records from the top, I can even delete the last row...but not just the last row ..
|
|
|
|
|
It would help to see the code...
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have written an application in VB.Net to be run in Windows CE. In it I have a combo box that is populated with numbers representing items that the user will select and use and are then removed from the list. Specifically, a file is maintained with all the numbers that could be in it and a flag is set that tells the program whether a particular number has been used or not. Every time we return to the screen with the combo box on it, it is repopulated.
When we get down to having only 3 selections or less available, the combo box opens when the down arrow is clicked and immediatley closes before a selection can be made.
Any suggestions as to how to correct this problem?
Also, the point at which this problem occurs changes when certain things are changed about the combo box. For example:
The font for the combo box is 9pt currently. If I change it to 12pt, the problem doesn't occur until we get down to only 2 items in the list.
I also moved the box to a different location on the screen and it started occurring with 4 items left.
Any help would be appreciated.
Thanks,
Tromba99
|
|
|
|
|
is there any way to, when adding subitems, to skip over a collum and put data in another. Say for example you have 6 collums and you already have data in the first 2 collums and want to skip the 3 and put data in every collums after 3. how would you do this?????
Check out my websites:
BugTrak Project Home
The New Space
The Simple Read
FeedMonster HomeFeedMonster --- The world's best free RSS feed reader....well..maybe not the best, but pretty darn close! (Beta 3 available soon!)
|
|
|
|
|
I have a vb.net windows app and I want it to execute a command line like this:
bcp "select SiteID, SiteName from MYDB..Mytable" queryout c:\Test.txt -c -S MyServer -U uname -P pwd
How can I get vb to execute this?
Thanks in advance
|
|
|
|
|
Doesn't a VB command line app get passed the arguments collection ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi everybody
I need some help! I created an AVI animation to display in a form
but i can't understand what color I need to use to have the background
transparent (the mask color). I tried with FUCSIA but it doesn't work.
I designed the bitmaps with Paint and converted to AVI using Virtual Dub.
Any Idea?
Thanks in advance
OS: Win 2K
SDK: Visual Studio 6/Visual Basic
|
|
|
|
|
IIRC, you can't set a transparency in a movie and expect to see the form behind it. The WMP control that's displaying the movie doesn't support a transparent background, if that's what your using.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm using the animation control (part of MS common controls). The strange thing is that with sample movie clips in Visual Studio (for example, the file copy or computer search) the trick works good. The AVI has a fucsia background and the color of the form behind is displayed.
What do you think?
thanks in advance Dave
|
|
|
|
|
I've never used the thing.
But, I've found an abscure reference that says that the pixel in the upper left corner of the first frame becomes the transparency key color. But, this does NOT make the AVI transparent, rather it substitutes the parent containers background color (in your case, the form color) for each pixel that has the transparency key color. This makes the background color (or transparency key) match the host container color.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
That's amazing!!!!
It's what I was looking for!!! In fact I don't need to have my AVI with a transparent color but I only want to use it with a masking color for the background.
Thanks a lot Dave
TheKriminal
|
|
|
|
|
how can i load data from access back onto the treenodes ...
is it correct ...
TreeView1.Nodes.Clear()
objCon.Open()
adapter1 = New Odbc.OdbcDataAdapter("Select * from RemoteHost", objCon)
data = New DataSet
adapter1.Fill(data, "RemoteHost") 'l
Dim I, j, Categoria
For I = 0 To data.Tables("RemoteHost").Rows.Count - 1
Categoria = data.Tables("RemoteHost").Rows(I).Item("General").ToString
TreeView1.Nodes.Add(Categoria)
TreeView1.Nodes(I).ImageIndex = 0
Next
objCon.Close()
|
|
|
|
|
How to add an icon into resources in VB?
And how i can use it from resources?
Give me please a code sample
|
|
|
|
|
Hello, can someone help me, i want to move three sliders at the same time, like the Volume Control on Windows, i've tried a lot of thing but without any success, can someone help me to do it, please?
UltraMAX
|
|
|
|
|
Off the top of my head, handle the Scroll event of each slider. Set the Value of the other two sliders to the Value of the slider being changed.
Don't know if this will work at all considering I haven't touched VB6 in years.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you for replying Dave, i don't want to move all with the same value, a good example of what i want to do is the Windows Speaker Volume, when i check to move the sliders at the same time, it will do, event if they have different values, please, "play" a little with that to see what i'm trying to do and if you can help me!!
Thanks,
UltraMAX
|
|
|
|
|
You'll have to track the values seperately from the control's actual values. When one of the sliders changes, calculate the change from the last saved value and apply the change to the other values and control's actualt values.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i m getting this error (on Execute line) when i m inserting Data in database....
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in tab.exe
Additional information: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 3.
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
|
|
|
|
|
You didn't evaluate any of your variables at all. You should have done this:
strSQL = "Insert Into RemoteHost(HostIP, HostAddress,ScanTime)"
strSQL = strSQL & " Values('" & stdIpAddress.ToString() & "', '" & Host.HostName & "', #" & Date.Now().ToString() & "#);"
objCon.Execute(strSQL)
Even then, concatentating SQL statements together like this is a major security risk and can get your SQL tables wiped out.
I would suggest using parameterized queries as explained in Colin Angus Mackay's article, here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|