|
Hi,
Googling a bit, I found:
1. the possibility you're using a networked disk which happens to have some problems;
2. you're not alone; see here[^] for instance.
|
|
|
|
|
hi all, here my problem is i'm preety new to vb.net programming. but have a little knowledge in vb6 programming.
when form loads in listview are displayed some items.
when you doubleclick selected item, then in the textboxes near listview will display all the information of item selected.
can anyone of you suggest me something else?
till now studied this code :
private sub listview1_dblclick()
for i=1 to listview1.listitems.count
if listview1.listitems(i).selected=true then
dim rs as new adodb.recordset
rs.cursorlocation=aduseclient
rs.open "select * from empdetail where empcode='" & listview1.selecteditem & _
"'",cn
if rs.recordcount>0 then
text1.text=rs!empcode
text2.text=rs!empname
text3.text=rs!empaddress
text4.text=rs!empdesignation
listview1.visible=false
text1.setfocus
rs.close
exit for
else
rs.close
msgbox("......",vbokonly,"")
end if
end if
next
end sub
|
|
|
|
|
|
Hi all,
Could you please help me, If i want to use vb.net to connect with scanner. How should I do? Could you pls provide the sample of it.
Thank so much
|
|
|
|
|
|
Hellow code friends,
I was searching 4 a while after my question but most of the time i find answers with a dataset.
I'm getting my data from a DB (without envolving a dataset).
So
My 4th column or column called opmerkingen is to small in width.
I just want to set my with to 80 or something when my datagridview is loaded.
Can anyone solve my problem in a simple way??
If you answer please do this with an example. there is nothing more clear then an ex...
Thx in advance
Greetings from a n00b
|
|
|
|
|
|
myDGV.Columns[3].Width=80;
or even maybe (once populated):
myDGV.AutoResizeColumns();
|
|
|
|
|
Thx mate
After populating : DataGridView1.AutoResizeColumns()
Did the trick...
greetz
|
|
|
|
|
|
Need an application that opens both the image and the wordfile at a time using VB and anyother....ping me on kantamaneniamarendra@gmail.com
|
|
|
|
|
I assume you're willing to pay for this?
Everything makes sense in someone's mind
|
|
|
|
|
Payment is his email is in the message. Spammers love that
Frazzle the name say's it all
|
|
|
|
|
I'm glad I don't have to type that email out, I can't even say it never mind trying to remember how to spell it!
|
|
|
|
|
I need also a lot of things ....
I cannot remember: What did I before google?
|
|
|
|
|
I need to know the secret of eternal youth, but I won't ping you for it.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Hi there,
I have been searching the web for quite some time now, searching for a way to keep the mouse cursor under a forms control: Not letting the mouse leave the form. I found many answers using the SetCapture function in the user32 lib. However, I cannot get anything to work/the examples used deprecated materials(this was the case most of the time).
Does anybody know how to make a form keep control of the mouse? Examples would be great.
Thank You,
Shawn
PROJECT DESCRIPTION:
I am making a terms and conditions form which will run on start of every computer. I need to make the mouse stay inside the forms control. If the user clicks accept, the form should close; if the user clicks decline, the user should be logged out.
|
|
|
|
|
That's not exactly the most secure solution, considering how many different ways a person can interact with a PC... It'd be very easy to circumvent.
I would suggest instead making your window "system modal", which basically means the user can't interact with anything else until your window is closed.
|
|
|
|
|
That's a nice idea but System Modal dialogs died with Windows 9x.
|
|
|
|
|
Hmm, good to know... Hadn't made any since the 90s, so guess I'm a bit behind on this.
|
|
|
|
|
There's no such thing as a System Modal dialog anymore. Why? Because you're taking away the users ability to switch to other tasks if required.
How I've seen something like that done in the (recent) past is the app created a new Desktop, switched to it, showed a normal window in that desktop, then proceed as normal. When the dialog was dismissed, the new Desktop was removed, switching back to the original user desktop.
BTW, this is actually how the UAC nag dialog works in Vista and 7. The darkened desktop image that you see is merely a screenshot of the user desktop copied to the new desktop.
Since you're using a seperate desktop, there's nothing else for the user to click on, effectively making your form "modal".
You can find a nice example of creating Desktops here[^].
|
|
|
|
|
I don't have a use for this information (at this time), but that alternate desktop thing is something I neither knew, nor even had a clue about.
That's getting filed away for future use, and you get a "Good Answer" for it. Thanks!
|
|
|
|
|
how to convert vb code into c#?
|
|
|
|
|
VB6? Manually. No tool can turn a "program" into a decent program.
VB.NET? there are convertors around, some are free. Search[^].
And Reflector can show pseudo-source in the .NET language you choose, so you could build a VB.NET app and look at its C# equivalent (no comments, no meaningful names for local identifiers, ...).
|
|
|
|
|
There are many VB - c# converters available, but you will still need to go through the converted code as they are not 100% reliable.
Complex code in VB gives rise to 'interesting' results in c#, so if it is a smallish program it may be worth rewriting it yourself rather than converting.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|