Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

ahmad2x4

@ahmad2x4
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How I can open HTML page with html source code in Winapplication,without Create a file?
    A ahmad2x4

    Hi Please do the following steps, I think it'll help you Create a new windows application Drop a WebBrowser Control to Form1 (leave the webBrowser1 as name) change property Dock to none change the property Url to about:blank drop a button to form1 (leave the button1 as name) bouble click on the button1 and paste following code as event handler

            private void button1_Click(object sender, EventArgs e)
            {
                System.IO.MemoryStream st = new System.IO.MemoryStream ();
                string sampleHtml = "Hello world! ";
                UTF8Encoding uniEncoding = new UTF8Encoding();
    
                // Create the data to write to the stream.
                byte[] firstString = uniEncoding.GetBytes(
                    sampleHtml);
    
                webBrowser1.DocumentStream = st;
                st.Write(firstString, 0, firstString.Length);
                st.Flush();
                st.Position = 0;
                webBrowser1.DocumentStream = st;
            }
    

    Ahmadreza Atighechi ..:--::..

    C# csharp html database help question

  • How I can open HTML page with html source code in Winapplication,without Create a file?
    A ahmad2x4

    Hi I please follow thease steps, I think it'll help you to solve the problem first of all create a Windows application drop a WebBrowser on form1 (leave the name webBrowser1) change the Url property to about:blank drop a button double click on the button1 and paste this code for event handler

            private void button1_Click(object sender, EventArgs e)
            {
                System.IO.MemoryStream st = new System.IO.MemoryStream ();
                string sampleHtml = "Hello world! ";
                UTF8Encoding uniEncoding = new UTF8Encoding();
    
                // Create the data to write to the stream.
                byte[] firstString = uniEncoding.GetBytes(
                    sampleHtml);
    
                webBrowser1.DocumentStream = st;
                st.Write(firstString, 0, firstString.Length);
                st.Flush();
                st.Position = 0;
                webBrowser1.DocumentStream = st;
            }
    

    Ahmadreza Atighechi

    C# csharp html database help question

  • Global KeyboardHooks and WiondowsKeyboardHooks
    A ahmad2x4

    Hi, I think you can download the Full Source of that article and make some changes on it. and recompile it. In SystemHookCore.cpp at InternalKeyboardHookCallback function you should mark last line and add return 1; instead of that line:static LRESULT CALLBACK InternalKeyboardHookCallback(int code, WPARAM wparam, LPARAM lparam) { if (code < 0) { return CallNextHookEx(hookKeyboard, code, wparam, lparam); } if (UserKeyboardHookCallback != NULL && !keyboardFilter.IsFiltered((int)wparam)) { UserKeyboardHookCallback(code, wparam, lparam); } return 1; // return CallNextHookEx(hookKeyboard, code, wparam, lparam); }
    But I think it is a rapid solution. in addition you should add some mechanism in other class to check in application level that you want to take this action on this character or not. Ahmadreza Atighechi

    C# csharp help question com tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups