Forms :: Changing The MonthCalendar Size?

Sep 18, 2008

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?

View 7 Replies


ADVERTISEMENT

Forms :: RichTextBox - Changing Font Size Without Changing Families And Styles

Sep 21, 2010

I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles. The following code resets all the font attributes, which is not what I want:

[Code]...

View 5 Replies

Control Size Changing According To Forms Size?

May 11, 2009

I am after a property that makes a control (textbox, datagrid or other) move according to the forms size. Because some of the controls I got does that, and I really don't want it. I've been looking at them but could not find it

View 4 Replies

Forms :: Controls Changing Size For No Reason?

Apr 20, 2010

My program has two lists, one a listbox and the other a listview viewed in details mode.

Both of them change heights (get taller) for no obvious reason. I am having to add a call to a method that resizes them to the end of every method, which is kind of absurd, I think. Also, when the window size is changed, these components change size, which means I have to keep track of that.

Edit: I had also thought of adding a timer to handle this.

View 15 Replies

.net - Windows.Forms.Listbox Selected Item Font Size Is Changing?

Jan 4, 2011

I have inherited from a Windows.Forms.Listbox so I could override the OnPaint and OnDrawItem methods in an effort to highlight specific items and alternate backcolors. I am also skipping some DrawItem events to prevent flickering.Everything is working fine, however when I select items in the listbox, it looks like the font is shrinking or becoming more compressed.Then when I mouse leave, the font goes back to its normal size and appearance but the same items are still selected (which is correct). During debugging the font never changes nor do any of its properties, but it does end up looking different when the item is selected and the mousedown event just happened.

Public Sub New(ByVal relativityHighlightColor As System.Drawing.Color)
_relativityHighlightColor = relativityHighlightColor
Me.SetStyle( _
System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer Or System.Windows.Forms.ControlStyles.ResizeRedraw Or

[code]....

View 1 Replies

Change The Size Of MonthCalendar?

Oct 13, 2008

I put on the form a tool MonthCalendar and I tried to chang the size ( width-length ) by mouse or from properties but it didn't accepted, it keeps the same size

View 4 Replies

Changing Bolded Date's Color Of MonthCalendar?

Feb 19, 2010

Can I change a bolded date's color of a MonthCalendar control without creating a new custom control? Should I override OnPaint event, or something for this? If so, how?

View 5 Replies

Keep MonthCalendar Control To A Single Month Size

Mar 11, 2009

When I resize my form that has a MonthCalendar control docked in a TableLayoutPanel, the calendar expands to multiple months as the form gets bigger. Is there a way to force it to stay a calendar dimensions (1,1)?

View 2 Replies

Changing Font Size & Bold - Get Property 'Size' Is Read Only?

Feb 27, 2009

I'm new to VB in Visual Studio 2008 and am just trying out some simple test.I just want to change the Font & Boldness of some text but get the following errorProperty 'Size' is Read onlyI have been browsing the forums and it seems that changing the font size etc isn't as simple as

TextBox.Font.Size = 12
TextBox.Font.Bold = True

Is this true, and if so what do I need to do

View 5 Replies

Forms :: How To Use MonthCalendar

Jun 2, 2011

I thought I only needed to click or double click a day on this controll to change it. Do I need to create a click event and if so (I have installed MSDN for VS2008) can I see what events are available.

Desmond.
PrivateSub cmdCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCalculate.Click Dim Days AsInteger Dim Today As DateTime = DateTime.Now

[code].....

View 1 Replies

Forms :: MonthCalendar Control - Can't Set Colors?

Oct 28, 2010

I am using a monthcalendar control in my application to allow a user to select a day from the calendar that will load data for that day. the background is totally white (ugh). there is a backcolor property, but when i set it to say Cyan (yea right), the calendar still displays as white. I also can not set Forecolor, TitleBack/Fore color either.

I have gone to my project properties and turned off the "enable xp visual styles", and that had no effect. turned it back on...cant tell a difference. i am currently on windows 7 running VS2008 Team Edition. It would be really nice to change the look of this control to match the styling of my application.

View 1 Replies

Forms :: Monthcalendar Control Clicking Itself?

Dec 1, 2010

i have a monthcalendar control on a form, and about every minute or so, the click event fires. this is wierd, since i look at the call stack and nothing called it.

View 2 Replies

Forms :: Resize The Monthcalendar Control?

Mar 22, 2009

I am working on a windows application . I am trying to find if we can resize the monthcalendar control?? if yes, how??

View 8 Replies

Forms :: DateTimePicker / MonthCalendar Control To Add Tasks

Sep 23, 2009

In my application i like to include the Birthday's schedular... i.e if i click/double click the date in DateTimePicker or in MonthCalendar control an inputbox opens in which we have to enter the birthday person's name to the selected date....

View 3 Replies

Forms :: Different View Of Monthcalendar Control In Xp And Vista?

Aug 16, 2009

I am using a monthcalendar control and datetimepicker control in my vb.net 2005 windows applicaion. My operating system is Vista Home Premium. Now my problem is that when I run my application on XP then the view of monthcalendar control changes. I just want that the view of mc control remain same in xp also bcoz the look of mc control in vista is quite cool.

View 1 Replies

VS 2005 Saving Image Changing Image Size And Canvas Size?

Dec 11, 2010

I use some code to successfully resize and save images - but I want to save the image to 800x800 px size on a canvas of 900x900px so it has a white border type thing around it.

View 8 Replies

Forms :: Size Form Proportionally To Screen Size?

Sep 24, 2009

If I have form say sized 1300 x 800, I would like to proportionally size the form to the computers screen size. I can get it to size to the screen size, but it is not proportional

View 11 Replies

Changing Size Of A Groupbox?

Sep 26, 2009

okay well I want to be able to change the size of my Groupbox when I check my check box. I have tried this code and it did not work

If Checkbox7.checked = true then Groupbox1.size = (309, 446)

I don't get why this wont work, I tried others to but I cant get it to work.

View 1 Replies

Changing Size Of Imagelist?

Dec 27, 2009

How do i change the size of Imagelist images at runtime?

ImageList1.ImageSize = New Size(18, 18)

But it isnt working..

View 8 Replies

Changing The Size Of Richtextbox?

Apr 9, 2012

I have a rich textbox and when you click on it i want the size to increase from 329, 20 too 329, 285. How would i accomplish this.My current code is:

richtextbox1.size = "329, 285"

but i can an error and im not sure what i should do.

View 3 Replies

Changing Size Of Form Using Up / Down Button?

Jun 9, 2009

I have a problem with my program. I have a form with 2 buttons UP and DOWN. I use this buttons to change the size of the form. The first step works fine. If I press the down button I get MsgBox ("Go Down", vbYesNo,) if I press Yes the form resize from 300 to 600 and if I press no it stay 300. The problem is, if the form is already at 600 everytime I press the down button I get the MsgBox ("Go Down", vbYesNo,) if I press Yes it recycles it self the form goes to 300 and then back to 600 and if I press No it stays 600. What I want is if the form is already 600 and I press the down button it skips the MsgBox ("Go Down", vbYesNo,) and the form stay at 600.

Public Class Form1
Private Sub ButtonUp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonUp.Click
Dim answer As String
If Val(TextBox1.Text) < 0 Then
answer = MsgBox("Go Up", vbYesNo, )
If answer = vbYes Then
For x = 300 To 600
[Code] .....

View 2 Replies

Changing Text Size In Browser?

Jul 23, 2009

Ok, I have this command, which I think should change the text size in the webbrowser:

CType(AxTabControl2.SelectedTab.AttachedControl.Controls.Item(0), browse).document.ExecCommand("EditMode", False, System.DBNull.Value)
CType(AxTabControl2.SelectedTab.AttachedControl.Controls.Item(0),

[code]......

View 1 Replies

Form1 Size Changing Automatically

Jun 17, 2012

My Form1 is set to 1920, 1080 but it keeps changing itself to something slightly smaller. it just changed to 1916, 1054. Last time it changed to 1920, 1062. I'm not changing anything, it just does it automatically.

View 3 Replies

Webbrowser Control And Changing Size?

Aug 20, 2008

I am creating a program with a web browser component, and a tab control. Default, the web browser is anchored to the toolbar. In my program there is an option to make a toolbar at the top of the form visible.false. Is there a way to make the web browser anchor to the top of the tab control when the toolbar is not visible, and anchor to the toolbar when the toolbar is visible?? I have experimented with docking (fill) but then parts of the web browser become covered by the toolbar and status bar. I am still relatively new to visual basic 2008 so if you could please explain or provide code.

View 14 Replies

Changing Default Page Size For Printing?

Apr 26, 2012

I have a vb.net application that uses 2 crystal reports to print out reports. The first report is A4 and the second is A5.

How can my code access the printer default settings and change the default paper size to A4 and A5 each time without having to do it manually.

View 1 Replies

Changing Font Size At Form Load?

Sep 13, 2009

I have this code which run at form load event:

' Fuente
Dim tamano As Integer = Val(INI_Read(Application.StartupPath + "FSTM.ini", "Options", "Font size"))

[code].....

View 4 Replies

Changing Multiple Ovalshape Size During Runtime?

Mar 13, 2012

I am using the PowerPack and trying to change multiple ovalshape size, I have used the following code for changing multiple labels,

For Count As Integer = 1 To 100
Me.Controls("Label" & Count).Text= "Hello World"
Next Count

If I do the same for OvalShape, assume I have OvalShape1, OvalShape2.... OvalShape100

For Count As Integer = 1 To 100
Me.Controls("OvalShape" & Count).Size = New System.Drawing.Size(20, 20)
Next Count

The above throws error when executed.

View 1 Replies

Conditional Changing Font Size And Color?

Apr 8, 2011

How to conditional changing font size and color?

For example, if Amount>100 then
font color of [amount] = red
and
font size of [acount] = 10

View 6 Replies

Itextsharp: Changing Font Size Of Pdfptable?

Sep 3, 2009

how do i set the font for a pdfptable?

View 3 Replies

Screen Designer - Changing Size Of Control?

Jul 22, 2009

I am working on a application which is basically a screen designer. I have implemented the form designing capabilities using IDesignerHost and other interfaces. In my application user can pick a component from toolbox and drop it on the designer screen and can configure the properties from property window. I have my own set of properties which gets populated from database. Screen designer is working fine but the problem occurs when user changes some properties from property window. Say user changes property 'Width' then I change the width of the selected control in designer but the problem is SelectionOverlay shows the old size. When I select another control and select old control again, SelectionOverlay(resize handlers which appears around the control) shows properly. How can I tell the SelectionOverlay that the size of the control is changed.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved