|
when the windows logon comes i should show my application before coming desktop how
|
|
|
|
|
You can't show it 'before' the desktop. You can run it on startup, many different ways.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have the following If statement
bmi = weight/(height * height)
If bmi < 18.5 then
Response.Write("Your underweight")
Else If bmi >= 18.5 And bmi <= 24.9 then
Response.Write("Your normal")
Else If bmi >=25 And bmi <=29.9 then
Response.Write("Your overweight")
Else
Response.Write("Your obese")
End If
But keep getting this error:
Microsoft VBScript compilation (0x800A03F6)
Expected 'End'
I know that this means that it is expecting the if statement to end which when i look at it it is closed. I'm new to programming and sleep depravation is probably causing me to over look the minor detail. If any one can spot where i'm goin wrong it's much appreciated.
Thanks
|
|
|
|
|
The correct syntax is ElseIf
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
Mc--Gann wrote: bmi >=25 And
there is a logical error in your code, what if bmi equals 24.95?
solution: you should drop all the >= conditions
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I am working a visual basic program that I would like to start at either restart, or a users selected time.
I am new at programming, I have yet to figure out how to launch a program automatically, currently I use
the task scheduler to launch it on my pc, can any one aid in assistance.
|
|
|
|
|
Task Scheduler is about it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
What access modifier would I use so that:
Functions within the class have read and write access to the subject &
Anything external has read-only access?
Many thanks with this stumping question,
Fahad Sadah
|
|
|
|
|
Marking a method as Private means it can only be accessed by code within the current class.
Marking a method as Friend means it can only be accessed by code within the current assembly.
Hope this helps.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Since .NET 2.0 C# supports properties with different access modifiers for thet get and the set
part, so you could have a public get and a private set. Not sure how it is in VB.NET tho.
If it is not available, you can always make your own public Get and private Set methods!
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
There is get and set in VB.NET
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Paul Conrad wrote: There is get and set in VB.NET
Yes Paul, I am aware of that, but what I don't know is whether they can have different
access modifiers, as was introduced in C# 2.0
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I think they can. But, I could be wrong.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Very informative.
Or need I something to decrypt?
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Luc Pattyn wrote: Very informative.
Sorry
Luc Pattyn wrote: need I something to decrypt?
Nope. No rijndael or anything like that. Just opening up VS right now to see if it can be done...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Thanks everyone, trying it now!
EDIT: Works perfectly! THANKS!
|
|
|
|
|
Can i get some good interface design of medical shop application.
Thankyou,
Yesu
|
|
|
|
|
This forum is for answering specific programming questions.
If you want someone to design your system for you, I'm afraid you've come to the wrong place
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
ypki wrote: Can i get some good interface design of medical shop application
No. You need to gather requirements from the client as to what they want in their application.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
my land-line phone was connected to computer through wire
so whenever a person was called to my number immediatly that caller number
should display on my windows form :confused
|
|
|
|
|
Not sure if possible.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Mobile phone, or land-line phone?
You should check with the phone manufacturer, for all you know, it can be a dumb device where no interfacing is possible, or it can be a super-smart device where APIs are provided.
If it's mobile phone, which brand/OS is it using, Symbian? Windows Mobile? Palm OS? for each of these OS, are there APIs available? If so, are there APIs for getting the information that you want?
Software systems are not magic. Just because a temperature is displayed on your fridge doesn't mean that you can get it into your computer without some sort of hardware/software interfacing.
|
|
|
|
|
i have a combobox and a textbox
names are there in combobox list
i want if i have selected any name from combobox respective surname should come down in textbox from database instantaneously
leave database connectivity that i'll take care...
i want front hand method....
|
|
|
|
|
manni_n wrote: want front hand method....
Have you tried to solve the problem yourself? It sounds like you are asking someone to do your work for you.
ComboBox.SelectedText will give you the currently selected text. Use this value in a query to get the surname.
manni_n wrote: respective surname should come down in textbox from database instantaneously
Somehow I think this is unlikely.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|