|
Change your form so that when the user clicks on OK, the event handler for the button finishes the processing of the objects the user selects.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Exactly how do I do that? Sorry, I really don't know how that's done.
|
|
|
|
|
What are you talking about? The code you were going to run after the loop where you wanted to wait for a button click? That goes in the Click event handler for the OK button you wanted your users to click when they were done, right?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yes, you're right, but what I'm looking for is what command needs to be typed following the Do Until to allow for the user to select one of the command buttons on the form. When I pass the focus to the application where the user is going to be selecting elements and when they're done selecting and try to pick the "OK" button I get an error message saying something like the application is busy, Switch To, and Retry buttons are my only choice.
Do Until ???????? - what command - ?????
Select Element code......
Loop
Forgive me, I'm new......
Thanks for your time and help.
|
|
|
|
|
You're not listening. You CANNOT do this at all! There is NOTHING you can put in this loop that will allow you to do what you want.
You MUST rewrite your form to do whatever it needs to before the user gets to select any element. AFTER the end of that function is where the user will select whatever elements you want them to, then click the OK button. In the Click event of the OK Button, then you can finish processing.
YOU ABSOLUTELY CANNOT RESPOND TO BUTTON CLICK EVENTS WHILE A LOOP IS EXECUTING.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ROTFL - this made my morning brighter.
However, can't he run his loop in a seperate thread and have a UI thread stop it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Do you want to tell him how to do it?!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Guys, thanks for the info. I understand now, I usually need things "Fisher Priced" for me. Thanks again.
|
|
|
|
|
Looks like he worked it out
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello there
I am building a deployment package. I have two types of setup one is for application and other for Database. for database I have an Exe which should run during admin setup. the problem is when I run the setup after compiiling it only runs client setup.
how to run admin setup as in dot net when you add the setup builder project it shows you two different types of deployment but runs only one.
what I need is .... user select either he is going for database setup or application setup during main setup.
any support ???
|
|
|
|
|
Admin setup in Windows Installer refers to putting components on a central server so that clients can install them as options, not to performing a different sort of setup like the situation you refer to, i.e DB vs client app install.
Although you can manually modify an MSI to support Features, doing so is a non-trivial process and requires considerable knowledge of MSI architecture.
The simplest way to accomplish what you need is to package your DB setup separately from the client application, and then modify the bootstrapper application to allow the user to select which install they wish to run.
Robert
|
|
|
|
|
How we can used sql command such as :
select max(debit), max (credit) from entries group by accountno
Im using sqldataadapter as bridge to database. When retrieve this statement from query builder (sqldataadapter1.fill) sure cant be placed into the dataset later because they are not same table design or schema.
How i can make used of that max(debit) or max(credit) value which have been grouped by accountno.
I have idea to select all data and put it into dataset and from dataset i put:
Dim dataTab As DataTable = DataSet11.Tables("Entries")
Dim deb As Double= dataTab.Compute("sum(debit)", "")
but the compute sum is not grouped summary, how can i solve all above problem and , "") sign is actually to filter, how to make use of that?
Thanks in advance.
|
|
|
|
|
LordLothar wrote:
How i can make used of that max(debit) or max(credit) value which have been grouped by accountno.
Use a numeric index to access your columns, or do this:
LordLothar wrote:
select max(debit) as maxDebit, max (credit) as maxCredit from entries group by accountno
Then you can access them by name.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi
I would just like to know how to print a simple text file from VBA. In VB6 I use this method:
Open FileName For Input As x
Do While Not EOF(x)
Line Input #x, s
Printer.Print s
Loop
Printer.EndDoc
But in VBA this is not possible. Any suggestion on how to print from VBA?
Regards
Gunnar
|
|
|
|
|
how do you create a webpage using vb.net inclusive of security like passwords and also how to link to the database created in ms access or
|
|
|
|
|
Hope this article[^] could help you.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
My project is on vb.net windows application which brings data through remoting when i run .net application first time it takes time to load my forms and forms moves up and down and jerks.Please help me to cache the copy of compile version on client side with code or give me the solution to load the forms fast like VB6.
Please Reply
Regards
Prashant
Prashant Pawar
|
|
|
|
|
Well Prashant I wont be able to help you. But I guess you are in a position to help me out. I have the same scenrio. but some how when I fetches the dataset it does not work. but when I fetch string array or boolean or integer it works fine.
can you guide me in this regard ?
thanks for your support in advance
|
|
|
|
|
First of all VB6 apps has really an advantage over .Net apps because the overhead of loading the framework is not there. Then normally when a .Net app starts up the jit has much to do which slows down the startup time. At least the second can be reduced. Search for NGen on google. Its a tool coming with the SDK which lets you precompile assemblies which can reduce start up time greatly (depending on what exactly happens on your start up).
|
|
|
|
|
hi friends,
i have a knowledge of vb.net. i would like to do a simple project on vb.net. so that i can get an idea of how it works in actual sinario.
i have no idea of how to start that?. if you send any project that you have done.it will be a model to me.it will be very helpfulto me.
please kindly guide me how to start?
shalini
|
|
|
|
|
Anonymous wrote:
so that i can get an idea of how it works in actual sinario.
how what works ????
you can see lot of projects with source codes on every aspect of programming at codeproject. so exactly you have in your mind ?
|
|
|
|
|
hi
thanks for your reply.
where can i get that "source code". how to browse? in codeproject.com where it is there.
|
|
|
|
|
Anonymous wrote:
i have a knowledge of vb.net
so what ? how and where do you write your code ? with notepad ?
if you write with visual studio, so you certainly write into vb files into a project registered into the solution...
what is your problem actually ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Anonymous wrote:
i have no idea of how to start that?.
Try to read the evaluation lesson from this website[^].
Anonymous wrote:
i would like to do a simple project on vb.net. so that i can get an idea of how it works in actual sinario.
Try to look at the source code library from here[^].
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hi all, I am a new vb.net programmer wanna be and I gotten most of the basics on vb.net. But I am having a hard time trying to grasp database programming.. when I mean database programming, i mean trying to make my vb.net access a MS access file (*.mdb) and do editing and updating and displaying the data on a text box and all..
Wondering whether anyone out there with this knowledge can help me out, or better yet, have some kind of ebook that can go step by step with nice little DIY samples on this subject.
Thanz for your time..
|
|
|
|