Click here to Skip to main content
16,008,750 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: this code was working in form1 and did not work in form2 Pin
SHatchard4-Jul-07 23:13
SHatchard4-Jul-07 23:13 
AnswerRe: this code was working in form1 and did not work in form2 Pin
magedhv4-Jul-07 23:26
magedhv4-Jul-07 23:26 
GeneralRe: this code was working in form1 and did not work in form2 Pin
Christian Graus5-Jul-07 1:19
protectorChristian Graus5-Jul-07 1:19 
Questionhow can i add check box to gridView header.. Pin
koolprasad20034-Jul-07 21:19
professionalkoolprasad20034-Jul-07 21:19 
AnswerRe: how can i add check box to gridView header.. Pin
DanB19835-Jul-07 4:43
DanB19835-Jul-07 4:43 
QuestionEmbeding all Application settings while compiling. Pin
NANCO4-Jul-07 20:59
NANCO4-Jul-07 20:59 
Questionrestrict open multiple times on same application Pin
PrakashBhaskar4-Jul-07 20:58
PrakashBhaskar4-Jul-07 20:58 
AnswerRe: restrict open multiple times on same application Pin
SHatchard4-Jul-07 21:15
SHatchard4-Jul-07 21:15 
Hi
You can iterate though the processes running on the machine to see if one is running with the same name as the current application. Code would look like

Dim currentProcess as Process = Process.GetCurrentProcess
Dim allProcesses as process() = process.getprocessesbyname(currentProcess.ProcessName)

For each process as Process in allProcesses
If process.Id = current.Id then continue for
If [Assembly].GetExecutingAssembly().Location.Replace("/", "\") = currentProcess.MainModule.FileName Then
'There is another version running
Throw new exception("Application already open")
end if
next


Thats just entered but should give you a good idae of how to code this...

AnswerRe: restrict open multiple times on same application Pin
NANCO4-Jul-07 22:05
NANCO4-Jul-07 22:05 
GeneralRe: restrict open multiple times on same application Pin
PrakashBhaskar4-Jul-07 22:57
PrakashBhaskar4-Jul-07 22:57 
AnswerRe: restrict open multiple times on same application Pin
Rupesh Kumar Swami4-Jul-07 22:21
Rupesh Kumar Swami4-Jul-07 22:21 
GeneralRe: restrict open multiple times on same application Pin
PrakashBhaskar4-Jul-07 22:56
PrakashBhaskar4-Jul-07 22:56 
QuestionSaveSettings Pin
nitin34-Jul-07 20:15
nitin34-Jul-07 20:15 
AnswerRe: SaveSettings Pin
ips_sun6-Jul-07 2:22
ips_sun6-Jul-07 2:22 
Questionhow to get the tabular data from text files and display it in tbale format in asp and vb.net Pin
chiyankrishna4-Jul-07 19:25
chiyankrishna4-Jul-07 19:25 
AnswerRe: how to get the tabular data from text files and display it in tbale format in asp and vb.net Pin
DanB19835-Jul-07 0:03
DanB19835-Jul-07 0:03 
QuestionEnvironment Class [modified] Pin
Navneet Hegde4-Jul-07 18:43
Navneet Hegde4-Jul-07 18:43 
AnswerRe: Environment Class Pin
Dave Kreskowiak5-Jul-07 4:58
mveDave Kreskowiak5-Jul-07 4:58 
GeneralRe: Environment Class Pin
Navneet Hegde5-Jul-07 19:31
Navneet Hegde5-Jul-07 19:31 
QuestionNeed help to converting binary data to byte array in VB.NET Pin
MP914-Jul-07 13:37
MP914-Jul-07 13:37 
AnswerRe: Need help to converting binary data to byte array in VB.NET Pin
Christian Graus4-Jul-07 13:44
protectorChristian Graus4-Jul-07 13:44 
QuestionInformation to appear in new preview window when ID clicked Pin
Bacanze4-Jul-07 11:29
Bacanze4-Jul-07 11:29 
QuestionInputbox Pin
md_refay4-Jul-07 10:23
md_refay4-Jul-07 10:23 
AnswerRe: Inputbox Pin
Christian Graus4-Jul-07 10:34
protectorChristian Graus4-Jul-07 10:34 
QuestionDatagrid column background color [modified] Pin
hsprasain4-Jul-07 9:29
hsprasain4-Jul-07 9:29 

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.