Results 1 to 8 of 8

Thread: Changing the MonthCalendar size

  1. #1
    pachjo is offline VB.NET Forum Master
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Dec 2006
    Posts
    370
    Reputation
    152

    Changing the MonthCalendar size

    Hi, is it possible to change the size of the MonthCalendar to say double its standard size and still only display a single month?

    When I resize using clientsize, width and height the multiple months are displayed?

    Thanks

  2. #2
    pachjo is offline VB.NET Forum Master
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Dec 2006
    Posts
    370
    Reputation
    152
    change the font size in design mode does the trick

  3. #3
    Tom
    Tom is offline VB.NET Forum Idol
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2005
    Posts
    746
    Reputation
    391
    Good to know, nice tip....

  4. #4
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,611
    Reputation
    2738
    This doesn't work in .Net 3.5 (VS2008) if you care to know.

  5. #5
    Tom
    Tom is offline VB.NET Forum Idol
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Aug 2005
    Posts
    746
    Reputation
    391
    Quote Originally Posted by JohnH View Post
    This doesn't work in .Net 3.5 (VS2008) if you care to know.
    Another good tip


    Since you did point this out, I tested on the few versions and pc's I have here.

    I tested on two PC's, although multiple versions of the .Net framework are installed on both up to and including 3.5 framework, its hard to indicate on the vb end if its actually using the most recent framework or not.

    PC1, VB 2003
    Changing font size works to enlarge monthcalendar size.

    PC2, VB 2005
    Changing font size works to enlarge monthcalendar size.

    I dont have VB 2008 yet (on order now) to confirm.

  6. #6
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,611
    Reputation
    2738
    Quote Originally Posted by Tom View Post
    I tested on two PC's, although multiple versions of the .Net framework are installed on both up to and including 3.5 framework, its hard to indicate on the vb end if its actually using the most recent framework or not.
    VS2003 compiles for .Net 1.1, VS2005 for .Net 2.0, in VS2008 you can choose to target .Net 3.5, 3.0 or 2.0. The framework compiled for is used, but special exceptions exist when target framework doesn't exist in end user system. Since .Net 3.0 and 3.5 are extension libraries that adds to the required .Net 2.0 some parts will use the same 2.0 libraries still. For example the System.Windows.Forms.dll where MonthCalendar belongs has no changes in later versions, the .Net 2.0 library is used also in VS2008. Weird huh? Wiki has currently this nice image that show the Framework parts and versions.

  7. #7
    pachjo is offline VB.NET Forum Master
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Dec 2006
    Posts
    370
    Reputation
    152
    This is good to know!

    Any idea why this functionality was removed and if it has been replaced with another way of achieving the same result?

  8. #8
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,611
    Reputation
    2738
    Quote Originally Posted by JohnH View Post
    This doesn't work in .Net 3.5 (VS2008) if you care to know.
    I've now come to the conclusion it was Vista that was causing this problem, not the VB/Framework versions.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking