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
M

Mahesh Kumar V K

@Mahesh Kumar V K
About
Posts
5
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • BOOL FLAG Problem in Paint Handler
    M Mahesh Kumar V K

    Try out this code as an example - public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.Button button1; private bool drawline = false; private int radius = 25; private int green = 10; private int red = 10; private int blue = 10; } private void Button_1OK__Click(object sender, System.EventArgs e) { drawline = !drawline; Random r = new Random(100); Int32 x = Int32.Parse(r.Next().ToString().Substring(1,2)); Int32 y = Int32.Parse(r.Next().ToString().Substring(1,3)); if (green < 230) green += 10; if (blue < 230) blue += 10; if (red < 230) red += 10; if (drawline) { System.Drawing.Graphics g = this.CreateGraphics(); Point P = new Point(x,100); Point p1 = new Point (100,y); Color j = Color.FromArgb(red,green,blue); Pen Pe = new Pen(j); g.DrawEllipse(Pe,x,x ,radius, radius); radius += 20; } else { System.Drawing.Graphics g = this.CreateGraphics(); Point P = new Point(x,100); Point p1 = new Point (100,y); Color j = Color.FromArgb(red,green,blue); Pen Pe = new Pen(j); g.DrawEllipse(Pe,y,y ,radius, radius); radius += 20; this.Refresh(); } } Regards Mahesh

    C# help question graphics

  • Embed a web link inside a messageBox()
    M Mahesh Kumar V K

    There is no direct solution to this. What you can do is , write a Customized Message Box (your own Form) which can include this. Regards Mahesh Regards Mahesh

    C# com help question

  • Why is my .mdb connection not working?
    M Mahesh Kumar V K

    Hello John, The problem is because of the usage of the keyword "Translation" as in OLEDB. If you change the SQL to String sql = "(SELECT [Translation], PhraseKey FROM [Translation] " + "WHERE languageID = " + language + ")"; the snippet will work fine. Regards Mahesh

    C# database help question

  • How do I create a new folder programmatically?
    M Mahesh Kumar V K

    Example, :suss: Is this what you meant??? System.IO.Directory.CreateDirectory(@"D:\NewFolder\NewSubFolder") Regards, Mahesh

    C# csharp question beta-testing tutorial

  • SQL Server does not exist
    M Mahesh Kumar V K

    Yes, you can either try local or you can even use a . in the place of Server name as SQL will resolve it to your local SQL Server. In can use have more than one instance of SQL server installed, then pls use local\. For example, I have two instances of SQL Server one SQL Server 2000 which is installed with out any specific instance and and hence local and two SQL Server 2005 Beta named as SQL2K5. When I need to connect to SQL Server 2000, I use . or local and when I need to connect to SQL Server 2005, I use local\SQL2K5. Hope this helps you. Regards Mahesh

    C# help database sql-server sysadmin 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