Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: SmtpMail.Send exception Pin
EnkelIk22-Jun-03 20:38
EnkelIk22-Jun-03 20:38 
Questionhow to view property of a file in terms of coding Pin
puppiesLover17-Jun-03 22:49
puppiesLover17-Jun-03 22:49 
AnswerRe: how to view property of a file in terms of coding Pin
nfactorial17-Jun-03 23:11
nfactorial17-Jun-03 23:11 
QuestionHow can one call a script function from a C# WebBrowser Application? Pin
Alberto Colon17-Jun-03 17:12
Alberto Colon17-Jun-03 17:12 
Generalchange icon at runtime Pin
albean17-Jun-03 15:54
albean17-Jun-03 15:54 
QuestionA .Net way to do PostMessage()? Pin
mcgahanfl17-Jun-03 15:41
mcgahanfl17-Jun-03 15:41 
AnswerRe: A .Net way to do PostMessage()? Pin
Oleksandr Kucherenko17-Jun-03 21:20
Oleksandr Kucherenko17-Jun-03 21:20 
GeneralRe: A .Net way to do PostMessage()? Pin
dynamic17-Jun-03 22:07
dynamic17-Jun-03 22:07 
here's how to postmessage :
VB:
[DllImport("User32.Dll")]
<font color="blue">Public</font> <font color="blue">Static</font> extern int PostMessage (int hwnd,int wMsg,int wParam,int lParam);
<font color="blue">Public</font> <font color="blue">Const</font> int WM_CLOSE = 0x10;
<font color="darkgreen">'//// where you'd normally put your declares ^^^</font>
<font color="darkgreen">'////</font>

<font color="blue">Private</font> void button1_Click(<font color="blue">Object</font> sender, System.EventArgs e)
{
    <font color="blue">Try</font>
    {
    PostMessage(this.Handle.ToInt32(),WM_CLOSE,0,0);
    }
    <font color="blue">Catch</font>
    {
                System.Exception r=new System.Exception();
    MessageBox.Show(r.Message.ToString());
    }
}




hope that helps a bit . Smile | :)

My Signature Below





<font color="blue">Private void</font> ExpectingTwins(<font color="blue">string</font> twins)
    {    
    <font color="blue">switch</font>(twins)
    {
    <font color="blue">Case</font> ("twins on the way"):
        MessageBox.Show("for mr and mrs dynamic","twins on the way");
    <font color="blue">break</font>;
    }
    }




GeneralRe: A .Net way to do PostMessage()? Pin
mcgahanfl18-Jun-03 3:04
mcgahanfl18-Jun-03 3:04 
GeneralNew to C# - API Usage Pin
User 665817-Jun-03 14:09
User 665817-Jun-03 14:09 
GeneralRe: New to C# - API Usage Pin
Jim Stewart17-Jun-03 15:25
Jim Stewart17-Jun-03 15:25 
GeneralRe: New to C# - API Usage Pin
J. Dunlap17-Jun-03 15:31
J. Dunlap17-Jun-03 15:31 
GeneralRe: New to C# - API Usage Pin
firat kocak17-Jun-03 20:12
firat kocak17-Jun-03 20:12 
GeneralRe: New to C# - API Usage Pin
User 665818-Jun-03 0:21
User 665818-Jun-03 0:21 
GeneralRe: New to C# - API Usage Pin
firat kocak18-Jun-03 1:07
firat kocak18-Jun-03 1:07 
GeneralRe: New to C# - API Usage Pin
User 665818-Jun-03 2:09
User 665818-Jun-03 2:09 
GeneralRe: New to C# - API Usage Pin
firat kocak18-Jun-03 2:50
firat kocak18-Jun-03 2:50 
GeneralRe: New to C# - API Usage Pin
User 665818-Jun-03 3:21
User 665818-Jun-03 3:21 
GeneralRe: New to C# - API Usage Pin
firat kocak18-Jun-03 3:52
firat kocak18-Jun-03 3:52 
GeneralRe: New to C# - API Usage Pin
User 665818-Jun-03 5:23
User 665818-Jun-03 5:23 
GeneralRe: New to C# - API Usage Pin
firat kocak18-Jun-03 20:26
firat kocak18-Jun-03 20:26 
GeneralRe: New to C# - API Usage Pin
J. Dunlap18-Jun-03 8:17
J. Dunlap18-Jun-03 8:17 
GeneralRe: New to C# - API Usage Pin
firat kocak18-Jun-03 20:09
firat kocak18-Jun-03 20:09 
GeneralRe: New to C# - API Usage Pin
J. Dunlap18-Jun-03 22:09
J. Dunlap18-Jun-03 22:09 
GeneralRe: New to C# - API Usage Pin
firat kocak18-Jun-03 22:31
firat kocak18-Jun-03 22: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.