Click here to Skip to main content
15,899,474 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Need to detect toolbar button click in 3rd party app Pin
drh65582-May-10 8:21
drh65582-May-10 8:21 
GeneralRe: Need to detect toolbar button click in 3rd party app Pin
Luc Pattyn2-May-10 8:47
sitebuilderLuc Pattyn2-May-10 8:47 
RantRe: Need to detect toolbar button click in 3rd party app Pin
εїзεїзεїз3-May-10 10:00
εїзεїзεїз3-May-10 10:00 
GeneralRe: Need to detect toolbar button click in 3rd party app Pin
drh65584-May-10 5:38
drh65584-May-10 5:38 
GeneralRe: Need to detect toolbar button click in 3rd party app Pin
εїзεїзεїз4-May-10 19:37
εїзεїзεїз4-May-10 19:37 
GeneralRe: Need to detect toolbar button click in 3rd party app Pin
drh65585-May-10 6:14
drh65585-May-10 6:14 
QuestionProblem in setting DateTime value explicitly. Pin
priyamtheone1-May-10 6:31
priyamtheone1-May-10 6:31 
AnswerRe: Problem in setting DateTime value explicitly. Pin
Luc Pattyn1-May-10 6:54
sitebuilderLuc Pattyn1-May-10 6:54 
Don't convert datetimes (or floats or anything that isn't really a string) to strings just for performing some operation on it, there always is a better way.

If your DateTime holds some seconds, and you want to get rid of them, try this (example is C# code, VB is similar):
DateTime dt1=myDateTimePicker.Value;
DateTime dtWithoutSeconds=dt1.AddSeconds(-dt1.Second);


Warning: if the initial DateTime holds fractions of a millisecond (e.g. when it comes from DateTime.Now) then this technique won't work, as there is no easy way to get the amount of ticks that corresponds to that fraction of a millisecond.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


AnswerRe: Problem in setting DateTime value explicitly. Pin
Andy_L_J1-May-10 13:01
Andy_L_J1-May-10 13:01 
QuestionProblem with DateTime matching. Pin
priyamtheone1-May-10 6:31
priyamtheone1-May-10 6:31 
AnswerRe: Problem with DateTime matching. Pin
Luc Pattyn1-May-10 6:48
sitebuilderLuc Pattyn1-May-10 6:48 
QuestionCheck the entrances to the keyboard and clean the buffer Pin
yera200230-Apr-10 11:38
yera200230-Apr-10 11:38 
AnswerRe: Check the entrances to the keyboard and clean the buffer Pin
Dave Kreskowiak30-Apr-10 17:48
mveDave Kreskowiak30-Apr-10 17:48 
QuestionConvert from decimal to hexidecimal? Pin
Adam Wike30-Apr-10 3:48
Adam Wike30-Apr-10 3:48 
AnswerRe: Convert from decimal to hexidecimal? Pin
Dave Kreskowiak30-Apr-10 3:58
mveDave Kreskowiak30-Apr-10 3:58 
AnswerRe: Convert from decimal to hexidecimal? [modified] Pin
Dalek Dave30-Apr-10 4:00
professionalDalek Dave30-Apr-10 4:00 
GeneralRe: Convert from decimal to hexidecimal? Pin
DaveAuld30-Apr-10 4:19
professionalDaveAuld30-Apr-10 4:19 
GeneralRe: Convert from decimal to hexidecimal? Pin
Dalek Dave30-Apr-10 4:23
professionalDalek Dave30-Apr-10 4:23 
GeneralRe: Convert from decimal to hexidecimal? Pin
DaveAuld30-Apr-10 4:28
professionalDaveAuld30-Apr-10 4:28 
GeneralRe: Convert from decimal to hexidecimal? Pin
Adam Wike1-May-10 13:32
Adam Wike1-May-10 13:32 
QuestionDynamically adding tool strip buttons [modified] Pin
MacRaider430-Apr-10 2:54
MacRaider430-Apr-10 2:54 
AnswerRe: Dynamically adding tool strip buttons Pin
Simon_Whale30-Apr-10 3:17
Simon_Whale30-Apr-10 3:17 
GeneralRe: Dynamically adding tool strip buttons Pin
MacRaider430-Apr-10 3:39
MacRaider430-Apr-10 3:39 
GeneralRe: Dynamically adding tool strip buttons Pin
MacRaider430-Apr-10 3:49
MacRaider430-Apr-10 3:49 
AnswerRe: Dynamically adding tool strip buttons Pin
Wayne Gaylard30-Apr-10 3:56
professionalWayne Gaylard30-Apr-10 3:56 

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.