Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 6:22
professional Xmen Real 9-Aug-09 6:22 
AnswerRe: Forms overlapping Pin
Luc Pattyn9-Aug-09 6:34
sitebuilderLuc Pattyn9-Aug-09 6:34 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 7:46
professional Xmen Real 9-Aug-09 7:46 
GeneralRe: Forms overlapping Pin
Luc Pattyn9-Aug-09 7:53
sitebuilderLuc Pattyn9-Aug-09 7:53 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 7:55
professional Xmen Real 9-Aug-09 7:55 
AnswerRe: Forms overlapping Pin
Alan N9-Aug-09 9:06
Alan N9-Aug-09 9:06 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 15:06
professional Xmen Real 9-Aug-09 15:06 
GeneralRe: Forms overlapping [SOLVED] Pin
Xmen Real 9-Aug-09 15:33
professional Xmen Real 9-Aug-09 15:33 
cool, awesome, nice and mindblowing too... Laugh | :laugh: I got it working...

here is the working code

public partial class Form2 : Form
{
    public Form2()
    {
        InitializeComponent();
    }
    Form3 f3 = new Form3();

    private const int GWL_EXSTYLE = (-20);
    private const int WS_EX_TOOLWINDOW = 0x80;
    private const int WS_EX_APPWINDOW = 0x40000;

    [DllImport("user32", CharSet = CharSet.Auto)]
    private static extern int GetWindowLong(IntPtr hWnd, int nIndex);

    [DllImport("user32", CharSet = CharSet.Auto)]
    private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int
    dwNewLong);

    private void Form2_Load(object sender, EventArgs e)
    {
        this.Owner = f3; // reverse the thing (f3.Owner = this)
        f3.Show();

        //hide from Alt+Tab menu
        SetWindowLong(f3.Handle, GWL_EXSTYLE, (GetWindowLong(f3.Handle,
            GWL_EXSTYLE) | WS_EX_TOOLWINDOW) & ~WS_EX_APPWINDOW);
    }
}


Thanks Alan for Owner advice...



TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

-----------------------------------------------
128 bit encrypted signature, crack if you can

AnswerRe: Forms overlapping Pin
Luc Pattyn9-Aug-09 10:27
sitebuilderLuc Pattyn9-Aug-09 10:27 
GeneralRe: Forms overlapping Pin
Xmen Real 9-Aug-09 15:36
professional Xmen Real 9-Aug-09 15:36 
QuestionHelp needed in C# - Mobile App Development Pin
Member 1152439-Aug-09 4:44
Member 1152439-Aug-09 4:44 
AnswerRe: Help needed in C# - Mobile App Development Pin
Not Active9-Aug-09 4:54
mentorNot Active9-Aug-09 4:54 
QuestionMenuStrip sub item added event Pin
Xmen Real 9-Aug-09 4:37
professional Xmen Real 9-Aug-09 4:37 
AnswerRe: MenuStrip sub item added event Pin
Richard Blythe9-Aug-09 9:20
Richard Blythe9-Aug-09 9:20 
GeneralRe: MenuStrip sub item added event Pin
Xmen Real 9-Aug-09 14:56
professional Xmen Real 9-Aug-09 14:56 
QuestionNTFS & FAT direct access Pin
Mark Brend9-Aug-09 3:39
Mark Brend9-Aug-09 3:39 
AnswerRe: NTFS & FAT direct access Pin
Henry Minute9-Aug-09 5:01
Henry Minute9-Aug-09 5:01 
GeneralRe: NTFS & FAT direct access Pin
Mark Brend10-Aug-09 1:44
Mark Brend10-Aug-09 1:44 
QuestionC# and SQL deployment issue Pin
labdakos9-Aug-09 3:22
labdakos9-Aug-09 3:22 
AnswerRe: C# and SQL deployment issue Pin
pelnor9-Aug-09 5:04
pelnor9-Aug-09 5:04 
AnswerRe: C# and SQL deployment issue Pin
pelnor9-Aug-09 5:11
pelnor9-Aug-09 5:11 
QuestionRead XML File and load result in datagridview Pin
Member 47429229-Aug-09 2:31
Member 47429229-Aug-09 2:31 
AnswerRe: Read XML File and load result in datagridview Pin
Eddy Vluggen9-Aug-09 4:52
professionalEddy Vluggen9-Aug-09 4:52 
QuestionHow to Export Contents of DataTable and DataGridView in Excel without using Excel object. Pin
sharad Pyakurel9-Aug-09 1:36
sharad Pyakurel9-Aug-09 1:36 
AnswerRe: How to Export Contents of DataTable and DataGridView in Excel without using Excel object. Pin
Infarkt9-Aug-09 3:31
Infarkt9-Aug-09 3: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.