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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
K

Kamrul Hasan

@Kamrul Hasan
About
Posts
12
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MDI Client Window
    K Kamrul Hasan

    Can any one tell the process how i can get the handle to the MDI client(Not MDI Child) Window using Win32 PInvoke. Any kind of suggesion will be highly appriciated. Thanks.

    C#

  • About design time support in inherited TextBox control
    K Kamrul Hasan

    I have developed a TextBox Control with some customized features by inheriting the Default TextBox Control. The problem is, when i added the control to the form the designer fails to show any control in the form including the developed control. But the designer can show all the controls if i remove that control. How can i provide design time support to the control so that is remains visible in design time:confused:. Thanks in advance.

    C# design help question

  • ReadOnly Radio Button?
    K Kamrul Hasan

    correct code is: protected override void OnClick(System.EventArgs e) { //base.OnClick(e); } Here 'OnClick''s 'O' and 'C' character should be in upper case. I don't know why it is not shown correctly.

    C# help tutorial question

  • ReadOnly Radio Button?
    K Kamrul Hasan

    You can stop the click Event by overriding the OnClick method in RadioButton class and Removing the call to the base class. like: protected override void OnClick(System.EventArgs e) { //base.OnClick (e); } -- modified at 12:27 Monday 14th November, 2005

    C# help tutorial question

  • ReadOnly Radio Button?
    K Kamrul Hasan

    Your problem statement is not clear. Can you explain it a bit more ?

    C# help tutorial question

  • Why the output is like this ?
    K Kamrul Hasan

    Thanks for your reply. In which cases 'ref' keyword should be used? I am confused :confused: As your answer the following two methods will do the same thing isn't it? 1.changeItem( ref ArrayList l ) or 2.changeItem( ArrayList l )

    C# question help

  • Why the output is like this ?
    K Kamrul Hasan

    Consider the following code:

    	public class A
    	{
    		private int x = 0;
    		public int X
    		{
    			get
    			{
    				return x;
    			}
    			set
    			{
    				x = value;
    			}
    		}
    		public override string ToString()
    		{
    			return x.ToString();
    		}
    	}
    
    	public class B
    	{
    		private ArrayList list = new ArrayList();
    
    		private void addItem( A c )
    		{
    			list.Add(c);
    		}
    		private void changeItem ( ArrayList l )
    		{
    			((A)l[0]).X = 5;
    		}
    		public void test() 
    		{
    			addItem( new A());
    			Console.WriteLine(list[0]);
    			changeItem(list);
    			Console.WriteLine(list[0]);
    		}
    		public static void Main( string[] args ) 
    		{
    			B b = new B();
    			b.test();
    		}
    	}
    

    The output is:

    0
    5
    

    Why the output not like:

    0
    0
    

    changeItem method does not take the reference of the ArrayList, but the value of the object in the collection has changed :omg: What is the problem ?

    C# question help

  • Grouping Radio Buttons
    K Kamrul Hasan

    Is there any way to group several radio buttons without putting them into a GroupBox ?

    C# question

  • Toolbar Image
    K Kamrul Hasan

    I am using 32bit PNGs. and also tried reloading the images but that did not work :(

    C# csharp visual-studio question

  • Toolbar Image
    K Kamrul Hasan

    I tried using the toolbar of VS.NET. And found that, it does not show the alpha region of the icons perfectly. I have tried using maximum color depth in the imagelist that was associated with the toolbar, and also tried using PNG images. Nither of my approaches succeded :( Is there any way to show the icons perfectly ?? thanks in advance.

    C# csharp visual-studio question

  • Number TextBox
    K Kamrul Hasan

    Can Some help me to make a textbox in which user can type only numerical or Uppercase charecters ?

    C# help question

  • Problem with ShowDialog()
    K Kamrul Hasan

    Hello, I am very much new to C# programming. The problem is I am facing 'SEHException' using ShowDialog() method of Form Class. I am using a form as Dialog from a MDIChild Form. I don't know why it is happenging. But there is no problem if i use 'ShowDialog()' from a non MDIChild form. How can i use the method from a MDIChild form ? sorry for my english. thanks in advance.

    C# question csharp help
  • Login

  • Don't have an account? Register

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