Click here to Skip to main content
15,915,019 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Deleting/Clearing programmically created controls Pin
Hmmkk28-Dec-05 14:58
Hmmkk28-Dec-05 14:58 
GeneralRe: Deleting/Clearing programmically created controls Pin
Dave Kreskowiak28-Dec-05 16:06
mveDave Kreskowiak28-Dec-05 16:06 
QuestionHowTo: HTML_2_Image Pin
Dredy28-Dec-05 0:58
Dredy28-Dec-05 0:58 
Questionstill excel remains in memory Pin
jith - iii27-Dec-05 22:54
jith - iii27-Dec-05 22:54 
QuestionHow to communicate with serial port in VB.NET Pin
kusikue27-Dec-05 22:46
kusikue27-Dec-05 22:46 
AnswerRe: How to communicate with serial port in VB.NET Pin
Dave Kreskowiak28-Dec-05 4:34
mveDave Kreskowiak28-Dec-05 4:34 
GeneralRe: How to communicate with serial port in VB.NET Pin
WillemM28-Dec-05 8:55
WillemM28-Dec-05 8:55 
QuestionGet previously active window?? Pin
matsnas27-Dec-05 22:29
matsnas27-Dec-05 22:29 
Hi!

Trying to get the handle of the window (actual app, not textbox or other window) that was active before I clicked in my own win form? I've tried GetActiveWindow and GetWindow with the GW_HWNDNEXT and GW_HWNDPREV paremeters but I'm no expert using Windows API's and can't seem to get it to work:

'Get the next window handle.
Dim vWndActive As IntPtr = GetActiveWindow
Dim vWndPrev As IntPtr = GetWindow(vWndActive, GW_HWNDPREV) 'this line doesn't work!!

'Activate previously active window
Dim vClassName As String = Space(256)
GetWindowText(vWndPrev, vClassName, vClassName.Length)
AppActivate(vClassName)

I know this code doesn't work and may not make much sense but it's the stripped version of what I'm trying to do and I think you get the point.

(Ps. Using vb.net)
AnswerRe: Get previously active window?? Pin
Dave Kreskowiak28-Dec-05 4:46
mveDave Kreskowiak28-Dec-05 4:46 
QuestionWinForm LifeCycle.. Pin
HakunaMatada27-Dec-05 19:52
HakunaMatada27-Dec-05 19:52 
AnswerRe: WinForm LifeCycle.. Pin
Dave Kreskowiak28-Dec-05 4:37
mveDave Kreskowiak28-Dec-05 4:37 
GeneralRe: WinForm LifeCycle.. Pin
HakunaMatada28-Dec-05 17:24
HakunaMatada28-Dec-05 17:24 
GeneralRe: WinForm LifeCycle.. Pin
Dave Kreskowiak29-Dec-05 5:18
mveDave Kreskowiak29-Dec-05 5:18 
GeneralRe: WinForm LifeCycle.. Pin
HakunaMatada29-Dec-05 17:11
HakunaMatada29-Dec-05 17:11 
QuestionDataGridTextBoxColumn can hold the ComboBox ?? Pin
HemaRawat27-Dec-05 19:17
HemaRawat27-Dec-05 19:17 
AnswerRe: DataGridTextBoxColumn can hold the ComboBox ?? Pin
Robert Rohde27-Dec-05 21:21
Robert Rohde27-Dec-05 21:21 
GeneralRe: DataGridTextBoxColumn can hold the ComboBox ?? Pin
HemaRawat27-Dec-05 22:18
HemaRawat27-Dec-05 22:18 
GeneralRe: DataGridTextBoxColumn can hold the ComboBox ?? Pin
Robert Rohde27-Dec-05 22:30
Robert Rohde27-Dec-05 22:30 
GeneralRe: DataGridTextBoxColumn can hold the ComboBox ?? Pin
HemaRawat27-Dec-05 22:51
HemaRawat27-Dec-05 22:51 
Questiondisable the close button in pocket pc in vb.net Pin
eileenpp27-Dec-05 19:13
eileenpp27-Dec-05 19:13 
AnswerRe: disable the close button in pocket pc in vb.net Pin
Robert Rohde27-Dec-05 21:23
Robert Rohde27-Dec-05 21:23 
AnswerRe: disable the close button in pocket pc in vb.net Pin
Dean_SF28-Dec-05 5:27
Dean_SF28-Dec-05 5:27 
GeneralRe: disable the close button in pocket pc in vb.net Pin
eileenpp28-Dec-05 13:46
eileenpp28-Dec-05 13:46 
QuestionVB.NET 2003, Bits and Bit Shifting Pin
cknipe27-Dec-05 17:52
cknipe27-Dec-05 17:52 
QuestionTreeview related quesion Pin
JUNEYT27-Dec-05 11:31
JUNEYT27-Dec-05 11:31 

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.