473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

some (simple) noobie questions

hi there, i'm already searching the internet for a couple of days to find an answer on this (simple) questions but i couln't find anything usefull.
- how to quit and open a programm like "word" with a trigger in visual basic?

- can you run your programms without opening excell first(because i'm working with vb in excell). My brother said something of .exe files but he didn't knew how to do that in visual basic because he works with java.

-how to save or load files while a programm is running?

pls help me!!



-peter-
Jul 5 '06 #1
3 1388
- I also have an other question:
How do you let the computer generate a random number after you click on a commandbutton.


-peter-
Jul 5 '06 #2
hi.

i think the solution is something 2 do with shell


any way teh random number is this code (vb2008)

Dim value As Integer = CInt(Int((5 * Rnd()) + 1))
type that when ever u want the random number to be generated

this code says that value is the variable that u can check that has teh random number. in that code 5 is the max number and 1 is the minimum number. try that i hope it helps you.

ill look into the shell thing for the open and exe file and get bak 2 u :)
Feb 9 '08 #3
got it! :)

Shell("calc.exe", AppWinStyle.NormalFocus)

this opens calculator

where the "calc.exe" is change that to the location of the file u want to open fiddle around with that and it should work

:D

-jack-
Feb 9 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Steven O. | last post by:
I am basically a hobbyist programmer, at the moment doing a little work experimenting with some AI stuff. I learned C++, and then tried to teach myself MFC using MS Visual C++ 6.0. I swore off of...
2
by: Daniel | last post by:
I'm a newcomer to .Net and am slowly becoming familiar with it, so I have some simple questions. Here's the situation: I created a VB.Net project for my data access layer (DAL), another VB.Net...
1
by: Aristotelis E. Charalampakis | last post by:
Hi everyone, this is a newbie question... I have a dll written in c++. This dll is called from a executable written in VB 6.0 I want to use a variable (say a float) within multiple functions...
4
by: Danny | last post by:
Ok I am trying to create this 2 Tables 1 form The 1st table has Reference Number, Username, Telephone The 2nd table has Reference Number, 2nd Telephone Well what I would like to do is...
7
by: Rano | last post by:
/* Hello, I've got some troubles with a stupid program... In fact, I just start with the C language and sometime I don't understand how I really have to use malloc. I've readden the FAQ...
0
by: wayneman2864 | last post by:
first off i'd like to say i'm vary new at programming and i don't want this but it's my brother that dose its the only thing he asked for, for christmas so please don't make rude comments. what im...
7
by: javedna | last post by:
Hi guys Ive got a simple problem, im designing an online questionnaire and on submission the coding that I have used to validate whether a user has filled in all the questions is supposed to...
2
by: askalottaqs | last post by:
well well where do i start?? :D ok im working on the Maya SDK, using VC++ EE, and i got a bunch of questions if any may know.. (i hope im posting in the right place :S) 1- what does the ...
2
by: sweeneye | last post by:
its the most basic thing in the world but im just getting started with access and VB, i am more used to C++ but still a bit hazy on that too, anyway its a simple names database which to start with we...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.