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

Ajay k_Singh

@Ajay k_Singh
About
Posts
109
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • About signing
    A Ajay k_Singh

    I think you need to know that no one is here being paid for answering questions. So while asking questions, always remember that you are asking for help and not assigning job to your employees. The biggest trick is that it takes just a bit of politeness to get help from others. Try this and you will never be disappointed. By the way I have given him the most useful link of his life (to learn how can we use Google) this will help him in finding answer of his most of ‘how to’ questions. Thanks for your nice words. -Dave.

    C# tutorial

  • About signing
    A Ajay k_Singh

    this will help - http://www.google.com/search?hl=en&rls=com.microsoft%3Aen-us&q=How+to+use+google[^] Please do not use lines like this - "I want detailed information(with small example)." -Dave.

    C# tutorial

  • MouseMove in a container [modified]
    A Ajay k_Singh

    I think you are still not getting the point. If this is the code which you have used – private void Form1_Load(object sender, EventArgs e) { this.MouseMove += new MouseEventHandler(this.panel1_MouseMove); } //--------------------- Mouse Move ------------------------------ private void panel1_MouseMove(object sender, MouseEventArgs e) { Point mousePoint = PointToClient(MousePosition); string msg = string.Format("X:{0}, Y:{1}", mousePoint.X, mousePoint.Y); lblMousePosition.Text = msg; } Notice that you are using line – this.MouseMove += new MouseEventHandler(this.panel1_MouseMove); In the above line ‘this’ represents form, and not a panel. So still you are not getting a handler for panel control. Replace the above mentioned line with – panel1.MouseMove += new MouseEventHandler(panel1_MouseMove); Notice that I am using ‘panel1.MouseMove’ and not ‘this.MouseMove’. Here panel1 is name of my panel control, if you have used a different name, you should replace it with the name of your panel control. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    C# csharp docker

  • Round Corner Shaped Form?
    A Ajay k_Singh
    1. Form1.FormBorderStyle = FormBorderStyle.None; 2) http://vckicks.110mb.com/custom\_shape\_form\_transperancy.html -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Windows Forms question csharp tutorial

  • MouseMove in a container [modified]
    A Ajay k_Singh

    You want to trap mouse move over a panel control, however the event which you have added is for mouse move event of Form and not of panel control. Therefore add event handler for panel control, such as – ----------------------------- private void Form1_Load(object sender, EventArgs e) { this.panel1.MouseMove += new MouseEventHandler(panel1_MouseMove); } void panel1_MouseMove(object sender, MouseEventArgs e) { //Mouse move event of panel } -------------------- -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    C# csharp docker

  • Pinvoke DLL
    A Ajay k_Singh

    Let me tell you this step by step. RDS_AlarmList is a structure, therefore RDS_AlarmList obj1 is one object of this structure. RDS_AlarmList *obj2 defines a pointer of this structure type. RDS_AlarmList **obj3 defines a pointer of pointer. A pointer of pointer is a pointer variable which can hold memory address of a pointer. If you want to know more about pointers of pointer, I would recommend you to search on Google, it will give you links of tutorials. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Visual Basic csharp database iot data-structures

  • i want to make the fix sized text in text box(e.g 10 characters).
    A Ajay k_Singh

    Set MaxLength property of textbox. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    C# help

  • windows forms in general
    A Ajay k_Singh

    Hello, I am not very sure about book for learning .Net programming with Visual C++… however using Google I found two links which should be useful for you. 1) Good tutorials on different topics – http://www.functionx.com/vcnet/index.htm 2) Msdn page (I have not checked any of the tutorials available here so don’t know how they are) – http://msdn.microsoft.com/hi-in/library/60k1461a(en-us).aspx I hope this helps. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Windows Forms c++ tutorial winforms question lounge

  • Refresh font folder [modified]
    A Ajay k_Singh

    After copying fonts to Fonts folder, you will need to use AddFontResource Api function. You may also check following link to get more information about this method – http://www.pinvoke.net/default.aspx/gdi32/AddFontResource.html -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Visual Basic csharp help tutorial question

  • windows forms in general
    A Ajay k_Singh

    Form1.h represents your Form1 (which is a class Form1 derived from System::Windows::Forms::Form), and contains code related to it. We can declare out objects and controls here. Just to give you an idea, following is a small code snippet which takes number from two textboxes (which are already on form1) and after adding these numbers, shows sum in a message box. – ------------------------------------- private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { int i; i=System::Convert::ToInt32( this->textBox1->Text); i +=System::Convert::ToInt32( this->textBox1->Text) ; System::Windows::Forms::MessageBox::Show("Sum : "+i.ToString() ); } ----------------------------------------- As you want to get books on Visual C++, I would advice you to search on google. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Windows Forms c++ tutorial winforms question lounge

  • How to implement Visual component realations
    A Ajay k_Singh

    Interaction between controls in a WinForm Application is handled by using events of controls. Therefore lets say if we want to disable a button control on selection of a radio button, we can use code like this – private: System::Void radioButton1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { this->button1->Enabled=false; } Don’t forget to add handler for Checked event of Radio button. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Windows Forms c++ tutorial

  • how to add new line to text box
    A Ajay k_Singh

    Use – "\r\n" This should give you a new line. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    C# tutorial

  • Search Functionality in C# .net2.0.
    A Ajay k_Singh

    Every string has an IndexOf method to find index of a particular word or character. So you can search for index of a string in a text box like this – textBox1.Text.IndexOf("FindThisWord", 0); -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    C# csharp database tutorial

  • .gif File in C#
    A Ajay k_Singh

    Use a picture box to show Gif image, it will show animation effect. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    C# csharp question

  • How can I include analog clock in GUI(vc)
    A Ajay k_Singh

    You should look for Gauge or chart control which could allow you to create Analog Clock on Form. This type of control is available from many software component developing companies. I hope this helps. -Dave

    ------------------------------------ http://www.componentone.com ------------------------------------

    Windows Forms csharp help question

  • datagrid in C#.net
    A Ajay k_Singh

    This should help you - http://www.codeproject.com/KB/books/PresentDataDataGridView.aspx[^] -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Windows Forms csharp tutorial database help question

  • Navigation between Forms
    A Ajay k_Singh

    If you have two forms open and you simply want to move back and forth between them by showing one form at once and then other, you can simply use Show and Hide property of forms... -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Windows Forms tutorial

  • List Box / Combo Box
    A Ajay k_Singh

    On mouse up event of list box you can use IndexFromPoint method to get index of item which has been clicked. This index can be used to retrieve the actual listbox item, such as – ------------------------------------------ Private Sub ListBox1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseUp Dim ItemName As String If e.Button = Windows.Forms.MouseButtons.Right Then ItemName = Me.ListBox1.Items.Item(Me.ListBox1.IndexFromPoint(e.X, e.Y)).ToString() MessageBox.Show(ItemName) End If End Sub ------------------------------------------- I hope this helps :) . -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

    Visual Basic database com tutorial

  • Hide My Window Form
    A Ajay k_Singh

    If your only purpose is to execute a piece of code and not to show any window, you can simply delete the form and put your code in Main method. Open Program.cs file and under main function comment out line which shows the form, and put your code. Such as – --------------------------------- static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1()); MessageBox.Show("Test"); } } --------------------- I hope this helps. -Dave. -------------------------------- www.componentone.com --------------------------------

    ------------------------------------ http://www.componentone.com ------------------------------------

    C# tutorial question

  • Application Crack
    A Ajay k_Singh

    If its your own application, modify its source code for the required purpose and then release it as an update or patch of your existing application. -Dave.

    ------------------------------------ http://www.componentone.com ------------------------------------

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