|
VB6 or VB.NET???
VB6, use Shell...
VB.NET, use Shell or the Process class:
Dim startInfo As New ProcessStartInfo("IExplore.exe")
startInfo.WindowStyle = ProcessWindowStyle.Minimized
startInfo.Arguments = "www.northwindtraders.com"
Process.Start(startInfo)
RageInTheMachine9532
|
|
|
|
|
Its in VB6, I can't get it to work properly?
this is my test code, this code actualy openes upp 3 cmd's and show the dir in the last one?
I only want one cmd and be able to run different commands in it!
There is a second problem cmd only works in W2K, NT and XP but not in WIN95-98, there got to be a way to run commands?
<br />
Shell "cmd", 1 <br />
SendKeys "dir c:\ *.txt" + Chr(13), True<br />
|
|
|
|
|
Where to start...
OK. There are 2 command prompt shells in WinNT and above, CMD and COMMAND. 95/98 only has COMMAND.
Now, what you want to do by stuffing the keystrokes using SendKeys is problematic at best. This is because there is no facility to make sure that, when you start the command shell, that window retains the input focus. Another window can steal the focus or the user can click in a different window. On top of that, what if the user accidentally types something in the command window your launched?
I would HIGHLY recommend looking into the Win32 Console API's, especially if you want to keep reusing the same command windows. This way, you don't have to worry about Windows versioning problems either. The docs for the Console start here[^]. A word of warning though, the documentation is written for C++ and not VB.
RageInTheMachine9532
|
|
|
|
|
Thank you!
I am a C++ programmer I know the console API.
In STL C++ you can use system function but not in VB
It amazes me that there is no other way to run console commands in VB?
/Jarek
As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality.
Albert Einstein
|
|
|
|
|
VB6 didn't really have a console available to it. VB.NET has much better support. If all you want to do is launch other programs, use the Shell, but your Shell command can also include it's command line parameters. You don't have to stuff them in with SendKeys...
RageInTheMachine9532
|
|
|
|
|
hello
i just want to know
to convert a program from VB6 to VB.net
require what prerequisite??
or is it just mearly a similiar program (can use VB6 code in VB.Net)
can please tell me what is the main different between this 2
cause i have to change my program from VB6 to VB.Net
and i have no knowledge on what VB.Net look like
please tell me and if can plese inculde some sample
thank you
Gary
|
|
|
|
|
You could just open the project (the .vbp file) using the Visual Studio.NET. This will automatically invoke the VB Upgrade Wizard and translate the code for you. Of course, it won't translate everything, but it will tell you what you need to do.
RageInTheMachine9532
|
|
|
|
|
here are a few things to look at
from MS
http://tinyurl.com/2rnq7
http://tinyurl.com/nz9v
and here is an excellent series of 15 lectures:
http://www.lakeforest.edu/~hummel/webcasts.htm
the audio webcasts are accessed thru this part of
that site
"Audio broadcasts should be available from here"
|
|
|
|
|
Hi there...
I need to produce a "star Gate" type warp effect. It doesnt have to be very large say 256 X 256. Only has to last up to 10 seconds.
Any idea where I might start using NB.Net ?
Any suggestions would be great.
Many thanks.
Coops.
|
|
|
|
|
|
Im trying to code a crystal report which gets the information from a dataset, I have the C# code to bind the data but i need the vb code, or if anyone knows of a good example on the net that might help.
Thanks,
Colum
private void Page_Load(object sender, System.EventArgs e)
{
CrystalReport1 report=new CrystalReport1();
CrystalReportViewer1.Visible=true;
DataSet ds=new DataSet("Account");//give same name as on
//dataset1 table header
DataTable table=new DataTable("Account");//give same name as on
//dataset1 table header
table.Columns.Add("Fname",typeof(System.String));
table.Columns.Add("Lname",typeof(System.String));
table.Columns.Add("Salary",typeof(System.String));
DataRow row=table.NewRow();
row["Fname"]="Mathew";
row["Lname"]="Hayden";
row["Salary"]="5000$";
// add to table
table.Rows.Add(row);
ds.Tables.Add(table);
// set report's dataset
report.SetDataSource(ds);
// set report source
CrystalReportViewer1.ReportSource =report;
}
|
|
|
|
|
Well, I'd normally say just run it through one of the C#/VB.NET code translators on the 'Net, but you have an object in that code snippet that doesn't exist in the Page_Load function, 'table'.
See this Yahoo search[^] for a list of translators.
RageInTheMachine9532
|
|
|
|
|
Hi All,
Does anyone know of any way to decrypt/decompile an installer?
I built an installer with Installshield. By accident, I deleted all the source for the installer. Not sure if there's any tool that could reverse back the whole directory?
I can unzip the Data1.cab file, but I could only get to some of the files, and some are still encrypted. Plus I lost all the custom actions.
I still need to reuse the installer files and structure for future installer.
So I don't have to build everything again. I don't need source code, because I have that backed up, but I want all the dll, exe, custom actions, windows components (with the right version), also the structure of the ism file.
Any suggestions? Thanks in advance!!
Syn
|
|
|
|
|
If it was an MSI, you could just open the MSI file. Works perfectly using Wise For Windows Installer. If it was the older Setup.exe version of an installer, start recoding...
RageInTheMachine9532
|
|
|
|
|
i need to know how to open word and power point sdocuments directly in the browser?
u see i have some pdf, word and powerpoint documents.they are placed in some location on my hard drive.
i have the paths of all thesein my SQL database.
now these paths appear in a data grid like hyper links its something like this:
doc1.ppt (power point file)
doc2.pdf (adobe file)
doc3.doc. ( word file)
so as soon as i click on a hyperlink, the selected document should open up in the browser directly.
the pdf files open directly the word and power point docs do not open.
Please note that i am developing an ASP.net (with VB.net) application
now how do i do this?
|
|
|
|
|
This is probably because you don't have Office installed or you don't have the Word and Excel viewers installed, either will give you the functionality to view documents in a browser. See the Microsoft Office Downloads[^] here.
RageInTheMachine9532
|
|
|
|
|
Wish to create a human-face image on PDA, and now we separate the face into some individually images, like hair, eyes, nose and mouth...
Our goal is to treat all the individually images as particular objects, and could drag them into a main working space (a larger image place), then could save them into a single image files.
1.How to control the object with the code that could move and transform the object feely?
2.How should we design the program to let the user could draw and to alter the images like in painter?
3.Would anybody please tell us where could we inquire about the information about GPRS upload program?
The program coder we use is EVB; we sincerely wish you could help us.
|
|
|
|
|
Program Description:
An online retailing company, BuyFromUs.Com, offers a range of products for purchase by people who live in Australia. Orders are placed through the website, and handled by the main office in Adelaide. The products include clothing, household appliances, books, and non-perishable foods.
Information about the products is stored in one file, and information about customers’ orders is stored in a separate file. You have been asked to write a program to perform analysis of the data in the orders information file, so that BuyFromUs.Com’s Board can make informed strategic decisions to improve the profits of the company.
BuyFromUs.Com currently purchases its stock at wholesale price from a variety of suppliers, and sells the products at a higher price, thus deriving their profit from the difference in price. If a particular product is very popular, the board would consider rising the product price for future customers, to increase their profits; whereas products that are not so popular may be dropped from the offerings list.
The outcomes of the program will be various reports. The program must be able to tell the Board (user) the following information upon request:
• The number of people in each Australian state who have ordered a particular product and the total profits made from the sales of that product around Australia. (The user should enter the catalog code of the product).
• For a selected state, a list of the number of people who have ordered each product.
• The details of any customer order. This includes the customer’s name and state, as well as details about the product they have ordered.
• A list of the products that are sold by the company (according to the data files, see below), together with their three-letter catalog code.
You should assume that if a particular customer has ordered multiple products, you are to treat it as though it was a separate customer (i.e. a ‘customer’ only ever orders one item).
Data Files:
There are several data files required to be used by your program.
The products.dat file consists of Product Information records, which includes data in the following format:
• Name of product
• Catalog Code for product (a short 3-letter code, unique for each product)
• Wholesale price of product
• BuyFromUs.Com’s selling price of the product
Products have numeric codes associated with them, starting with product 1 being the first record, product 2 being contained in the second record of the file, and so on. The alphabetic catalog code is provided for humans to more easily refer to a particular product.
The orders.dat file consists of many Customer Order records, which includes data in the following order:
• Name of customer
• State of Australia (one of VIC, NSW, TAS, SA, WA, QLD, ACT, NT)
• The numeric product code of the product ordered by the customer in this order.
As with the products file, the orders in the orders.dat file are associated with order numbers starting with order 1 for the first record in the file.
Both files contain an integer as the first item in the file, stating the number of records that follow in the file. The actual records begin from the second line of the files.
|
|
|
|
|
And all this means what to us? I take it there is a question in here somewhere, but I'll be damned if I can find it...
RageInTheMachine9532
|
|
|
|
|
Dave Kreskowiak wrote:
I take it there is a question in here somewhere, but I'll be damned if I can find it.
I couldn't find it either. I think he/she want someone to do his/her assignment for them.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
If you want help with your homework, we are pretty happy to help with a specific problem you might have. But this looks like you want someone to do it all for you - that is not acceptable.
If you need a push to start you off, let us know what you are finding challenging and I'm sure someone will point you in the right direction.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
How do i get the creation date for the active document
besides the method below. I know this is going to return me the
date in string, but what i want to get is the date in window format
1233333 this kinda format.
ActiveDocument.BuiltInDocumentProperties("Creation Date")
|
|
|
|
|
Hi!
I'm looking for an informative "step by step" guide/example on how to use/create crystal reports in VB.NET.
The basics, and som nice tips! Maybe a complete example?
Anyone knows where to find that?
Cheers!
Andreas(VB.NET beginner)
|
|
|
|
|
Crystal's web site offers some good examples you can use to get started
|
|
|
|
|
Hi every body!
please tell me! how can i set a code part to critical section?
Thanks!
|
|
|
|