|
don't post like this, post in the thread, no-one knows what the previous suggestion was. I assume it was to set the window to be topmost, that is your only option. And yes, it works just fine.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
isn't just form.ShowDialog()?
Intelligence is almost useless for those who have nothing else!
Email: caiokf@gmail.com
|
|
|
|
|
I want to create a top-most window.
If a window will appear then before entering or canceling data user can't perform any other operation.
Help me...
|
|
|
|
|
|
Thnx for ur suggestion The JZ but I have tried it.
I want to create a top-most window so that before closing the window,one can not use or access data from previous window..
Help me...
Gagan
|
|
|
|
|
Gagan.20 wrote: Thnx for ur suggestion The JZ but I have tried it.
Apparently you haven't, because not only does it work, but it's the ONLY thing that works. What makes you think it doesn't work ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi!
Hmmm... I think I know what you mean. Try using ShowDialog() instead of Show() when you are opening your window in your code. That Should work.
Forgive me if I misunderstood your question.
Thanks!
MrWolfy
|
|
|
|
|
As suggested by The JZ, use the TopMost property.
"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
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
What is the use of .cab files?
How to add these .cab files in deployement projects and how to extract files stored in the .cab files?
Someome help me...
|
|
|
|
|
Gagan.20 wrote: What is the use of .cab files?
How to add these .cab files in deployement projects and how to extract files stored in the .cab files?
Someome help me...
This page should help you[^]
|
|
|
|
|
Hi ,
at runtime i want to add a new row and from the datatable i want to put those values
in to the grid .
In datatabel i have 1 ,2,3,4 i have to make changes to these no.s and assign YES NO like that .
How can i do these things??
|
|
|
|
|
VB 8.0 wrote: how to add a new row to datagridview at runtime.
use Datagridview1.rows.add() statement for add a row
VB 8.0 wrote: In datatabel i have 1 ,2,3,4 i have to make changes to these no.s and assign YES NO like that .
explain this in detail. so we can properly understand your problem and suggest you
|
|
|
|
|
I am Using Vb.net 3.5 as Frontend
I am creating a Windows Application.
I am Using a thread 'ThradSend' that do some work, I am starting thread as 'ThreadSend.Start()' and ending the thread ThreadSend.Abort()
It will work fine in my application but Throws an exception that 'Thread was being aborted. at System.Windows.Forms.dll ...'
This will no hampered my code but still a error a message displayed.
How can I Stop this Problem Or How can I Stop a running Tread . I can't use Thread.suspend() because it says Obsolute.....
AB
|
|
|
|
|
The Abort method stops the thread by throwing a ThreadAbortException in the thread. For this to work properly your thread has to be written to support this. As it doesn't catch the exception and handle the situation, it isn't supporting this.
The easiest way to stop a thread is to make it stop itself. Use a synchronised variable that the thread checks periodically. When you change the variable, the thread should just end it's loop and exit.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello Everyone
Anyone know how to detect plug and play service using vb.net
Assume i plugged Flash drive to my PC. Then Plug and play service detecting a flash drive detected and ready to use.
In vb.NET can i create a program to detect Flash drive or another component?
i need to read staus of Plug and play service.
Please Help...
Lasantha Indrajith
|
|
|
|
|
What do you want your program to do when a plug and play device is detected?
|
|
|
|
|
Hey,
You could count the number of logical drives (using a timer), store that value in a variable and keep comparing the new and the old situation. When it's different, you know a swappable drive was plugged in. Note that this won't work in all situations and that many things cán go wrong
Motivation is the key to software development.
|
|
|
|
|
Hello Dears,
i am a graduate student in computer science. i am doing my project in SNIFFING DETECTION ON ETHERNET. please help me and tell me the "Algo of sniffing detectoin" the "source code" and libraries in VB or Vb.Net
I am Greatly thankfull for this help
my ID is <asim_araeen@yahoo.com>
Thanks
|
|
|
|
|
I don't think anyone here wants to do your project or homework for you. How about starting with a Google search: detect a network sniffer[^]
|
|
|
|
|
asim araeen wrote: please help me and tell me the "Algo of sniffing detectoin"
That is what your graduate adviser is for. Ask him or her for help.
"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
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hai all,
if your program store a user password, where you normally tore them?
i.e. registry, ini, text files etc.
|
|
|
|
|
if your program have multiple user then i prefer to store it in database( like MSAccess, SQL Server etc.) or if your program have only single user then you can store in any way like in text file, XML file, registry , database or even in code(bad option). you can also store user name and password in registry in encrypted form
|
|
|
|
|
Hai swami,
Thanks a lot. so i preferre to store it in the registry under my programs key. i have only two other values for my programs. so with the password, then only 3 values. so is it ok to store the password in a value call "user_password" and the data is the 31bit encrypted password.
will this value name "user_password" ok or still i need to put a junk name for the value?
|
|
|
|
|
afridy wrote: o i preferre to store it in the registry under my programs key
choose some different name for key so it seems like the key of Windows OS key
afridy wrote: will this value name "user_password" ok or still i need to put a junk name for the value?
same for here as above
|
|
|
|
|
I'm not sure this is the correct place to post but since I wrote the code in vb I figured I would start here. I have a service that I created that writes to a text file, but it only writes 16 times and then stops. I have not asked it to stop it just does it on it's own. I am using this for testing because I have a bigger project that I need to create as a Window service and the timer wasn't working in it. So I created this small testing project and still can't get the timer to work correctly. Could some one please give me some clues as to what might be wrong with the code? I copied below what I am using.
Public Class AuthorLog
Protected Overrides Sub OnStart(ByVal args() As String)
' Add code here to start your service. This method should set things
' in motion so your service can do its work.
Const iTIME_INTERVAL As Integer = 15000 ' 15 seconds.
Dim oTimer As System.Threading.Timer
Dim strline = vbCrLf
System.IO.File.AppendAllText("C:\AuthorLog.txt", "AuthorLogService has been started at " & Now.ToString() & vbCrLf)
Dim tDelegate As Threading.TimerCallback = AddressOf EventAction
oTimer = New System.Threading.Timer(tDelegate, Me, 0, iTIME_INTERVAL)
End Sub
Protected Overrides Sub OnStop()
' Add code here to perform any tear-down necessary to stop your service.
End Sub
Public Sub EventAction(ByVal sender As Object)
System.IO.File.AppendAllText("C:\AuthorLog.txt", "AuthorLogService fires EventAction at " & Now.ToString() & vbCrLf)
End Sub
End Class
Thanks for your assistance in advance.
Carolyn
If you can’t have fun at work, then why go to work?
|
|
|
|