when the form loads, there is a table and i use code to set the row count to a variable from a previous page. this works fine. the problem i am having is that i cant get the row height sizes to be evenly spaced, there is 1 huge row then heaps of tiny ones
I have written a VB .NET 2010 application which displays a "you have new mail" window/form with an OK button that closes the form.
Some users have received new PCs with dual-monitors and the OK button is no longer visible on the form - it's at the bottom but off-form.I guess that this is related to a different screen resolution and not the dual-monitor setup itself.how to make my forms auto-resize? I though this was automatic in VS 2010.
Is it possible to have radio buttion 1 control this code and have radio button 2 control the same code with different sizes? If this can be done it will get me buy until I learn a better way. It is a small envelope app, someday I will add a database to it too hold all my address. Right now I only use a couple different sizes.
I have a slightly unusual application that is optimally designed by doing the following. We have an application that references a number of graphic sets for unique artwork utilization. The application is in HD and the graphic sets are a bit large about 20 megs per set. We have found that the optimal design for this particular application is to create a unique .Resources file per set, compile this .Resources file into a .Dll file using Assembly Linker (AL.exe) and reference the .Dll via the application and load the graphics upon demand or selection actually of this unique set within the application.
Question is this as I have been unable to find any data on this aspect.
Is there a limitation on the number and size of .Dlls that a VB .Net application can reference?
Specifically, we will likely have 20-25 unique graphic sets reesulting in 20-25 unique .Dll files of about 20 megs per .Dll. On our deployment boxes for the applications, we have 2 GIGs of RAM so no issue there.
Just curious if anyone knows if I am breathing down the neck of an inherit limitation within VB .Net 2010 by creating the above monster.
How do i center an image at all window sizes? My Window is borderless and maximized so its size obviously differentiates between resolutions. I'm having trouble centering an image directly in the middle of the screen and making it stay there regardless of the size of the window. Docking isn't working neither is anchoring and hoping there is an easier way around this?
I have a basic VB.net app that displays a picture box with some text. nothing special. looks fine on my computer. If I display it on someone else's computer with a larger font size (125%?) my picturebox and text looks off and stupid.
How do people account for this? Should I simply get the new font size and multiple all positions, lengths and widths of object by 1.25?
I'd obviously like my dialog to scale properly and look as expected in any display no matter what font size is selected.
I have a basic VB.net app that displays a picture box with some text. nothing special.ooks fine on my computer. If I display it on someone else's computer with a larger font size (125%?) my picturebox and text looks off and stupid.
I have less than good eyesight now as my age increases :) I have managed to make most text areas/dialogs etc suitable for my eyesight, but can't find any way to edit/alter the Toolbar Icons - I expected to fin (at least) a seting for 'large' icons, or a way to increase/decrease the sizes - but so far I haven't been successful.
I find the icons/toolbars to be poorly designed in that they are on a grey background which just serves to minimise their effect.
Is there a way to make the actual tabs different sizes? I just want the tabs themselves different sizes not the whole thing. Seems like the itemsize property does this but it will only allow you to set one size. I want each tab to be a different size depending on its text.
I have a question about For function. I have in form 2 pictureboxes and i want that one which size is 300x300 will be resized to 100x100 and second which is 100x100 will be resized to 300x300 So im using this code for that:[code]But why sizes changing instantly after ~1.5 seconds? For function doesn't shows all action.
'First creating a temp table, temptabell, and copying data to it from table tabell Dim strSql2 As String = "SELECT * INTO [" & temptabell & "] FROM [" & tabell & "]" Dim dbCommand2 As New OleDbCommand(strSql2, cn)
[Code]....
This is working, this is how I did it in VB6, but I wonder, is there an easier way?
Would it be possible to change field sizes more directly?
I want to check to see if a imported image is larger (in pixel dimensions) than the PictureBox control size.Here's my vb.net Private Sub open_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles open.Click
I'd like to know if it's possible to have a Label/TextBlock that has two or more different font-sizes/styles/weights within the same label/block. Something like this: This is an example of a string.
ave a folder containg loads of images of different sizes and need to loop through all the files and get there size infmation so i can list them all in a treeview.
For Each f In Directory.GetFiles(imageLocation) Dim i As Image = Nothing Try
I need help with an auto size code for my combobox's width so when the browser go to maximize the combobox auto sizes with the screen.i found this code online but it
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged Dim iWidth As Double ComboBox1.AutoSize = True iWidth = 0
[Code]...
if you have any other auto size codes please help me or edit the one i have.
How should I handle image files of various sizes (<1 mb upto 15mb) within a mobile application that I am developing? Currently, I am displaying the image full size using a ASHX file inside of an ASP Win Form using the ASP Image Class. So basically what I would like to know how should I go about dealing with these sometimes vastly different image sizes. Would copying the image to be displayed and then scaling it on the server to whatever dimensions I decide and then displaying it in the browser be a better way of "handling" images especially in an mobile browser?
I want to Return a List of all the PaperSizes with Included Dimensions. When I open my form it displays the Current Default Printers PaperSizes. I need to set the PrintDocument Object to another Printer... How might I go about changing my PrintDocument Object to the next printer installed on my computer? So I can then get it's Papersize info. Private PrintDoc As New PrintDocument
I am creating a program that I would like to distribute. I am using printform in VB 2008 to print my form. My form is the size of my computer screen...15 in. If the program is run on a different computer with a different screen size, will it affect the appearance of the form on the screen or the printing of the form? If the form is run on a laptop, for example, with a smaller screen, will it cut off my form and thus cut off the form during printing? Will a bigger screen increase the size of the form and not allow it to fit correctly when printed? I was just curious and wondering.
I'm trying to create a simple script that will return a list of folders in the current directory and their respective sizes:
Set objShell = CreateObject("WScript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") Set strCurrentDirectory = objFSO.GetParentFolderName(Wscript.ScriptFullName) Set objFolder = objFSO.GetFolder("strCurrentDirectory")
I am in the process of testing my application on different language versions of XP and Vista.I notice that some containers size differently in the chinese version of the OS. This is particularly noticeable with panels which always appear to be about 10% smaller in height. The width is ok, its just the height that is changing. I can overcome the problem by making sure that all controls within the container are placed towards the top but it then doesn't make the UI look as good when running under English versions of the OS.
I had some trouble a while back with my progress bars exceeding their maximum sizes. I though I had fixed the problem but obviously I was wrong every time the maximum size is exeeded the application enteres debugging mode .... this is really frustrating as the progress bars are a major factor in the game...
What I have is one progress bar which is linked to a clock the clock which ticks up to 1:30 and the game then ends. I also have another progress bar showing the health of the shooter.
I have a series of collision codes set up which are linked to these progress bars, that add to them and take from them.
'Heath pick up collision code... If (HPU.Top + HPU.Height >= Shooter.Top) And (HPU.Top <= Shooter.Top + Shooter.Height) And (HPU.Left + HPU.Width >= Shooter.Left) And (HPU.Left <= Shooter.Left + Shooter.Width) And HPU.Visible = True Then
[Code]....
I have tried re-routing the overload so that if it cannot add no more to the progress bars it adds nothing to them.
When a selection in WindowsForms RichTextbox uses two or more different font sizes (eg. you select text with font size 9 and some other text with font size 16 in the same selection), SelectionFont.Size always returns 13.
How Do I Make It So When You Navigate To A Webpage Using A Tabcontrol The Tab Displays The Document Title Of That Site But Does Not Resize Itself To Fit The Entire Title, It Stays One Size.
I'm setting form sizes according to user screen resolution and I think I need design no smaller than 1024 x 768 these days. Using the following code I set my first form and use Anchor settings to resize and maintain controls. Does resize affect StartupPosition in other forms and what do you think is the best StartupPosition to Show the next (smaller) forms? I have a feeling I should have created child forms but simply added forms to the project as I needed them. For example, the first code example does not take account of the WIN7 Task Bar.
HTML Dim x As Integer = My.Computer.Screen.Bounds.Width, y = My.Computer.Screen.Bounds.Height Me.Size = New Size(x, y)
A smaller form loads with the same code slightly varied, but the reduction is not taking account of the screen resolution. Is there a way of reducing by percentage?
HTML Dim x As Integer = My.Computer.Screen.Bounds.Width, y = My.Computer.Screen.Bounds.Height X = X -100 y = y - 100 Me.Size = New Size(x, y)