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




Visual Basic Runtime Menu Creation


does anybody know how to create menu and it's item during runtime?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Visual Basic DLL Creation
I'm having a problem using self-made DLL's in VB.

I made an ActiveX DLL in VB, and when I try to use it I get the error "Can't find DLL entry point <function> in <filename>". So I thought, ok i'll make the DLL is VC++. Tried it and got exactly the same thing.

Here's an example of what I'm using:


Code:
int _stdcall Add( int inta, int intb )
{
int intTemp;
intTemp = inta + intb;

return(intTemp);

}
In a DLL called "test.dll", compiled with no problems.


Code:
Private Declare Function Add Lib "test.dll" (ByVal intA As Integer, ByVal intB As Integer) As Integer
Private Sub Form_Load()

MsgBox Add(5, 5)

End Sub
And that's my Visual basic code. "test.dll" is placed in the windows directory, so it's all good.

Little help?

Visual Basic Macro Creation
I need help in completing a macro using visual basic. The macro takes data from and excel spreadsheet and places it into another application. I have data in multiple rows in the excel spreadsheet. What I need is to be able to have this macro choose the data in one row, move it to the appropriate application, and then continue and choose data from the next row and to continue until it reaches a * or other symbol at which time the macro stops processing.

I would appreciate any help you could provide in getting this working for me.

Thanks,

Visual Basic File Creation Error
Ok here is my Question. I am adding scripting support to a application I am working on for someone. I have tried everything in the book but i dont understand what is wrong with this code.


Code:
If Left(TextString, 10) = "createfile" Then
Dim T As String
T = Right(TextString, Len(TextString) - 10)
Open "" & T For Output As #1
End If
Now, everytime they input the script it says "error file already open" i dont see how it could be open already! I even added close before dim t as string and same message. I dont see whats wrong. I even tried this


Code:
If Left(TextString, 10) = "createfile" Then
Dim X As String
X = Right(TextString, Len(TextString) - 10)
Text1.Text = X
Open Text1.Text For Output As #1
End If

Visual Basic 5.0 Byte Array Creation Problem
Because the Integer to ByteArray function for Palm OS conduit development isn't working for me under VB 5.0 (but the ByteArray to Integer function - the reverse function - is working), I thought I'd attempt to perform the conversion from PC to Palm format for strings and integers on my own, and test it by using the Palm to PC format functions for strings and integers, to see if I get back the original text or integer. The text converter seems to work, at least in that the COM conversion function from byte array to text reproduces the original text when sent the product of the function that I wrote.

Unfortunately, the function that I was trying to get to work to perform the conversion from integer to byte array doesn't seem to be working properly.

When I send the result to the COM function to convert it back to an integer (long) format that is suitable for the PC, nothing is displayed in the text box to which I send the result. The VB code for the integer to byte array function follows. My understanding is the Intel/Windows 98 is Little Endian and the Motorola 680000 Dragonball processor on the Palm is Big Endian, so I attempt a conversion in the following code.

Can anyone tell me what I'm doing wrong here? (Note: I'm beyond the limits of my normal programming capabilities when it comes to manipulating memory directly, or dealing in byte arrays. Please keep that in mind in any response.) I realize that Palm conversion routines are probably not typical VB questions, but having posted on the Palm developer forum, I thought I'd come here, because VB isn't typical subject matter for the other forum.

I only have access to VB 5.0. I am inclined to wonder whether assuming double word format is the problem, as the Palm device may be using 8 or 16 bit integers, which is another aspect of how to approach this conversion with which I am not adequately informed at present.

Thanks.

--------
Option Explicit
Private Declare Sub CopyMemory Lib "kernel32" _
Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

--------

Function LongToByteArray(ByVal lng As Long) As Variant

Dim frog As Variant
Dim ByteArray(0 To 3) As Byte
Dim FinArray(0 To 3) As Byte
CopyMemory ByteArray(0), ByVal VarPtr(lng), Len(lng)
'ByteArray is in Big Endian Format (Windows 98/Intel)
'Convert from Big Endian to Little Endian Format
FinArray(3) = ByteArray(0)
FinArray(2) = ByteArray(1)
FinArray(1) = ByteArray(2)
FinArray(0) = ByteArray(3)
'FinArray is in Little Endian Format
'Save FinArray as a Variant and Send Back to Calling Routine
frog = FinArray
LongToByteArray = frog

End Function

Creation Of Outlook Email Accounts Using Visual Basic?
Hi,

I'm launching a new email service soon and would like to be able to create a program that automatically creates accounts in outlook without the user having to enter pop and smtp server information etc.
How could I do this?
Is it possible?
---If it is too much trouble I won't bother but it would be nice--------
Many thanks,

Jord

?? Can You Not Use Winsock In Visual Basic Control Creation Edition ??
please can someone tell me can i use Winsock component in VB5CCE, or do i need an update or something. What do you lot use to make your programs,a dn where didi you get it from?

>>> Foxy <<<

Visual Basic Runtime Dll's
Hi all there,
You know a visual basic programs is small in size, but it doesn't work in computers that does not have Visual Basic installed because they don't have the Visual Basic Runtime Files and libraries.
Is there any solution for this problem?
Isn't there any kind of compiling that includes the VB Runtime Dll's?

Visual Basic : Runtime Error #6
what does a runtime error #6 mean?
how does it occur?

why do i get a runtime error #6 when i do this:

dim x,key1 as currency

key1 = 123456
x=97

x = x ^ Key1

is there any substitute syntax on how i could get the value of x without encountering runtime Error #6?

i'll be waiting for ur reply..tnx.

Visual Basic 6.0 Runtime Installation
I'm trying to install visual basic 6.0 runtime, but when I attempt to open the file it gives me this error: "Command line option syntax. Type Command /? for help.

I'm trying to install this to fix my nvcpl.dll and nvmctray.dll start up errors.

Visual Basic 6.0 SP 6.0 Runtime Error
Hi, I'm developing an application using visual basic 6.0 service pack 6, but I am receiving an error message, however looks like it is radom, I mean, sometimes it happens opening a form, next time closing the app. after that when I use a control inside the form, button, textbox, etc.

I can't trace the problem because when the error appears I receive a VB message: "Visual Basic has encountered a problem and needs to close. We sorry for the inconvenience...." with three buttons : Debug, Send error Report and Don't Send

I trying to catch the problem looking into the error report but I can't understand most of it:

the error report always contains the following text in its header:

AppName: vb6.exe AppVer: 6.0.97.82 ModName: winmm.dll
ModVer: 5.1.2600.2180 Offset: 0000594d

Sometimes I ignore the message and everything works perfectly, no more error messages or problems. of course I move the error message window to an edge of the screen in order to continue working.

The error only appears at runtime. When I compile and make the exe file, I receive the same message with the same erratic behavior the only things that change is the error message header

AppName: worldtvrt.exe AppVer: 5.0.0.0 ModName: winmm.dll
ModVer: 5.1.2600.2180 Offset: 0000594d


Last if it is useful these are the controls used by my program

toolbar2.ocx: a free toolbar downloaded from planet-source-code (it's working in other projects, not error messages so far)
vbskpro2.ocx A commercial skinner for visual basic 6.It works fine since our first software version, used in many projects without problems
asrecmms.ocx: Belongs to Active sound recorder a commercial activex control is the first time tha we use it

besides we use the following vB6 controls:

comdlg32.ocx
riched32.dll
richtx32.ocx

Someone can give me a hand?

I'm running out of ideas... and time to finish my work, Any help will be greatly appreciated

Thanks in advance

PD: Please forgive my poor English.

Visual Basic 6.0 Runtime Error
Hi All,

In my V.B 6.0 application when i want to save the application iam getting below runtime error and after that system is crashing.

The error is - "The instruction "ox05b773eb" referenced memory at "0xf4e1a06f".The memory could not be "Written".Click OK to terminate the program"

Please check the attachment and provide me the solution.

Thanks&regards,
Amar.

Visual Basic 6.0 Runtime Error
Hi All,

In my VB 6.0 application when i want to save the changes then suddenly iam getting below error.

"The instruction at "0x00000000" referenced memory at "0x00000000", the memory could not be read" error (See the attachment name-"VB error"). "Click on OK to terminate the program" message is displaying after clicking on the OK button it is displaying one more message (See the attachment name-"VB problem")and Click on ok means then application is crashing.

Check the attachments.
Please give me the urgent replay because our project is in production phase.

Thanks&Regards,
Amar...

Visual Basic 6.0 Runtime Error
Hi All,

In my VB 6.0 application when i want to save the changes then suddenly iam getting below error.

"The instruction at "0x00000000" referenced memory at "0x00000000", the memory could not be read" error. "Click on OK to terminate the program" message is displaying. Click on ok means then application is closing.

Please give me the urgent replay because our project is in production phase.

Thanks&Regards,
Amar...

Visual Basic Runtime Files
Hello!

I'm making a prog to put on a CD.

I want this CD to work on as many computers as possible.

I'm using Visua Basic 5 which as you know works with Win 95 up with the runtimes installed.

Can I put the VB Runtime .dlls in the same folder as the program on the CD and then the computer does not have to have them installed?

Thanks!

Visual Basic Runtime Files
No, not another question about getting rid of the DLL's

I've been deploying my programs for a while now, always including the VB6 runtime files for users who don't have them installed, but I'm not happy about this.

I want users to be able to download the files directly from the Microsoft site, so I don't have to worry about version conflicts or anything...

Does anybody know where these files can be found? I need the Visual Basic 6 runtime files, the Windows Common Controls 6, the Winsock OCX and DAO 3.6...

Thanks,

Visual Basic Runtime Libraries
I have some internet chat programs that were written in visual
basic and will run on the school's NT machines but won't run
on my win95b box.

Will installing VB runtime libraries on the 95 box help? If
so, which version of the libraries works best with win95b
(essentially 98)?

I know next to nothing about VB other than it is a programming
language. What purpose(s) if any will the runtime libraries
serve on this older machine?

Thanks for any useful info.
Regular newserver is down for the moment.

CD Menu In Visual Basic. How To?
Hello. This is my first post here.

My questions are:

1. I want to make a DVD menu in VB that could load up to a 1000 different setup.exe files from the disc.

2. If possible I want it to be a stand-alone .exe file started by the autorun.inf file.

3. This project would have:

One Form - window
One Menu List - where you select the program you wish to install
One Install Button - Click install after you select program
One Exit Button - well... you know

By the time I'm done, it should look something like this:

http://www.sheilsoft.com/software/cdmenu3.jpg

Where can I find some code examples to do this?

a. I mean how to index every item in the menu list with the right setup.exe file found in DVD root.

b. How to call for the setup.exe file by pushing Install once selected.

Thanx you guys!

Visual Basic Menu
All,

Does anyone know how to increase the checked bitmap size?

Basiclly I would like to create a menu similar to the latest Microsoft standard, bitmap images next to some menu options.

I have searched TechNet and MSDN and I am unable to locate an article on the subject. I have found an article on how to add bitmaps to the menu but unfortunatly you have to use the checked bitmap area or replace the menu text.

Any ideas?

Regards,

DOS Menu In Visual Basic
Hi folks,
Is there a way to get a DOS menu in a VB form somehow?
I'm rewriting a program from dos to windows, but still wants to kep the possibility to select an option the old fashioned way.

Thanxxx.

List Of Runtime Errors In Visual Basic 6
Hi,

can anyone give me the list of runtime error in visual basic 6 together with the description? thanks in advance.

Zipping/unzipping In Visual Basic At Runtime..
Is there a way you can ZIP and UNZIP a file at runtime, without have to use any other external program??

that would make it very very useful because i have an updating process, and if i cant zip the file, the file will be 1MB+, while zipped, it is only 100K!

thanks a lots !

Creating Arrays At Runtime In Visual Basic
hi everybody

In my application i need to create arrays dynamically
like
noofarrays = 5(changes)

for i=1 to noofarrays

dim arr & i (1,1)
next

I need to create 5 arrays
it is giving problem in visual basic

how do we create array at dynamically?
could somebody help me in this regard

Thanking you
Raghunath

Runtime Image Print In Visual Basic 6
Hi All

I am in trouble... I am using visual basic 6 and access 2003. I want to print a picture in run time Data report in vb. I am using rptImage control for this and code:-

.item("photo").picture=loadpicture("c:1.jpg")

but it is not working.......

Can any one give me the solution...........

Visual Basic Runtime Error 3040
Could you explain what it is and how to solve it?

Visual Basic File Menu
The file menu from my visual basic program has disappeared, anyone know how I can get it back?

Help: Flash Menu And Visual Basic
Hi!

I'm new on developing programs made in vb but with a flash interface, and i'd like to know if there's anyone who can help me with a great question that i have:

there's any way to use a flash unfolding menu movie in a vb program? I mean, i have this flash menu and i'd like to use each link in the menu to open a diferent image in the same form where the flash movie is placed.

Thank you in advance!!

Menu Item And Visual Basic
I was wondering if was possible to remove menu items from the program in the Office 2000 family? For example, in Excel the top menu bar has the following items: File, Edit, View, Insert, Format, Tools ,etc... I was hoping to have an instance of excel where only the file item could be seen. Is this possible?

brad

Icon In Menu (Visual Basic)
Thanks. But i would know in visual basic.

How can i put icons or pictures to the menu?

--Boundary_(ID_gZxsMqfF+mAfmMsFzZusdg)
Content-type: text/html; charset=iso-8859-2
Content-transfer-encoding: quoted-printable

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"xm lns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-2">



<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid: email@removed ">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:Brow serLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.ElektronikusLevlStlus17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */


table.MsoNormalTable
{mso-style-name:"Norm=E1l t=E1bl=E1zat";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=HU link=blue vlink=purplestyle='tab-interval:35.4pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><spanstyle='font-size:10.0pt;
font-family:Arial'>Thanks. But i would know in visualbasic.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><spanstyle='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font>< /p>

<p class=MsoNormal><font size=2 face=Arial><spanstyle='font-size:10.0pt;
font-family:Arial'>How can i put icons or pictures to themenu?<o:p></o:p></span></font></p>

</div>

</body>

</html>

--Boundary_(ID_gZxsMqfF+mAfmMsFzZusdg)--

Menu With Images In Visual Basic
Dear Friends
Can anybody give a few hints as how to build visual basic menu system same as office commandbars control system with ICONS and other office menu system features , or can the office commandbar control collection be exported to VB via OLEUsage components.

Rgds
abrar

Menu In Visual Basic Document
iam using visual basic document (dll), when i add menu from the ide and run it ,iam not able to see it in the browser, can anyone tell a solution.

Is there any disadvantage of using visual basic document instead of other web technolgies (performance or any other)?
sree
mumbai

Runtime And Designtime ActiveX Visual Basic 6 Question
Hello,

I have a question, can someone help me please?

What are the differences between a runtime and a designtime component?

Is runtime component only good for running with the .exe and not
during development environment using Visual Basic 6 (For example, an
error pops out saying License is not found - I am using 3rd party
components.)?

How can you tell if a component is Runtime or Designtime so one can
actually purchase a license for it?

Thanks for your help.

Rahail.

Create MS Access Database At Runtime Through Jet Dll In Visual Basic
    Hi,
                     How to Create MS Access database at runtime through JET Engine dll in visual basic 6.0

Visual Basic Runtime Redist Pack Error ?
Hi,

I have developed a safe for scripting activex launcher using VB, to launch other activex components from our site. As i developed in VB, some systems may need vb runtimes. So i have given url reference to our site, where vbrun60.cab file is located in launcher cab.
Its working fine.

But in Windows XP Home edition , it gives error that Microsoft Visual Basic Runtime Redist Pack Error, Type /? for help.

and other things works fine. So, how do i comeout of this problem or supress that message ?

THanking you

Regards
Praveen

How To Load A Resource File(.res) At Runtime In Visual Basic
I need to load a Resource file (.res) at runtime in visual basic. After loading the resource file I need to retrieve all the string value in the resource file.
How can I do it?
Are there any Windows API for this?

Thanks in advance.
Viren

Visual Basic Form Menu Font
How do you change the font of a drop down menu on a VB form? Are we all stuck with the standard Windows font? This is expecially inconvenient when working with languages that do not use a Romanized alphabet (I work in Cambodia).

Making A 'tree' Menu With + And - In Visual Basic?
Search as I might, I can't find a tutorial to help in designing a tree menu in VB.

(You know the ones, where you click a '+' and it expands to show sub menus etc, click the '-' to hide it again).

Does anyone know

1) how to?
2) where to find how to?

I need help desperately Cheers.

-----

Creating A Autorun CD Menu Using Visual Basic
I want to create a VB .exe to include in my autorun CD.

Here is what I need:
The .exe should prompt user with a form with 3-4 options, and on clicking the respective options, the user should be see another form with second set of options.

Does anyone have a VBScript for the same?

Here is what I have done/ My issue:

I created a Project in Visual Basic 6.

I created Form1 and added 4 option controls (Frm1Opt1, FrmOpt2, FrmOpt3, Frm1Opt4) on that form.

I created Form2 and added 3 options on that form (Frm2Opt1, Frm2Opt2, Frm2Opt3)

I added a click event for the first option control on form1:

Private Sub Frm1Opt1_Click()
Me.Hide
Form2.Show
End Sub

I have changed the project startup properties to start with Form1.

The problem is that now when I compile and run the program, automatically the click event of the first form-first option runs and I see the Form2 instead of Form 1.
I just do not see Form1.

I had thought that the click event will only run when I select the first option on form 1, but it just runs automatically.

I am not sure how can I change that? I am probably missing something.

Thanks

Visual Basic Runtime (VBRun) 6.0 Vs 6.0sp5 -- Effect On End Users?
Hello all... I'm currently working on learning VB 6.0, and as I work toward writing several small programs for distribution on the Internet, something crossed my mind about the VB Runtimes...

As we know, any system that wants to run a VB program needs the appropriate VBRun installed.

I noticed on the Microsoft website that they not only have the original VBRun 6.0 available for download, but also VBRun 6.0 Service Pack 5, which includes all the updates made to the VBRun 6.0 files in the corresponding Service Pack 5 for Visual Studio.

My question is: If I'm developing on Visual Basic Service Pack 5, will VBRun 6.0 sp5 be required for my end users, or will the original VBRun 6.0 be entirely sufficient (albeit slightly more buggy due to lacking the service pack fixes)?

I guess this would really depend on whether the service packs were strictly stability improvements, or whether new functionality was added, on which programs compiled by the corresponding service pack of Visual Studio depend...

I have no problem telling my users "you must have VBRun 6.0 installed for this program to work", but I really don't want to tell people who already have VBRun 6.0 that they need to download a newer version because their service pack isn't a high enough revision. I'll sooner develop on VB 6.0 sans any service packs installed.

If anyone knows the answer to this, it would be much appreciated.

Shawn A. Curnew, MCP

Runtime Controls Checkbox Database Programming With Visual Basic
hi,
while programming in visual basic i encountered this problem. Suppose I have a database with a table having name, place. now when i choose the name from the combo box form, all the records with the name will be displayed.. ie.
Select name, place from table where name=" & Combo_name.Text
if in my combo box i have selected st1, i need all places corresponding to it. This is done, but if i need a checkbox also dynamically during runtime like shown below, where i couuld choose a particular relevant record. how could i do that:

name place
st1   missouri checkbox
st1   london   checkbox
st1   delhi    checkbox

I tried doing this :
Set db = OpenDatabase("loc.mdb")

Do While Not rs.EOF
Set chkInput = Form1.Controls.Add("VB.CheckBox", "chkInput" & i, Form1)
chkInput.Visible = True

Print rs.Fields("Roadname").Value & "                   " & rs.Fields("SegmentFrom").Value & "                        " & rs.Fields("SegmentTo").Value & "                        " & rs.Fields("SegmentRoadside").Value
i = i + 1
rs.MoveNext
Loop
*************************
however this gives me only one checkbox and in a location that is somewhere at the top, i dont get checkboxes for all the records. Could anyone tell me how to do it.
Thanks
namomita
  

Change Menu Background Color Using Visual Basic
Pleaseee......Help.....

How to change Menu Background color using Visual Basic.

I can use SetSysColor but it changes the colors for all applications. ...
Or is there a way to use SetSysColor only for the current thread????

How To Change Menu Item Colour Visual Basic 6.0
how to change menu item colour visual basic 6.0 ...?

Html/javascript Menu And Visual Basic Application
Hi,

Is it possible to create an html/javascript menu and insert it into a visual basic aplication?

Problem With Visual Basic 6.0 - Add--&gt; Data Report Not Coming In Menu
Hi all

Well might sound strange to many

But ya i am facing this kind of problem.
When i checked the submenu on right clicking on explorer part then I tried to find out Date Environment and Dat Report , which i want to add.

But it was unfortunate that those options moved out from that location.

I even tried Project main menu--> Sub menu items but still there too i was not able to trace them.

Where to find them and get them back to their position

Sandeep

How Can I Make A Two-level Menu Hierachy In Embedded Visual Basic?
Helló eveybody!

For my application I need to realize a two-level menu system.

Menu/Map/Index map
Menu/Map/Zoon on
Menu/Map/Zoom out
Menu/Search/Settlement
Menu/Search/Location

etc etc.

Can anybody help me?

Thanks

Zoli

 

Edited by - zvaranka on 10/20/2003 11:13:43 PM

Popup Menu, Context Menu Dynamic Creation?
Hi everyone,

i used the google search and the forum search but i didnt find any suitable result.
What i want to do:
i want to display a popup menu which is dynamic created from an xml file. i read the xml file to my own private type structure and now i want to display a popup menu. the only, as i think very ugly way i found is sevpopup menu active x. the problem with that menu is, that in every way there is a space for icons in menu which i dont have and the other problem is that i want to copy and not to install the application.
Really important for me is that i can create submenus!

Thank you all for help!

buechse

Visual Basic Runtime Error "Error Saving Document
Dear all,
I am saving a document from vb. While saving I get this error. This error occurs only when I run the exe file. This problem doesnt occur while developing the project.
There is no problem with the path. What else may be the problem?

How to rectify this error " Error saving Document" in visual basic 6.0

Pls Help, this is very urgent.

Thanks to all.

Rgds,
Visha

Runtime Creation
How do i create a Timer at runtime,

Because im making an active X dll and i have no form to put a timer on

Runtime Creation
I'm having difficulties with making runtime components and then using these components to execute events. Here is an example

Private Sub Make_PictBtn()
num = num + 1
Dim frm As VB.Form
Dim picbox(1 To 100) As PictureBox
Set frm = Project1.frmMain
Set picbox(num) = frm.Controls.Add("vb.PictureBox", "picBox" & num, frm)
End Sub

using this code I can create as many as 100 picture boxes at run time by making a call to this code. Unfortunately I can not use them to execute events. So first thought would be use a statement like

Dim WithEvents picbox(1 to 100) As PictureBox

But you are unable to use arrays with the "WithEvents" option. So I need a way to basically change the name of the pictureboxes each time I create them. Is there any way to make a statement that would accomplish the following code but be correct syntax

dim withEvents ("picbox" & num) as PictureBox

So basically I create the actual name by putting two variables together. In the above example if num was equal to 1 then the code would execute like this

Dim withEvents picbox1 as PictureBox

And so forth and so on as num when up in value. Any help is greatly appreciated!

Word And Visual Basic [ How Can I Get The Save As Window Through Visual Basic? ]
Hi, I made a small program in visual basic that with the use of

Dim oWord as new word.application
Dim oDoc as new word.document

fills a document with some data from the visual basic.
I want when those data are loaded in word the save or save as window to appear.
The command oDoc.saveAs saves the document without even asking for a filename.

What Can I do?

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