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
ADVERTISEMENT
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
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
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
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
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
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
Jan 27, 2011
How I could reduce the font size of xml rendered in a webbrowser control? According to MSDN the font property of the WebBrowser class isn't used.
View 2 Replies
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
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
Jul 13, 2010
I have wondered the solution to this question for many years! I doubt if anyone else knows much about it because the internet is absolutely zero help in this!
I have made a form1 with a webbrowser control on it. When the program is run it brings up the homepage (which is Google). However the homepage doesn't seem to fit inside the webbrowser control.
So I am hoping that someone could tell me how to make the (...I dunno how to ask this retarded question...) webpage fit completely (100%) inside the size of the webbrowser control. Meaning...I would like to see the entire webpage from the internet in the
size of the webbrowser control. To fill the entire size (whatever size I want).
Etc... if my webbrowser ontrol is seh, set to 600px by 400px, how can I program this so when it brings up the homepage (or any other page), it fills the entire size of the webbrowser control? Without any scrollbars. How to make the contents from the web
(or local) fill the size of the webbrowser - almost like a mini browser if you will.
View 4 Replies
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
Aug 10, 2010
I'm writing a couple of custom controls in VB.Net 3.5, in VS2008, and would like to resize the font size based on the height of the control, and vice-versa. Is there any way of converting a font of say 38.25pts into a me.height, or the other way round?
I realise the font width will change dependent on the font used (which isn't an issue for my purposes), but as far as I know, the font height is usually consistent Accessibility/Large font settings won't be an issue with this application.
View 8 Replies
Jun 8, 2011
Now all went well about from using the structure correctly. The working of the structure was perfect. How ever i missed Two important issues. The structure needed a fixed size of 10 items (9 in programming terms starting from 0) And also out of the 5 items allowed to be chosen as one of the member types for the structure a limit of 5 items of that particular type.
[Code]...
View 9 Replies
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
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
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
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
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
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
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
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
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
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
Sep 3, 2009
how do i set the font for a pdfptable?
View 3 Replies
May 10, 2009
I added an ICON (called pencil) file in my resources in vb.net, I tried several codes to change the cursor... like this
Public Class Form1
Dim ms As New System.IO.MemoryStream(My.Resources.pencil)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code].....
View 2 Replies
Dec 16, 2009
I need to figure out how to change the font of one line and then change it to another on a second line. I tried something like this:
VB.NET
rtbSettings.Font = New Font("Microsoft Sans Serif", 18.0F, FontStyle.Regular) rtbSettings.Text = "Test Header" & Environment.NewLine & Environment.NewLine
[code].....
View 8 Replies
May 16, 2012
I need to set the paper size on a printer to A4. I have tried several different ways to do this but keep getting errors. Currently trying some code I found on the net but I am getting errorsType 'PaperSize' is not defined&PaperKind' is not declaredI am using the following
Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
Dim ps As PaperSize
[code].....
View 2 Replies
May 3, 2009
I have a label which appears full screen on a projector (VGA 2). In this label I will be sending strings. Some one liner's, some wrapped paragraphs. Some multi-line with carrage returns. My goal is to have the font dynamically change size to be as large as possible without overflowing the fixed label size.
View 10 Replies
Apr 15, 2009
Whats the font size real meaning? since when i use Arial font size 10 in the report its gonna take different space than the textbox im using (Both using exactly same font type/size/unit) its kinda if i set 10 milimiters to the font size why would the i and M for example have so diferent size.
i wish it was like in the Notepad where all the letters take the same space. what i need its to give a certain texbox(in the report) with auto grow to have always the same lines of height but its not posible to calculate it from vb b4 being inputed to the report.
View 1 Replies