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
C

chettu

@chettu
About
Posts
38
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Webbrowser Control--- Text To HTML
    C chettu

    Thank you so so soooooo much... That absolutely saved my day.

    C# help html

  • Webbrowser Control--- Text To HTML
    C chettu

    Hi, I am trying convert Text to HTML. i am able to do this using the webbroswer control. My problem is something like this.. After assigning some text to the Webbrowser control i am not able to copy the contents from it immediately. But when i add a message box before copying or do the copy in a different event it works fine... i guess its something to do with the refresh, plz help me solve this. Below is the code i am trying. IHTMLDocument2 doc; public WebBrowser browser; constructor.. { browser = new WebBrowser(); } click event.. { browser.DocumentText = "This is a test message //With this line contents are available. I want to do this without this line. **MessageBox.Show("Test");** doc = (mshtml.IHTMLDocument2)browser.Document.DomDocument; Clipboard.Clear(); doc.execCommand("selectall", false, null); doc.execCommand("Copy", false, null); RichTextBox r = new RichTextBox(); r.Paste(); Clipboard.Clear(); MessageBox.Show(r.Text.ToString()); }

    C# help html

  • Cursor not visible after DroppedDown property is set to true
    C chettu

    Hi, I have a dropdown control with few list item in it. I am setting the DroppedDown property to true in the textchanged event to show the dropdown, the problem is the mouse coursor (the pointer) is not visible after the dropdown is shown, its stuck inside the dropdown and only when the focus comes out of the control I am able to see the Mouse pointer again. Am i missing something. Regards Deepak

    C# help

  • TabControl problem.
    C chettu

    Hi I need to draw a Border around a Tabcontrol ( i mean around the entier Tabcontrol not around the TabPages). i am able to do draw a border by overriding the OnPaint method but the Tabs disappear. This is my code. I have the double buffering code in the constructor. base.OnPaint(e); Rectangle borderRectangle = ((Control)this).ClientRectangle; int BorderWidth = 1; Color BorderColor = Color.Black; ControlPaint.DrawBorder(e.Graphics, borderRectangle, BorderColor, BorderWidth, ButtonBorderStyle.Solid, BorderColor, BorderWidth, ButtonBorderStyle.Solid, BorderColor, BorderWidth, ButtonBorderStyle.Solid, BorderColor, BorderWidth, ButtonBorderStyle.Solid); Can anyone help me out in this. My question is do i have to draw the tabs aswell or am i missing something. Regards Deepak -- modified at 14:01 Monday 14th November, 2005

    C# help graphics architecture question

  • iterating ResourceManager
    C chettu

    Is there a way to iterate through resources using the ResourceManager? I know that there is a way of doing this with the ResourceReader and IDictionaryEnumerator however the ResourceReader (as far as I know) only takes ".resources" files. But obviously the final product will be using assemblies and satellite assemblies not ".resources" files. So I would have to find a way of doing it with the ResourceManager… Is there a way to accomplish this?

    C# question

  • Confusion on how Firewall works
    C chettu

    I did think abt that befor posting but i found too many people answering in this forum so i thought i will try my luck... Guess i am not that lucky.

    C# com sysadmin

  • Confusion on how Firewall works
    C chettu

    Hi My network has a restriction and it doesnt allow me to download files from the internet for eq. .zip, .exe, .doc etc...... i believe they have restricted download for all possible file extensions. But i was amazed to see that it does allow me to download zip files from certain sites for eg. i am able to download the zip file from this loacation https://www.microsoftelearning.com/ek\_content/content/enus\_085636/lsn\_2/tpc\_b/enus\_085636\_02b\_4\_procedures.zip\[^\] but i am not able to download the zip file for this location http://codeproject.com/miscctrl/gridctrl/gridctrl\_demo225.zip\[^\] Can anyone explain me why this is happening. Regards Deepak

    C# com sysadmin

  • Confusion on the way Firewall works.
    C chettu

    Hi My network has a restriction and it doesnt allow me to download files from the internet for eq. .zip, .exe, .doc etc...... i believe they have restricted download for all possible file extensions. But i was amazed to see that it does allow me to download zip files from certain sites for eg. i am able to download the zip file from this loacation https://www.microsoftelearning.com/ek_content/content/enus_085636/lsn_2/tpc_b/enus_085636_02b_4_procedures.zip[^] but i am not able to download the zip file for this location http://codeproject.com/miscctrl/gridctrl/gridctrl_demo225.zip[^] Can anyone explain me why this is happening. Regards Deepak

    ASP.NET com sysadmin

  • Properties in structures
    C chettu

    Hi Is it possible to set values to a property of a structure in the structure's constructor. For eg. struct MyStruct { int fieldx; public int Propertyx { get { return fieldx; } set { fieldx = value; } } public MyStruct(int i) { Propertyx = i; } } This is not compiling whats wrong and why ? But i am able to directly assign the value to the field. Regards Deepak -- modified at 12:26 Tuesday 11th October, 2005

    C# question

  • Base class method call ?
    C chettu

    Why would it suck.. i have a case where Class C should inherit Class B and not A isn't this a possible scenario... i guess so....The possible solution i have done is have a method in class B which will call the base method in A. This scenario will hold in events.. where calling the base class is mandatory....

    C# question help tutorial

  • Base class method call ?
    C chettu

    Hi I have Class A with a protected virtual member Method1() and i have another calss Class B inheriting Class A in which i overrided the base class's method Method1() and i also call the base class's Method1() using the base keyword. Now i have another class Class C which inherits Class B and i am overriding Method1(), the problem is now how do i call Class A's Method1() from this class. Class A { protected virtual Method1() {} } Class B : Class A { protected override Method1() { //code. base.Method1() } } Class C : Class B { protected override Method1() { **QUESTION: HOW TO CALL CLASS A's METHOD1() HERE. I dont want to call Class B's Method1() but want to call Class A's Method1()** } } F1! F1! F1!....plzzz:( Regards Chettu.

    C# question help tutorial

  • Message handler EM_GETLINE prob...
    C chettu

    Hi I am trying to use the EM_GETLINE message to get the text of a particular line but i am not able to send the last parameter i.e the lpram..for the SendMessage function... anyone plz let me know how to do this... i am doin in the following way char[] buffer = new char[255]; buffer[0] = (char)255; Message msg = Message.Create(this.Handle, EM_GETLINE, (IntPtr)Index, (IntPtr)buffer[0]); base.DefWndProc(ref msg); return msg.Result.ToInt32(); but it gives me a error like.. "Attempted to read write protected memory. This is often indication that other memory is corrupt." F1! F1! cheers Chettu

    COM database performance help tutorial

  • EM_GETLINE Parmeter propblem....
    C chettu

    Hi I am trying to use the EM_GETLINE message to get the text of a particular line but i am not able to send the last parameter i.e the lpram..for the SendMessage function... anyone plz let me know how to do this... i am doin in the following way char[] buffer = new char[255]; buffer[0] = (char)255; Message msg = Message.Create(this.Handle, EM_GETLINE, (IntPtr)Index, (IntPtr)buffer[0]); base.DefWndProc(ref msg); return msg.Result.ToInt32(); but it gives me a error like.. "Attempted to read write protected memory. This is often indication that other memory is corrupt." F1! F1! cheers Chettu

    C# database performance help tutorial

  • Data View Query
    C chettu

    Hi Is it possible to get records between 10 and 20 from a dataset containing 100 records using Dataviews...Or is there any other way to do it.. i dont want to filter from the database and i also dont want to loop thru the dataset and then get the values.. is there ant direct way of getting it... Regards Deepak.S

    ASP.NET database

  • TextBox Selection
    C chettu

    Nope i want to do that in windows forms.... :(

    C#

  • TextBox Selection
    C chettu

    Hi Is it possible to disable selection of text inside a Textbox when the textbox is in enabled mode. All comments welcome...... Regards Deepak.S

    C#

  • Friend Assembly Help needed...
    C chettu

    Hi I have two projects and one of the project have internal methods which should be used in another project.. so i used friend assemly concept and was able to solve the problem partially... my problem is one of my projects have other refernced assemblies (third party also..) for which i dont have the code, which are not signed with a strong name. Now inorder to complete the process i have to sign the referenced assemblies as well.. How do i do that? Plz Help...:confused: Regards Deepak.S

    C# help question

  • Properties Problem
    C chettu

    Hi I have a custom property updating another custom properety the code is as follows public enum CodePageType { None, Swift, ASCII, Trade }; public string RegularExpP { get { return regularEx; } set { regularEx = value; } } [Category("Custom Properties")] [DefaultValue(false)] public CodePageType Validate { get { if (type == CodePageType.ASCII) { RegularExpP = "Exp1"; } if (type == CodePageType.None) { RegularExpP = "Exp2"; } return type; } set {type = value;} } Now when i select the validate property the RegExpP property is set in the UI but its not getting updated in the Form1.Designer.cs Page.But its getting updated only the second time, and this time it sets the previous value i selected hat could be the problem Regards Deepak.s

    C# swift design help

  • Persisting properties
    C chettu

    Indexers allows to expose a group of values but how can i show those values in the designer so that the user can select one. I have to set other properties based on the selection made by the user. i guess indexers are availabe only in code on a object of that class. Any other suggestions....

    C# help tutorial

  • Persisting properties
    C chettu

    Hi I extended a textbox control and created a property i.e public enum myVarEnum {Apple,Mango,Peach}; protected myVarEnum myvar1; public myVar MyProperty { get { return myvar1; } set { myvar1 = value; } } Now when i use this extended control i am getting the property as a dropdown and i am able to select, the problem is the value i select doesnot persist..for example if i select "Mango" it goes back to the first one "Apple" after i build the solution. i guess its a small mistake plz help me overcome this... Regards Deepak.S

    C# help 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