Click here to Skip to main content
15,919,341 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: access databse into datagridview Pin
Eddy Vluggen26-Apr-09 22:54
professionalEddy Vluggen26-Apr-09 22:54 
GeneralRe: access databse into datagridview Pin
rajulama26-Apr-09 22:55
rajulama26-Apr-09 22:55 
AnswerRe: access databse into datagridview Pin
Luc Pattyn27-Apr-09 1:04
sitebuilderLuc Pattyn27-Apr-09 1:04 
AnswerRe: access databse into datagridview Pin
Dave Kreskowiak27-Apr-09 2:12
mveDave Kreskowiak27-Apr-09 2:12 
QuestionCreate an exe without need of setup file and packaging and deployment advice Pin
jinxster26-Apr-09 22:30
professionaljinxster26-Apr-09 22:30 
AnswerRe: Create an exe without need of setup file and packaging and deployment advice Pin
Christian Graus26-Apr-09 22:46
protectorChristian Graus26-Apr-09 22:46 
GeneralRe: Create an exe without need of setup file and packaging and deployment advice Pin
jinxster26-Apr-09 23:04
professionaljinxster26-Apr-09 23:04 
GeneralRe: Create an exe without need of setup file and packaging and deployment advice Pin
Christian Graus26-Apr-09 23:09
protectorChristian Graus26-Apr-09 23:09 
no problem. I've been doing it that way for ages. Here is a method I wrote to run an msi, or other program, and wait for it to finish:


void CInstallerDlg::ShellExecuteAndWait(const char * path, const char * params, const char * message)
{
// Run a file and wait until it's done
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = path;
ShExecInfo.lpParameters = params;
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);

if (message != NULL)
{
ModelessDisplay d(this);
d.SetString(message);
WaitForSingleObject(ShExecInfo.hProcess,INFINITE);
d.DestroyWindow();
}
else
{
WaitForSingleObject(ShExecInfo.hProcess,INFINITE);
}
}

Now, the really painful bit is writing code to check registry keys, etc, to work out what you need to install.....

Oh, the ModelessDisplay stuff is code that shows a message while it runs, you need to add your own class to do that, or ignore that bit.

Christian Graus

Driven to the arms of OSX by Vista.

"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

AnswerRe: Create an exe without need of setup file and packaging and deployment advice Pin
Ageesh29-Apr-09 1:44
Ageesh29-Apr-09 1:44 
Questione-mail textbox validation in vb.net Pin
p_m_kanthi26-Apr-09 21:13
p_m_kanthi26-Apr-09 21:13 
AnswerRe: e-mail textbox validation in vb.net Pin
Christian Graus26-Apr-09 21:27
protectorChristian Graus26-Apr-09 21:27 
AnswerRe: e-mail textbox validation in vb.net Pin
Dave Kreskowiak27-Apr-09 2:08
mveDave Kreskowiak27-Apr-09 2:08 
Questionvisual basic dot net Pin
anandkumarrs626-Apr-09 21:04
anandkumarrs626-Apr-09 21:04 
AnswerRe: visual basic dot net Pin
Christian Graus26-Apr-09 21:10
protectorChristian Graus26-Apr-09 21:10 
GeneralRe: visual basic dot net Pin
Thomas Krojer30-Apr-09 1:22
Thomas Krojer30-Apr-09 1:22 
QuestionXMLDocument loop in textboxes with same Attribute name. [modified] Pin
elroy7226-Apr-09 9:37
elroy7226-Apr-09 9:37 
AnswerRe: XMLDocument loop in textboxes with same Attribute name. Pin
Christian Graus26-Apr-09 13:14
protectorChristian Graus26-Apr-09 13:14 
GeneralRe: XMLDocument loop in textboxes with same Attribute name. Pin
elroy7226-Apr-09 13:50
elroy7226-Apr-09 13:50 
GeneralRe: XMLDocument loop in textboxes with same Attribute name. Pin
Christian Graus26-Apr-09 14:06
protectorChristian Graus26-Apr-09 14:06 
Question[Message Deleted] Pin
julez12326-Apr-09 4:20
julez12326-Apr-09 4:20 
AnswerRe: HELP!!! Pin
Dave Kreskowiak26-Apr-09 10:53
mveDave Kreskowiak26-Apr-09 10:53 
AnswerRe: HELP!!! Pin
Christian Graus26-Apr-09 11:02
protectorChristian Graus26-Apr-09 11:02 
Questionneed help: working with dynamic created listbox [modified] Pin
StevenMertens25-Apr-09 23:57
StevenMertens25-Apr-09 23:57 
AnswerRe: need help: working with dynamic created listbox Pin
Luc Pattyn26-Apr-09 0:50
sitebuilderLuc Pattyn26-Apr-09 0:50 
GeneralRe: need help: working with dynamic created listbox Pin
StevenMertens26-Apr-09 0:58
StevenMertens26-Apr-09 0:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.