VS 2008 Get Any Windows Size?
Jul 23, 2010if 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 Repliesif 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 RepliesHow do i make my button open a program and make it windows size?
View 6 RepliesIm 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]...
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.
I developed a form application on my computer, but when it was used in another computer with different screen size, i was told the form didn't fit. Do I have to adjust the form size or any other ways to let the form compatible on different screen size? (could be different screen size or wide screen)
View 2 RepliesSo that's how I want it:
If I re-size the form, the textbox inside should be re-sized to fit the form, NOT DOCK!
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.
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 RepliesWhenever 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?
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 RepliesWhat size should an icon be in a windows forms application. the icon that appears in the upper left corner of a form.
View 4 RepliesIs it possible to Allow users to increase the font size in a windows applications?
View 1 RepliesIn 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 RepliesDoes anyone know the font + size for a standard message box in Windows Vista?
View 2 RepliesI 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 RepliesI 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]...
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]....
how I can change the style of my windows form ?[size=6][i][b][font=Comic Sans Ms]
View 3 RepliesNow 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]...
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 RepliesI 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 ?
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 RepliesUsing 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.
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].....
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 RepliesI 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 RepliesWhats 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.
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 RepliesI 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 RepliesI'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