VB - Set The Windows Size To Rows*(circleSize + CircleSpacing) - CircleSpacing
Feb 27, 2011
I have an annoying problem: we're supposed to write a small game for university in visual basic, now my gamefield consists of 7x6 circles, so it has six rows. Between every circle there is certain spacing. Now i set the windows size to rows*(circleSize + circleSpacing) - circleSpacing. With a size of 100 and a spacing of 50 this gives me a total size of 850, and when i ask for Me.size.height it says: 850, but the window cuts of about 25-30 pixels on the bottom, why is that? I made a button with a size of 840x840 and location 0x0, and it is not fully displayed although the height of the window is 850...?
View 1 Replies
ADVERTISEMENT
Mar 31, 2010
How do I configure the rowheights so that the top and bottom rows (menu bar and status bar) size to fit the height of their content, and the middle row (main content), fills the remaining available space in the program?I can't fix the height of the top/bottom rows because the height of their content can vary.
<Window>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
[code]....
View 2 Replies
Jul 23, 2010
if there was a way i could get a window's size like say i wanted to get notepade size how would i do this ? i know how to get the location but can i get the size?
View 9 Replies
Apr 12, 2011
In Windows it's possible to Increase the size of on-screen fonts. We realized that too late and if a user does this our programm is unusable because he can not see all texts and controls. We're bringing out a release and we do not have the time to fix that.
So: How can I disable or ignore this increasing from windows application-wide? I tried setting autoscale to none but it is not working. Isn't possible to ignore that setting for the whole application? How can I do that?I know that this is a week solution because the user has a reason why he wants to increase the font size. But we can not fix this problem within two weeks but want to provide an application somebody can work.
View 2 Replies
Apr 5, 2012
how to keep the windows form size in same propotional when it maximizes? I have developed a window application using vb.net and SQL Server.on maximizing the application,its all alignment is getting different...how can i keep it in the same propotion on maximization of window?
View 1 Replies
Oct 5, 2009
Whenever a person adjusts how big they want there display, it will distort my application, it will make images overlap and will make text bigger.
Is there some code I can do to tell my program to ignore the size set by the display on windows?
View 4 Replies
Sep 24, 2010
I wam trying to create a application that will take a screenshot when the timer ticks over.What I need to find out is how do i Make a type of 'crosshair' system for the window that the screenshot will be taken.ike I will have my main VB app and the end-user will drag the crosshair over lets say, Their iTunes libary and the ap will get the height, width of the iTunes and then take a screenshot JUST OF THE ITUNES program, not the whole dekstop.
View 23 Replies
Aug 21, 2010
What size should an icon be in a windows forms application. the icon that appears in the upper left corner of a form.
View 4 Replies
Oct 7, 2010
I want a TableLayoutPanel with 2 Rows. The second row is 200px high. The first row the rest. If resize, only the first row resizes.
How to implement?
View 1 Replies
Mar 14, 2011
Is it possible to Allow users to increase the font size in a windows applications?
View 1 Replies
Mar 13, 2011
In the Windows control panel you can adjust the Display properties for which text size to use between the default value which is the smallest size text and 2 larger sizes. How can you get which text size the Display properties are set to for one's computer through Visual Basic code?
View 3 Replies
Oct 23, 2009
Does anyone know the font + size for a standard message box in Windows Vista?
View 2 Replies
Jun 10, 2008
I have a VB.NET application that uses the AXWindowMediaPlayer ActiveX to embed mpg videos to my application. I have used the Play/pause/stop Ctlcontrols a lot but now i am stuck as i needed to change the video size of the playing video from 100 to 200% hence my Questions:- How can i by code change the video size of the video being played? by Video size i do not mean the control's size.. but the Video being played inside it. for example, i could want the videos to play at 200% and not at 100%.- Is there a way to check the dimensions of the video being played so that i can by code change the video size if required as per the video.
View 6 Replies
Jul 13, 2011
I am using the following code to change the selected code in richtextbox, but when I change the font from combobox it changes the windows size as well. Whats the problem,
[Code]...
View 1 Replies
Jul 22, 2010
I have a Windows application form. Directly on the form I have a lable ("Customer Names"), a ComboBox (pulling actually names from a database) , and a Buton to add a customer to the database if i choose. Additionally I have ControlTab(3 tabs) that has "fields" and its own Buttons to insert data into a different table. The first 2 tabs have textBoxes, which are completely functional, but the 3rd tab has a "DataGridView"
[Code]....
View 6 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
Dec 12, 2009
how I can change the style of my windows form ?[size=6][i][b][font=Comic Sans Ms]
View 3 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 17, 2011
I have a windows form that contains a table layout panel extending the whole form, the size of this table layout panel may change at run time according to it's content, how can I make it's parent form automatically take its size,
View 1 Replies
May 25, 2012
I want to Print the contents of Following Given form
This Form Contains: 5 TextBoxes - Name, Age, Sex, Date, And Referred Doctor And 1 DataGridView Containing Tests Performed on Patients - Test Name | Normal Value | P Value | Cost
I want to print this on a A4 Size sheet. I dont want to use bitmap image solution for this. That looks terrible, in which an image of complete form is displayed as "Print Preview". how to cleanly print out the content ?
View 4 Replies
Aug 23, 2009
How do i make my button open a program and make it windows size?
View 6 Replies
Jul 22, 2011
Which one of these two do you suggest for writing simple windows form applications?Visual C++ is too complicated for my small to medium applications and the proccess of creating seems to be longer when compared with C# or VB.NET.
View 5 Replies
Nov 2, 2009
Using VB.NET 2008. Am using Datagridview in my application, Datagridview should display according to the windows screen size, Before I used vb6
code.
Private Sub Form_Resize()
On Error Resume Next
[CODE]............
Am new to vb.net, How to set a datagridview size according to windows screen size, In Datagridview property itself any option is available or i have to make a code as like vb. If i have to make a code, how to give form_resize in vb.net.
View 1 Replies
Jun 21, 2011
im using vb.net to open IE and go to a website... i can figure out how to size the window, but not change the windows location on the screen... how can i make the IE window position always 0,0
Dim oIE As Object
Dim hWnd As Long
oIE = CreateObject("InternetExplorer.Application")[code].....
View 3 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
Jun 9, 2011
How to make the form size automatic setting the size equals to the screen. or Maximize the whole form including the form components.
View 3 Replies
Nov 20, 2009
Im trying to resize a picturebox dynamically using .size.height and .size.width Its not working. This is the error message: "Expression is a value and therefore cannot be the target of an assignment." Never used height and width before. Been trying to find the answer, but it seems beyond me. Im sure its easy. Anyone know whats wrong with this?
[Code]...
View 3 Replies
Jul 4, 2010
I had set a print format to print some word in a Text box, when I input the text in text box is an normal size from system,but I want it print out to printer follow the Rectangle size that is was set to print out on paper.actuary i want it can auto size the font size follow by the length of string.
View 1 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