|
Yah, I just hate to use the dataset inbuilt stuff, I really loathe having to put any SQL intelligence in a UI object. I'm of the school that only allows stored procs for 99.9% of DB access.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: I'm of the school that only allows stored procs for 99.9% of DB access.
I hear ya'
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i have set Password character property of Textbox1 as * it working fine with my system but this same application in some other system it display password string instead of * for Ex 123456 instead of *
Any help what kind of problem is this??
Hitesh sojitra
|
|
|
|
|
Try setting the UseSystemPasswordChar property of the textbox to true .
|
|
|
|
|
Thank for reply
but if i use UseSystemPasswordChar = true still it not shown me * in any system... any other solution?
Hitesh sojitra
|
|
|
|
|
Hi,
I have one question related to the visualstylebackcolor property of buttons. When I put one button directly on the form and set that property to false , it works fine but when I put the same button in panel it show a button like its visualstylebackcolor property is true even if the property window is showing it false.
How to solve this problem ?
Thanks,
Dan
|
|
|
|
|
Hii
i hope u do little bit wrong.
you follow these steps
Insert a panel on form.
Insert a button on form not panel.
then insert a button on form change the style and cut the button from Form and paste it on Panel it works properly.
May it solve you problem.
Thanx
~ Khatri Mitesh
|
|
|
|
|
Sorry but the same problem .I followed the same steps you wrote !
|
|
|
|
|
Does anybody know a way to dump the password hashes of the Windows Operating System (Primarily Windows XP, but compatibility would be good)?
Also is there anyway to access the HKLM root on a limited account, I badly need to know to get my program to work correctly.
|
|
|
|
|
raing3 wrote: Does anybody know a way to dump the password hashes of the Windows Operating System (Primarily Windows XP, but compatibility would be good)?
There isn't one. The hash only works one way. You cannot reverse the hash to get the password out. The only way to figure out what it is is to hash a test password and compare that hash to the stored hash. If it's a match, you found the password. Considering the shear number of number, character and letter combinations, you're looking at testing billions of passwords to guess the correct ones.
There are tools out there that do just this. Google for "L0ftcrack".
|
|
|
|
|
raing3 wrote: Also is there anyway to access the HKLM root on a limited account, I badly need to know to get my program to work correctly
No. The registry's HKEY_LOCAL_MACHINE key requires admin permissions to get write access to it.
|
|
|
|
|
Use Linux to make a copy of the C:\WINDOWS\system32\config\sam file then use lOphtcrack.
You might could use impersonation[^] to access the registry.
|
|
|
|
|
raing3 wrote: know a way to dump the password hashes
No there isn't, hashes are one way. The purpose of a secured cryptographic hash is to make it be something that cannot be worked backwards into the original password.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How do I get the selected row index from a listView?
|
|
|
|
|
lvData.SelectedItems(0).Index
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I am working with access database and vb.net. I like to make two listBox in a form. first for product list and second for suppliers list of those corresponding products. When I click product list item corresponding suppliers of that product should be show in supplier list.Data retrive from products and suppliers table from database. I am a begainer of programming. Please help me to design the code.
|
|
|
|
|
Hiii
I send a sample of code that use the Access Database (Test.mdb from C and that contain Table1 ( "Prodct" and "Supplier") fields.
Dim myConnection As New OleDbConnection()
dim oDataAdapter as dataAdapter
Dim oDataTable as DataTable
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
myconnection=new oledbconnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Test.Mdb")
oDataAdapter = New OleDbDataAdapter("Select * From Table1", myConnection)
oDataTable=New DataTable
oDataAdapter.Fill(oDataTable)
ListBox1.DataSource = oDataTable
ListBox1.ValueMember = "product"
end sub
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
dim sProduct as string=ListBox1.SelectedItem.ToString()
if not isNothing (sproduct) then
oDataAdapter = New OleDbDataAdapter("Select Supplier From Table1 where Product=" & sProduct & ", myConnection)
oDataTable=New DataTable
oDataAdapter.Fill(oDataTable)
ListBox2.DataSource = oDataTable
ListBox2.ValueMember = "Supplier"
end if
End Sub
may be it helps you.
Thanx
~Khatri Mitesh
|
|
|
|
|
Hi,
You need to implment the parent-child relationship between the two tables to get the desired results. You may try the following code snippet:
---------------------------------------------------------------------------------------------------
BEGIN CODE
Dim dc As OleDbConnection
Dim connstr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Nwind.mdb;"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim da As OleDbDataAdapter
Dim dt As DataTable
Dim dv As DataView
dc = New OleDbConnection(connstr)
da = New OleDbDataAdapter("Select * from Products", dc)
dt = New DataTable
da.Fill(dt)
dv = New DataView(dt)
Me.ListBox1.DataSource = dv
End Sub
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
Dim SupplierIDString = Me.C1Combo1.Columns("SupplierID").Text.ToString()
Dim da As OleDbDataAdapter
Dim dt As DataTable
Dim dv As DataView
dc = New OleDbConnection(connstr)
da = New OleDbDataAdapter("Select * from Supplier where SupplierID = '" + SupplierID+ "'", dc)
dt = New DataTable
da.Fill(dt)
dv = New DataView(dt)
Me.ListBox2.DataSource = dv
End Sub
END CODE
---------------------------------------------------------------------------------------------------
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
When I build my project, the debug version builds fine but the release version does not. No files appear in the Release folder within the bin directory, although, the file path set in the project settings is correct.
Any ideas?
|
|
|
|
|
Are you getting errors when you build in release mode? If so, what errors are you getting?
In the project settings, are you sure you are looking at the Release configuration when checking the build output path?
Without more info, it's hard to know what to suggest. But maybe this will help you think of another option to try.
|
|
|
|
|
Got it, thank you. Problem now sorted. Very silly mistake, so much so that it's embarrassing lol!
Thanks for the help
|
|
|
|
|
hi,
can anyone help me how to make this code little easier
Dim a1,a2,a3,a4,a5,a6,a7 as byte
a1 = Convert.ToByte(ListBox3.Items(0))
a2 = Convert.ToByte(ListBox3.Items(1))
a3 = Convert.ToByte(ListBox3.Items(2))
a4 = Convert.ToByte(ListBox3.Items(3))
a5 = Convert.ToByte(ListBox3.Items(4))
a6 = Convert.ToByte(ListBox3.Items(5))
a7 = Convert.ToByte(ListBox3.Items(6))
i'm now have confusing about array..
please anyone can guide me if have more than 7 statement..
|
|
|
|
|
Make it an array of 7 items, called a, then assign them in a loop.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Arrays are zero based, so the index gets different from your current names:
Dim a(6) as Byte
For i As Integer = 0 to 6
a(i) = Convert.ToByte(ListBox3.Items(i))
Next
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Yeah, I'd have done that, but I was pretty sure my VB would not compile...
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|