Question How to pin vb.net forms to the desktop is like calendar and note programs

anshao

New member
Joined
May 29, 2022
Messages
1
Programming Experience
1-3
Dim FirstDate, the message is a string
Dims SecondDate to a date
Message = Label1.Text
FirstDate = "1993-10-28"
SecondDate = CDate(FirstDate)
Label1.Text = "I'm Already in This World:" & DateDiff(DateInterval.Day, SecondDate, Now) & "Day" & Space(2) _
& DateDiff(DateInterval.Hour, SecondDate, Now) & "Hour" & Space(2) _
& DateDiff(DateInterval.Minute, SecondDate, Now) & "Minutes" & Space(2) _
& DateDiff(DateInterval.Second, SecondDate, Now) & "Seconds"
 
Last edited by a moderator:
The code you posted has no bearing on the post title, but by 'pin' do you mean on top of every other window? In vb6 days it was called 'ontop'. Now its 'topmost'. Set a form 'topmost' property to true, and it'll float and be above all other forms.
 

Latest posts

Back
Top