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
J

Jay Shankar

@Jay Shankar
About
Posts
156
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to make call from software using c#
    J Jay Shankar

    Hi Sudhir, May be below link can help you. TAPI 3.0 Application development using C#.NET[^] Regards, Jay

    C# csharp sales tutorial question

  • Detecting Ctrl + arrow keys
    J Jay Shankar

    You can please try the below:

    private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
    {
    if ( e.Control && e.KeyCode == Keys.Up )
    {
    this.Text = "Control key + Up Key pressed";
    }
    else
    {
    this.Text = "Other Key pressed";
    }
    }

    C#

  • Beginner Questions
    J Jay Shankar

    refer msdn for details Static [^]

    C# question learning csharp

  • custom controls and design time
    J Jay Shankar

    I am sorry, I was aware of this only.

    C# design

  • custom controls and design time
    J Jay Shankar

    .Net Designer does not support the overloaded constructors of the controls in it, If your user control has some controls which have overloaded constructors, there is probability that your contituent controls get disappered when you drop it on the form.

    C# design

  • Is it possible to Insert Table in RTF Control????
    J Jay Shankar

    RTF Control, what is the namespace of this class? By the way, RTF Specification does not say anything regarding Tables. Please note that the rtf document should ideally be opened in WordPad, in which table is not supported.

    Visual Basic tutorial question

  • creating rich text format file in vb6.0
    J Jay Shankar

    The easiest way is to assign the formatted text and image in a RichTextBox and get the RichTextFormat string using Rtf property. Other way is to prepare rtf string as par RTF specification, the specification is available on msdn.

    Visual Basic help

  • how to make a Modal Dialog in VB.net
    J Jay Shankar

    Your reply has come to me by mistake, Please reply to BSRK.

    Visual Basic csharp help tutorial question

  • how to make a Modal Dialog in VB.net
    J Jay Shankar

    Refer System.Windows.Forms.Form Class ShowDialog Method

    Visual Basic csharp help tutorial question

  • User Controls
    J Jay Shankar

    For the control's painting have you used Graphics from PaintEventArgs?. like for form Paining.....same as below code.

    private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
    {
    Graphics g = e.Graphics;

    g.DrawString("Happy X-Mas", this.Font, Brushes.Blue, 0,0);
    

    }

    Note: If you DONOT use Graphics from PaintEventArgs, there will always reamin flickering, I had the similar problem once, I solved it using the above approach.

    C# winforms tutorial

  • forech and strings
    J Jay Shankar

    Please refer to the code...hope u get some clue:

    string temp = "ABCDEFGHIJ";
    System.Diagnostics.Debug.WriteLine("for loop output");
    for(int i = 0; i < temp.Length; i++)
    {
    char c = temp[i];

    System.Diagnostics.Debug.WriteLine(i + " place char = "+ c);
    

    }

    System.Diagnostics.Debug.WriteLine("foreach loop output");

    int j = 0;
    foreach(char c in temp)
    {
    System.Diagnostics.Debug.WriteLine(j + " place char = "+ c);
    j++;
    }

    C#

  • Local IP number?
    J Jay Shankar

    u r welcome.

    C# json tutorial question

  • Local IP number?
    J Jay Shankar

    Please refer the following article on CP: How To Get IP Address Of A Machine[^] Hope this helps.

    C# json tutorial question

  • Printing RichText text and image
    J Jay Shankar

    Below link has the details: How To Print the Content of a RichTextBox Control By Using Visual C# .NET[^]

    C# tutorial question

  • DataGrid DoublClick dos'nt Response
    J Jay Shankar

    1.Firstly, DoubleClick event should fire, without any doubt. I do not find any problem in it. 2.Click or DoubleClick Event Handler of the DataGrid or other Controls has EventArg argument, you would not be getting the colum number / row number information from the EventArg. You should use either MouseDown or MouseUp event Handler which has MouseEventArgs in the arguments. MouseDown Event and HitTest method will get you the desired. Refer the below link for details. DataGrid HitTest Method[^]

    C# help

  • Datagrid
    J Jay Shankar

    Use DataGrid HitTest Method: DataGrid.HitTest method[^]

    Visual Basic question

  • triggering events by code
    J Jay Shankar

    Hi Mridang, First of all, please go through the msdn documents CheckBox.CheckedChanged[^] It should fire. There is no bug in the .net, concerning this. As I said in my previous post, check using again.

    this.checkbox.Checked = !this.checkbox.Checked;

    or

    private void ChangeCheckBoxState(CheckBox cbx)
    {
    cbx.Checked = !cbx.Checked;

    System.Diagnostics.Debug.WriteLine("checked state transformed to  " + this.checkBox1.Checked);
    

    }

    //

    private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
    {
    MessageBox.Show("Check Changed");

    }

    You can explicitly also call the event handler, just to reconfirm as

    this.checkBox1_CheckedChanged(this, new System.EventArgs());

    I would also advice you to prepare a simple demo project to check the above phenomenon. Regards, Jay.

    C#

  • SQL?
    J Jay Shankar

    Please reply to Mr. beginner1 , By mistake your reply has come to me. BTW, Thanks for added attension. Regards, Jay

    Visual Basic database help question

  • SQL?
    J Jay Shankar

    There should some common columns in both the tables to join, If you wish to join the tables. Table1 should have some primary key like itemId, and should become the Master Table. I would advice u to add the column in Table1. Finally, It should be like Table0 ----- ItemId CheckNum Payee Amount PaymentDate Table1 ----- ItemId Balance Finally the query will be Select A.ItemId, A.CheckNum, A.Payee, A.Amount, A.PaymentDate, B.Balance From Table0 A, Table1 B Where A.ItemId = B.ItemId

    Visual Basic database help question

  • moving a button
    J Jay Shankar

    I do not syntax of VB.Net, but in C# the above can be done as below

    this.button2.Location = new Point(this.button2.Location.X, this.button2.Location.Y + 10);

    Read about the Location Property of the class System.Windows.Forms.Button on msdn, This property is being inherited from Control. You get all relevent details. Best of luck. Regards, Jay

    Visual Basic help tutorial question
  • Login

  • Don't have an account? Register

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