|
Why not separate it into 2 methods? The first button will call method 1 , and the second button will call method 2
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
But then it'll be two unrelated events. When I click the first button it has do some stuff and upon completion the ok button is clicked and control is transfered back.
Shyam
|
|
|
|
|
I'm not sure why you want to do. Can you show some code of the click event?
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Can't you show the second form modally?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Sorry for the late reply, but thanks to everybody who replied. I got it to work according to what Nick said.
Thanks
Blaze
|
|
|
|
|
No Prob. I'm glad you got it to work.
God, I pity me! - Phoncible P. Bone
If I end up Windows ME someone is going to be hurting. - One of the answers to a question for What OS are you
|
|
|
|
|
Anyone know how to order a hashtable in asp.net using vb?
|
|
|
|
|
System.IO does not show up in the refrence dialog box. How do I add a refrence that I can't see?
Or am I way out in left field.....
Gonz
|
|
|
|
|
AFAIK, System.IO is in either the mscorlib or the system Assembly, so it's already added in for you. Just type imports System.IO to use it.
Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
|
|
|
|
|
Heres what I want :
1. Find a window based on its title from among the windows open at that
time. (or just get a handle to the active window)
2. Once I locate that window, find a button with certain text in it and
then click that button.
3. It wil be awesome if I can also do the same for certain menus.
The biggest problems : I dont know VB or VC++. If someone has a code snippet to take care of such a problem , please let me know. Which is better for this kind of a problem .. VB or VC++?
Thanks a lot.
|
|
|
|
|
hi,
does anybody know how to install the TCP/IP via VB?
furthermore, i have to know how to set the IP number and anything like this...
Thx
CND
|
|
|
|
|
I got hold of Crystal Reports Developer 8.5. I created a couple of reports with the program. After including them in a project in Visual Basic .NET and trying to open it, I get the following error: "Crystal Dictionary not supported in this version".
Question: Can I import something in VB.NET to recognize the newer version of Crystal Reports?
|
|
|
|
|
I'm working on active scripting (vb-script) support in my application, so my application must support some COM objects. I familliar with COM but relatively new to dispatch interfaces and vb-script. Hence, I'm wondering whether I should expose an interface of a child/sub object via a propery or via a method.
Is there a criteria for using properties / methods?
So for example, should I do this:
Dim module<br />
Set module = modules.module("<name>")
or this:
Dim module<br />
Set module = modules.GetModule("<name>")
|
|
|
|
|
in COM ,, a property is actually a pair of functions
I think you should properties. they make sense..
|
|
|
|
|
Hello,
I want to capture data from a Electronic Weighing Scale attached to RS232 and store in a table on some event say click of GET button.
Any help - API or Code or Lead.
Harinder Hunjan
|
|
|
|
|
there maybe a thread asking how to use Sleep method in .Net.
I know how to declare and use Sleep in VB 6.0, but I don't know how to use it in VB.Net
I create a project in VB 6.0 and convert it back to VB.Net and copy and paste the converted code into my VB.Net project but .. I still get error..
Do I need any special header file to import to use Sleep()?
thanks
|
|
|
|
|
Just use System.Threading.Thread.Sleep().
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Thank you I though it only for thread.. not same as Sleep()
|
|
|
|
|
The Sleep() API does the exact same thing - in fact, System.Threading.Thread.Sleep() just calls the Sleep() API.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I have been trying to uncover a supported way to view pdf files within my windows form in VB.NET, and I am having no luck. Adobe has an unsupported pdf viewer ocx control which is buggy, and all the other controls I"ve seen are way too expensive to be worth it (my other option is to create a hyperlink and pop up the pdf in Adobe viewer as a modal form). Any ideas out there/cheap viewer controls?
|
|
|
|
|
Hello all...
can anyone plz help me/???
how to use the saveas dialog box on visual basic 6.0
thanks alot
Adnan Madi
|
|
|
|
|
Click Project, Components... and add "Microsoft Common Dialog Control 6.0". Add one of these to your form, and it ready to be used. Look here[^] for more info.
Paul
I could put a quote here, but someone would just steal it. Murphy
modified 18-Jul-18 11:59am.
|
|
|
|
|
If I using a checkboxs with a list of items, and one button when clicked the items will show on other form, can you help me to get the source code.
|
|
|
|
|
I am making a VB project for a class I am taking. It involves using databases in Access. My primary key is called "CustID" I am making a project for a company that sells sports cards on online auctions. My first form is a Customer information page. What I need to do is add the "CustID" number that is loaded and have it transfer onto the Order Information page. My instructor mentioned referencing the form, but I wasnt quite sure what he meant. PLEASE HELP ASAP Thanks much
Pat de Wah
|
|
|
|
|
If you have two forms, FA and FB, then you can directly reference FB from FA and Vice versa.
I would suggest implementing method like UpdateCustID(ByVal NewCustID) on FB, which can then be called from FA:
<br />
load FB<br />
<br />
FB.UpdateCustID(NewCustIDFromThisForm)<br />
<br />
FB.Show<br />
<br />
Unload Me<br />
Note that it's not necessary to load FB first - if you reference a form, then it gets loaded implicitly anyway, but I always tend to do so, since makes the code a little clearer
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|