Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: Number Input Validation Pin
dboy22120-Jun-08 4:09
dboy22120-Jun-08 4:09 
GeneralRe: Number Input Validation Pin
Abhijit Jana20-Jun-08 4:11
professionalAbhijit Jana20-Jun-08 4:11 
AnswerRe: Number Input Validation Pin
User 665820-Jun-08 4:06
User 665820-Jun-08 4:06 
GeneralRe: Number Input Validation Pin
Abhijit Jana20-Jun-08 4:13
professionalAbhijit Jana20-Jun-08 4:13 
QuestionWhy does this code not WORK? Pin
Christopher Stratmann20-Jun-08 2:40
Christopher Stratmann20-Jun-08 2:40 
AnswerRe: Why does this code not WORK? Pin
Abhijit Jana20-Jun-08 2:57
professionalAbhijit Jana20-Jun-08 2:57 
GeneralRe: Why does this code not WORK? Pin
Christopher Stratmann20-Jun-08 2:59
Christopher Stratmann20-Jun-08 2:59 
AnswerRe: Why does this code not WORK? Pin
Abhijit Jana20-Jun-08 3:18
professionalAbhijit Jana20-Jun-08 3:18 
Its Working Fine

using System;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsApplication11
{
    public class FormA : Form
    {
        public virtual new Size PreferredSize
        {
            get
            {
                return new Size(300, 300);
            }
        }
    }
    static class Program
    {
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Form form = new FormA();
            Application.Run(form);	
            form.Size = form.PreferredSize;  // 300, 300 should be returned but instead 123,34 is returned.			
           	
        }
    }
}


Best Regards
-----------------
Abhijit Jana
Check Out My Latest Article

Java.NET : Integration of Java and .NET[^]
"Success is Journey it's not a destination"

AnswerRe: Why does this code not WORK? Pin
Alan Balkany20-Jun-08 3:01
Alan Balkany20-Jun-08 3:01 
AnswerRe: Why does this code not WORK? Pin
carbon_golem20-Jun-08 3:02
carbon_golem20-Jun-08 3:02 
GeneralRe: Why does this code not WORK? Pin
Christopher Stratmann20-Jun-08 3:05
Christopher Stratmann20-Jun-08 3:05 
GeneralRe: Why does this code not WORK? Pin
leppie20-Jun-08 3:43
leppie20-Jun-08 3:43 
AnswerRe: Why does this code not WORK? Pin
User 665820-Jun-08 3:12
User 665820-Jun-08 3:12 
AnswerRe: Why does this code not WORK? Pin
Daniel Grunwald20-Jun-08 4:25
Daniel Grunwald20-Jun-08 4:25 
GeneralRe: Why does this code not WORK? Pin
Christopher Stratmann20-Jun-08 4:26
Christopher Stratmann20-Jun-08 4:26 
QuestionSocket and multi threading Pin
koleraba20-Jun-08 1:23
koleraba20-Jun-08 1:23 
AnswerRe: Socket and multi threading Pin
leppie20-Jun-08 1:35
leppie20-Jun-08 1:35 
GeneralRe: Socket and multi threading Pin
koleraba20-Jun-08 1:59
koleraba20-Jun-08 1:59 
GeneralRe: Socket and multi threading Pin
leppie20-Jun-08 3:44
leppie20-Jun-08 3:44 
QuestionJavaScript Help? Pin
Imran Adam20-Jun-08 1:16
Imran Adam20-Jun-08 1:16 
AnswerRe: JavaScript Help? Pin
leppie20-Jun-08 1:34
leppie20-Jun-08 1:34 
AnswerRe: JavaScript Help? Pin
Abhijit Jana20-Jun-08 1:39
professionalAbhijit Jana20-Jun-08 1:39 
QuestionCalling function from one webpage to another Pin
grewin20-Jun-08 0:59
grewin20-Jun-08 0:59 
AnswerRe: Calling function from one webpage to another Pin
Gareth H20-Jun-08 1:12
Gareth H20-Jun-08 1:12 
AnswerRe: Calling function from one webpage to another Pin
koleraba20-Jun-08 1:28
koleraba20-Jun-08 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.