User Profile

Collapse

Profile Sidebar

Collapse
flashsilverlight
flashsilverlight
Last Activity: Nov 19 '07, 11:26 PM
Joined: Sep 4 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • flashsilverlight
    started a topic VB to C# - Small Code Conversion HELP
    in .NET

    VB to C# - Small Code Conversion HELP

    Anyone who could convert the following VB Code to C#? i've tried using auto converters, but it always yeilds errors.. and i have no background in VB whatsoever... thanks!

    i can't seem to figure out lines 6 to 8, and 16 to 17..

    Code:
    Private Const HWND_TOPMOST = -1
    Private Const HWND_NOTOPMOST = -2
    Private Const SWP_NOACTIVATE = &H10
    Private Const SWP_SHOWWINDOW = &H40
    
    Private
    ...
    See more | Go to post

  • do you know how to translate that to c#? i couldn't seem to figure it out at all... thanks in advanced!

    (btw, i tried a SetForegroundWi ndow code,, it worked, but then it raised an error.. so i gues we can't use it either.)...
    See more | Go to post

    Leave a comment:


  • flashsilverlight
    started a topic C# - APP - HELP with selecting windows..
    in .NET

    C# - APP - HELP with selecting windows..

    Question:
    How do you put focus back in your application window programatically when another application window opens up (say,, a pop-up)? How do you put your application window on top and currently selected/active, programatically ?

    Alternatively, is it possible NOT TO LOSE FOCUS in the first place?


    Note:
    showDialog() cannot be used here.. because we cannot stop (close()) the application from running....
    See more | Go to post

  • and i actually need it "outside" my application, since i need to put my application IN Focus when other external application window is called.....
    See more | Go to post

    Leave a comment:


  • ok.. i apologize for being vague..

    as i mentioned in my initial post, i must maintain focus to the whole application,, or get back focus to the application if ever i lose focus (by opening another application window like windows explorer, or task manager...)

    so in number 4, i tried opening another application window, (windows explorer is just an example).. i need to get back to the my application's active form immediately,...
    See more | Go to post

    Leave a comment:


  • thanks for the immediate response! i greatly appreciate it.

    but as i've said, the application has many forms.

    lets say i have Form1 called mainForm and Form2 called subForm.

    1. i start my application with mainForm being the first form.
    2. i open subForm from mainForm and mainForm loses focus.
    3. i get back to the mainForm by closing subForm by using a control from subForm
    4. while...
    See more | Go to post

    Leave a comment:


  • C# - APP/FORM - HELP: Putting APP/FORM in FOCUS

    i have a c# application in which it has several forms.

    how do i make it so that a certain form would not lose focus while it is active? i mean, the only possible way to get to another form is by handling that event on the active form?

    ALSO, how could i make it so that NO OTHER WINDOW could be selected and/or focused while my application is running?

    (i.e. When i run my application and i open another window...
    See more | Go to post
No activity results to display
Show More
Working...