|
Yes. What I do is design a panel and then set the left coordinate to a large enough negative number to move it off the form area in design view. Then I move them all onto the form in the Load procedure, and simply toggle the first panel Visible property to True at run time.
As far as navigation code goes the approach really depends on the specifics of the wizard. A simple forward/backward single path wizard you can just use a Select Case that evaluates the step number and direction.
If you have conditional navigation or if you are writing a generic Wizard template then you would probably use some kind of stack.
|
|
|
|
|
I want to do reports which will be generated when I click a button. The reports will include information in them which
will have been pre-written like a Template but will also take details such as the persons name from a form. The persons
name ill be diplayed in the reporta at certain places.
Anyone nay ideas how to do this?
macca
|
|
|
|
|
I have a dropdownlist in my form called Status which displays a list of all the status that the form can be at.
The different status are: NEW
Used
Complete
What I want is that when I have a record that is status used then when I open the form to display this record
it will display the dropdownlist with Used as the selected Status and New will no longer be a member of the
status dropdownlist.
The dropdownlist is being populated by a select statement on the Status table in the database. Select * from Status.
Anyone know how to do this?
macca
|
|
|
|
|
Hi,
I am Anindya. I am developing a windows application. There I've used a toolbar. Now I want to design it. I want to paint it in Gradient color. How should I do this? Please help me in this concern.
Thanks in advance.
Anindya Chatterjee
|
|
|
|
|
Dear Friend,
I have a question like ,
I need to transfer the thumbnails to Microsoft Word Document (Which is existing) & in a Variable folder.
like there maybe several folders with some .Doc files in it ,it will ask for which folder & file to open ? I will not type the name,I will just select the file once(Document) where i may be inserting some pictures all in same size.
then if I click (Just double click it must be transferred automatically).
exit .it will save the opened Word file with the pictures i inserted.
Rahul
Rahul Dev Sharma
Software developer.
VB
|
|
|
|
|
Hi guys
I don't remember where (in COdeProject) is a sample of an window form that is part oh the Windows Desktop . It's similar to "Google Desktop Sidebar"
can you write the link please ??
Thanks
|
|
|
|
|
Hello,
I got a problem handling images. After I did everything I wanted with the image, I want to write it into a file using image.Save. At the PC at the office this works fine. But when I tried this at home, I always got the "General failure in component GDI+"-error. I don't know how to solve this. I still tried to write the image into a FileStream but I got the same error. Do you have an idea how to solve this or get a workaround?
Me.MyBase
|
|
|
|
|
I'm writing an independent help system with WhatsThisHelp support. I know WinHelp supports all this, but I need a single executable that has no other dependencies than the standard VB runtime files. It's nearly finished, but there's one thing I can't figure out. How do I intercept and respond to a WhatsThisHelp Click Event?
As soon as you activate WhatsThisHelp, VB6 doesn't receive the click event. It isn't even aware the cursor changed to arrow-questionmark.
Anybody got an idea how to do this?
Jottum
|
|
|
|
|
Dear friends
hi!.i m new to vb. can u tell me is there any way to set access permission to the file using vb code so that file can not be shared.
actually i have a set up file.after installation i don't want computers to access exe file in a network except one where set up is installed.so can anybody tell me how can i do that.is there any way to code my program so that i can acheive this goal.or any third pary tool is available for that.Please help me. any help will be appriciateable.
be the best...be helpful for others
|
|
|
|
|
Disable File Sharing for your App folder and it can only be xecuted
from the local computer. However, if the user has sufficient permissions they can share it anyway and still launch your App from the network.
I can't check the below code right now, no network. So forgive me if it doesn't work.
- Create a new project
- Add two labels next to each other on form one.
<br />
Private Sub Form_Load()<br />
<br />
Label1.Caption = "Path:"<br />
<br />
'If you only want one instance of your app<br />
<br />
If App.PrevInstance Then<br />
MsgBox "You are not allowed to start more then one instance of My App.", vbExclamation + vbOKOnly, "My App"<br />
Unload Me<br />
End If<br />
<br />
Label2.Caption = App.Path 'Display path.<br />
<br />
' Check if excuted from network<br />
<br />
If InStrB(Label2.Caption, "\\") <> 0 Then ' Double slash is network path<br />
MsgBox "You are not allowed to start My App from a remote computer.", vbExclamation + vbOKOnly, "My App"<br />
Unload Me<br />
End If<br />
<br />
End Sub<br />
Compile the code and run the exe. Run it again while the other is still open and see what happens. Close the exe. Now start it from a different computer on your network and see if it starts or displays the message.
HTH
Jottum
-- modified at 8:45 Friday 11th November, 2005
|
|
|
|
|
There's nothing you can do in your code to prevent this. Even if your installation removes the share, there is nothing preventing the admin of the machine from just sharing the folder your app is stored in and nothing you can do to prevent it. You have absolutely no control over this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a set of ms-access queries in .txt file.
How can i execute those queries from a vb program?
-- modified at 4:11 Friday 11th November, 2005
I have got the code to execute the query from the text file but if a query
spreads across more than one line i am getting a problem because
i am using an array that stores each line in the database and executes it.
can u suggest how i can use a delimiter to indicate the end of a query or
an alternative.
Another problem is that i want to execute queries from many txt files.
Right now i have hard-coded the path of one of the text files.
I want to access each query sequentially( the user can't select) and i am working in vb 6 so kindly help
Please help.
Thanks in advance
-- modified at 6:09 Friday 11th November, 2005
|
|
|
|
|
VB6
Is this a list of queries to be accessed sequentially, or do you need to select?
Basically read the query from the file into a string, or string array depending on what you need to do, and then execute the appropriate string.
If you need more help I can assist if it is VB6
|
|
|
|
|
I want to know exact difference between Pag_Init() and Class constructor of page. What type of operations are possible in these. Thanks in advance.
|
|
|
|
|
I want to show images in dropdown. How it is possible. Can I put datagrid in dropdown. Thanks in advance.
|
|
|
|
|
I am currently working on a project that requires me to create a visual browser.... well, this is what i really want to do.. i have some pictures on my form, when the user place the mouse pointer over the picture, that picture would zoom up.. if the user moves the mouse pointer to the right or left. the picture would move in that direction.. something like the one they have in microsoft encarta.. can any one help me please!!!!
|
|
|
|
|
Basically, I don't know of any shortcuts, you need to code this behaviour yourself. Track the mouse, when it enters a picture, zoom it. If it's in a zoomed picture, move it as the mouse moves.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Is there a way to have the CommonDialog control return a path and not a filename?
Thanks,
Tim
|
|
|
|
|
|
The Folder Browser dialog is typically used if the user needs to select a folder only.
|
|
|
|
|
|
Commondialog1.initdir="C:\windows\system"
|
|
|
|
|
After a ComboBox_SelectedIndexChanged event, my application is taking over the CPU and using it to 100% and will not release it. I have step over every line of code and did not detect any infinite loops or what so ever.
Every line within the subs and functions that are used seem to be serving their purpose. The application continues running without any "trouble", I am able to go from one Dialog to the next one and back; execute every single piece of code within the project without errors, but the CPU will not stop running at 100%.
The controls involved are two Grids from C1.Componets, a standard ComboBox and the variables needed to keep track of the number of rows I am inserting given certain parameters each one declared within the subs or functions that use them.
Does this make sense to anybody? Any sugestoins on how to aproach the issue?
Thank you very much for your priceless help.
Alex (completely lost rookie)
|
|
|
|
|
alexvw wrote: After a ComboBox_SelectedIndexChanged event, my application is taking over the CPU and using it to 100% and will not release it
Almost certainly, the event handler is setting the selected index, which raises the event, which causes the index to be set, which.....
Either way, posting the code is the only way anyone can offer specific advice, as opposed to the guess I just offered you.
alexvw wrote: The application continues running without any "trouble", I am able to go from one Dialog to the next one and back; execute every single piece of code within the project without errors, but the CPU will not stop running at 100%.
That's odd then, I'd expect a non-responsive UI. Can you post the code ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks a lot for your interest in my problem. I found out that my application behaves in such a way only when I am running it in Debug-Mode. I built the release version of it and it works without messing with the CPU at all.
Once again, thank you very much for your help.
Alex.
|
|
|
|