Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




How To Set A Hot-key That Apply To Whole Project Or Only A Form?


Hi, I want to set a Hot-key, e.g. F11, apply to whole project, any form when the key F11 is pressed, it will show "About" form.
I also need to set other Hot-key,e.g. F12, only apply in a special form, when it is press, it will show the HELP message of the operation in the form.

How I can do these? ThanK you all.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Apply The .ico File To The .exe Of The Project
Hi

Can someone please tell me how to apply a specific icon to the .exe file of my project.

Thanx in advance
Ice

Do Variables Apply To All Forms In A Project?
 Hi, although I don't need to know this info at this time, I'm sure it'll come up sometime. Say I delcared: <dim mystring as string>, in my first form. In my second form, can I go <mystring = can I do this>? Just wondering. Thx

Live for it. - C0|)F][5|-|
-----------------------------------------------------------------------------------------------
PS: you guys are great at helping, keep up the good work!

How To Apply A Property To All The Forms In The Project?
How to apply a property to all the forms in the project?
i have a menu option "Backgrounds"
When it's unchecked i want to remive backgrounds from all the forms in the project
is it a function like "for each.." that may be applied to all the forms in the projects? (i have a lot of them...)



Edited by - Spectator2002 on 9/20/2003 5:31:41 AM

How To Declare Database Connection Once And Apply To Whole Project?
dear,

im new in VB6.0.
how to declare database connection once and apply to whole project?
e.g. This is the second form, my first form is a MDIForm.

Public Sub Form_Load()

databasepath = "provider=SQLOLEDB; server=severname; User Id=sa; Password=xxx; Database=databasename"
Set objconn = New ADODB.Connection
Set Rs1 = New ADODB.Recordset

objconn.Open databasepath

SQLtext = "Select * From table"
Set Rs1 = objconn.Execute(SQLtext)

Do While Not Rs1.EOF
Combo1.AddItem Rs1("Name")
Rs1.MoveNext
Loop
End Sub

Want To Apply Some Effects On A Form???
How do I apply some effects on the Forum such as Fade, shutter or any other good effect.... thanks

How Do You Apply Skin To Your Form?
Could you tell me, How do you apply skin to your form?
Thanks you.

Apply Property To All Fields In A Form...?
Can someone tell me what is wrong with this function to disable all textboxes on a form?

Sub DisableAllFields()
Dim df As TextBox
For Each df In Me
df.Enabled = False
Next
End Sub

How Can I Apply Scroll Bars To A Form Object.
Can anyone help me in doing so....

Thanks in advance.

Multi Project Solution - How To Show A Form From A Different Project ?
I have a solution with 2 projects in it. I want to show a form from the second project, calling it from a form in the first project.
I've tried to add a reference to 'project2' but I got the following message : "An assembly must have a dll extension in order to be referenced".

Call A Form From A Project Incuded In A Project Group
Hello there,

How do i call (or) load a form from one project into another one ? Both exists under same project group and are created as "Standard EXE". This is a specific requirement.
That is, I ve two projects "Prj1" and "Prj2" under a project group "grp".
"Prj1" contains form1, and "Prj2" contains form2. "Prj2" is set as "Start Up Project". Now, all I want is that, access form1 when I am in form2.

Please note that, both or any of the projects are not to be created as executables.

Need Help - Convert Form Project To ActiveX Project
I want to convert regular project (form project) to ActiveX document project.

how can i do it in vb6?
i saw that all the code in Form_Activate in old project (form) didnt readen..

maybe i need to convert to other project?
i only to want to run my project in WEB.. can i do it in other way?

Can I Call A Form From Any Other Project In My Current Project.
Hi fellow programmers,
mine is a bit confusing problem. Plz try to follow.
I have got a project named Project1, it has got a form named form1. I have another project named Project2, it too has a form named form2, therez a command button on this form. Now when I press the command button, I want the form1 from Project1 to be shown, loaded or whatever.
Is this possible, if yes, plz help. If any doubts, post it here.

Grouped Project - Calling Form From Second Project
ok i had a webbrowser project and i have added a second project for the history so now i have a grouped project-
how do I call a form from the second project?

Oh the only reason I am adding a project is when i added the frms and class modules
is this line
Call ShowProgressInStatusBar(True, StatusBar1, ProgressBar1, Me)
then becomes undefined?





========================================================

If I were NE Better I'd be Twins

Edited by - planethax.cjb.net on 11/19/2002 4:30:11 AM

Loading A Form In Another Project In A Project Group
Hello there,

How do i call (or) load a form from one project into another one ? Both exists under same project group and are created as "Standard EXE". This is a specific requirement.
That is, I ve two projects "Prj1" and "Prj2" under a project group "grp".
"Prj1" contains form1, and "Prj2" contains form2. "Prj2" is set as "Start Up Project". Now, all I want is that, access form1 when I am in form2.

Please note that, both or any of the projects are not to be created as executables.

Apply A Object Parameter To Every Object On A Form...
Ok I am making a skinner for my program... I basicly I need it to change the color of lets say every button on the form... the buttons are not in an array so is there anyway of doing this...

Opening A Form/project From Another Form
is there anyway to open a form from another form. i don't mean show it. i mean as if the form was not running then you open it.

also can you do this with a project. can you open a project from a form.

thanks a lot

Use A Control Of A Form On Another Form Within A Project
Hi,
I have 2 form in my project
1) The maintainance form (Add, delete, edit )records
I've used the ADO control for it--- everything is OK
On the first form, I've a button which when clicked shows the second form with a datagrid listing all the content of the database table i am using in my first form.

The problem is that I want to use the same ADO control found on the first form for the datagrid on the second form but ends up with an error.
I want to use only 1 ADO control so that when For eg, i am viewing the 4th record on form1, when i click 'list', the second form shows up with the pointer on the datagrid pointing the 4th record.

can someone help me ?

Thanks in advance for any suggestion

A Form From ActiveX Dll To MDI Form In A Project
How can I insert a Form (MDIChild = True) which id built in ActiveX DLL to MDIForm, however this MDIForm is located in other project (A class has a method which accesing a form).
MSDN write that I have to insert a Form into Project (which include a MDIForm) , but I would not to do it, becouse the project and DLL is built from two different people.
Thanks, Martin

When And How To Apply XSL
I have a vb6 app that takes a result set from another program and generates an XML document from it and then opens a form with a web browser inside that program to display the results to the user.
What I would like to do is fancy up the xml a bit using xsl. My only problem is that I don't know exactly when or how I can do this.
The XSL is going to be static. The XML format is going to be static but the doc itself gets generated dynamically but always in the same path location.

Can I just leave the xsl in the same path if I can find a way to add a processing instruction to the xml to actually use it? This seems like the way to go to me. I can take the xml (after vb generates it) and edit it to contain a reference to the xsl, but I can't figure out how to get vb to dynamically include the stylesheet ref.

The other route I could go would be to apply the xsl in code just before I render it on the form's browser control. I don't really know how to do that either.
Any suggestions?

Apply Changes
Ok I dont know how to do this or where to place the code but what I would like to do is give the end user the option to change certain aspects of the app.

So when someone clicks option then clicks, 'show splash screen' then the code for showing form 1 is hidden and the code for showing the splash screen is shown.

Is this placed in a module or class?

Can This Be Apply?
Can i apply this code to combo box that have list of items from access database?

For Each Form In The Project
WHat woud be the code for the pseudocode

for each form in the project
> action
next form


thank you

Can't Add Form Into VB Project
My problem is that I can't add new form into my VB project. Pop up message is "Out Of Memory". Problem can't be solved adding more memory.
Project is too large but I don't know where is a limit of project growing regarding the number of form objects or any other objects that could be embeded into visual basic priojects.

Get All Form Name Of My Project
I want get all form name of my project. How can I do this?

Kanna.

How To Get All Form Name In My Project?
I want to show Name of all Form that I create in my project that develop by VB.

I know that I can list it by my self but I want to make program to list it automatically.

So, How to get all Form name in my project?

How I Get All Form's Name In My Project??
hello for all
i wont to get all my form's name

Exm:

if i have 3 forms

1)FrmAuthorizations
2)FrmCompany
3)FrmInventory

on click action i get all the 3 form's name

Thanking you in anticipation

Add Form To New Project.
I have kind of an odd question. At least nothing I could find on the net that addresses the issue.

I have a project with a VB form that has a third party control in it.

I have a new project that I want to use that form in it. So I make sure that my third party control is in my toolbar and I add the form to my new project. When the form is brought up, my third part control is changed to a picturebox and the code is gone in that form.

Is there a way to bring over everything including the third party controls?

Thanks

Don't Apply XP Style?
Can we make our VB programs running in WinXP without SP style? (Looks like Windows XP running 16-Bit program). I see some windowed game have classic title bar.

Wil Not Apply To All Sheets
I'm pretty new to this so again it's probably a really simple mistake. I am trying to apply the followong fortmatting to all sheets in a workbook. I started out with this.


Code:
Dim shtTemp As Worksheet
For Each shtTemp In ActiveWorkbook.Worksheets
With shtTemp

ActiveWindow.Zoom = 85
Range("C8").Select
ActiveWindow.FreezePanes = True
ActiveSheet.PageSetup.PrintTitleRows = "$1:$7"
ActiveSheet.PageSetup.PrintTitleColumns = "$A:$B"
ActiveSheet.PageSetup.Orientation = xlLandscape
ActiveSheet.PageSetup.Zoom = 85
ActiveSheet.PageSetup.LeftMargin = Application.InchesToPoints(0.4)
ActiveSheet.PageSetup.RightMargin = Application.InchesToPoints(0.4)
ActiveSheet.PageSetup.TopMargin = Application.InchesToPoints(0.5)
ActiveSheet.PageSetup.BottomMargin = Application.InchesToPoints(0.5)
ActiveSheet.PageSetup.HeaderMargin = Application.InchesToPoints(0.5)
ActiveSheet.PageSetup.FooterMargin = Application.InchesToPoints(0.5)
End With

Next

However for some reason it only applied to the first sheet so I added in the next sheet command at the end of the loop.
Code:
activesheet.next.select
This works but obviously when it has formatted all the sheets it cannot find another and returns an error.

How can I either get the top code to work properly or make it stop at the last sheet?

Thanks for you help

Apply Settings
I have written a small vb program that changes a system file in windows. Can I apply that change without restarting the computer?

I know in windows, I can change keyboard layouts and display settings without restarting so I am wondering if I can I do the same with a vb program?

I am relatively new to vb, but have quite a bit of experience in other languages.

Thanks in advance
jb

Apply Changes To 90 TextBoxes
I have a form with 90 textboxes, named Text1 -> Text90
I want to apply the same changes to them all..

Font = Arial
Size = 10
Style = Fat* (I have VB in different lang, so i dont know if that's the name for it)
Align = Center

What i am looking for is a loop code that applies the specifies changes to them all.
I have been working with this project all nite and i got stuck on this..

Any help here is greatly appreciated.

Apply FFT To A WAV File
Hi there!
I am currently working on a speech recognition program. I've been able to record voice and display it in a waveform. I need to apply the Fast Fourier Transformation to my wav file to get the prominent frequencies for analysis. It would be really helpful if anyone can give me some guidance on this matter. Many thanks!!! (The main problem im facing is to apply FFT to a wav file, about 10 seconds long)

Apply Changes Button
I am having trouble making the form keep the value I enter when the form is opened for the first time. Upon closing and opening the form for the second time the new value which I put in one of the text boxes sticks.

Please have a look at my code - command1_click is an "apply" button so that the changes will take affect (loaded into ifrom array) and then displayed back if the user closes the form and then loads it again.




Code:
Private Sub Command1_Click()

For y = 1 To 130
ifrom(2, y) = ifrom2.Controls("ifrom2" & y).Text

Next

End Sub

Private Sub Form_Load()
Static blnInit2 As Boolean
Static x As Integer
If Not blnInit2 Then

for y =1 to 130

ifrom2.controls("ifrom2"& y).text = 999

next y

For y = 1 To 130
ifrom(2, y) = ifrom2.Controls("ifrom2" & y).Text
Next y
blnInit2 = True
End If

If x > 1 Then

For y = 1 To 130
ifrom2.Controls("ifrom2" & y).Text = ifrom(2, y)
Next y
End If

x = x + 1
End Sub

OK, Cancel, Apply Etc.
Is there any way you can retrieve the name of the "OK", "Cancel", "Apply", "Yes", "Help" etc. in the language of the operating system?
The MsgBox can tell automatically, but can you retrieve these values to be used for buttons etc. e.g. using the API??

Apply Button?
hey, ive made a thing in the registry that stroes two color values(if one opttion button is true then one color and the other is a differnet color) this works fine and i can get it to work on any form i want to change the colour......but.......the problems comes when i go to the form after i have changed the registry data its still as it was (the old colour) and i have to close it and open it again untill the colour is how i want it to be. is there some way to make a buton or change the code so that i dont have to open the form twice before it changes?

Thanks

I Know This Doesn't Apply But...
Can anyone tell me if you can detect if someones' cookies are enabled on the browser and if NOT then turn it on for them?

Of course this needs to be done through ASP.

thanks...

If There Is No U In Guru, Need Not Apply
I am trying to discover what file is currently selected within a window(Example having windows explorer open and clicking once on the WinNT folder makes it the selected file). Is there any API to determine what is currently selected? I am pretty sure that there has to be because some call must be made to icon to highlight it. If I can track that, I can track which item is selected. Does anyone know the API call for it?

Thanks for your time,
Joe

Apply Coding
Guys.....

How can I apply this function in listbox...


Private Sub Data1_Reposition()
Data1.Caption = Data1.Recordset("No_supplier")

End Sub

I just want to know how can I coding in listbox to appear like in my Data1
meaning that I can select the data....

I try to apply in list box this code but...
the data doesn't appear.....

Apply Formatting To Xml Tag
Hi,

I have the following situation:
The user has a blank word document with a schema attached and has to add text to that document and tag the text accordingly. Now, i want to show each tag he adds with a different style.
I have used the following VBA code in word 2003 , to try to assign userdefined styles to each tag.

Private Sub Document_XMLAfterInsert(ByVal NewXMLNode As XMLNode, ByVal
InUndoRedo As Boolean)
If NewXMLNode.BaseName = "Title" Then
NewXMLNode.Range.Style = ActiveDocument.Styles("StyleTitle")
End If
If NewXMLNode.BaseName = "Subtitle" Then
NewXMLNode.Range.Style = ActiveDocument.Styles("StyleSubtitle")
End If
End Sub

Using this approach, a particular style is selected when i insert a tag. it
works if I tag some text as Title and then tag some other text as SubTitle.
But if i insert a Title tag ,then a Subtitle Tag, and then proceed to enter
the text in those two tags, the formatting of the title tag is that of the
subtitle tag.( The code does not set the style for a particular tag's range
as i thought it would). Moreover, if i enter text in any other tag for which
the style is not defined, the style is the same as the last programmatically applied style.
This is my first attempt at VBA.I dont know if i've missed anything.

I was also wondering whether it is possible to have a macro which sets the style each time i click inside an xml tag or whether it is possible to do that through code.

Could anyone help me with this please?
Any help will be greatly appreciated.

Is there a way to achieve this?

Thanks
Alicia

Apply Registry Changes
can anyone tell me how i can Apply Registry changes to my computer using visual basics!

Apply Button
Hi, I have a options dialog with many check boxes and comboboxes etc. I want to put an apply button and I want to know when I have something to apply. One way is to have a boolen variable and every time when I change something to set it to true.
My question: Is there any better way to do this?

Thanks

Active Form In Project
Simple question: How to know wich form is currently active in a project?
Thanks

Project Without Form (submain)
I want to make a very simple exe, without a form (for fast execution). You can give a project a startup submain (instead of a form). How do I make a sub-main. I coudn't find it in de msdn

Loading Another Form From Same Project
hi i want to use 1 form to load another form how can i do this its in the same project

the names of the two forms are

frmMain
frmLogon
i want to load frmLogon from frmMain

i tried something liek this

Private Sub Form_Load()
Open As LoanProject.frmLogon
End Sub

- Thanks in advance

Copy Form To Another Project
Hi Everybody,

I seem to be stumped. I want to copy a form from one project to another different project.

I can move the *.frm and *.frx files to the new project directory, but it will not appear in the Project Explorer.

What must I do. I don't believe I need to redraw the form... there must be a way to export it to the new project.

Thank,s
Paul

Can I Make A Form From Another Project Appear?
On a project I have a form called Form1 (on which has a commandbutton Command1.)

On another project I have created a form called FormX

When the user clicks the commandbutton of Form1, FormX would appear. Is this possible? (Please take out that Form1 and FormX were created through different projects.)

Please make your code and explanations as clear as possible because im a newbie. Im using VB 6.0 Thanks guys!!!

Inject Other NON VB Form To My Project
i mean to inject other small form in my project form
but the form is not VB
how can do this?

Copying A Form From One Project To Another
Hello

is there a way i could copy a form from one project to another but just the form, its buttons, combo boxes and its list boxes and not the code?

Calling Form Of Another Project
guys
how will we call from ur form, the form of another project???
can somebody give me the syntax..

thnx
nean

Copyright © 2005-08 www.BigResource.com, All rights reserved