VS 2008 Form Goes Haywire If DPI Is Higher?

Jan 26, 2010

I need help with my forms developed in vb.net 2008. If I run a form in any machine (regardless of xp/vista or Win 7) whereby the DPI is set higher than normal then the size of most of my forms goes haywire. For example: I am attaching 2 screenshots of my updater program. One screen shot shows program being run in normal dpi and the other one shows it being run in higher DPI settings. In the latter case the form sizes shrinks and it looks so weird. In some other forms the controls go haywire. What should I do to ensure that forms looks ok regardless of what ever DPI a user sets in his OS?

(Note: some texts in the screenshot have been edited to protect privacy).

View 10 Replies


ADVERTISEMENT

.net Winforms Application, Memory Usage Goes Higher And Higher Never Comes Down?

Sep 27, 2010

We have a .net win forms application, using .net 3.5. Application runs from a terminal server, users access it with Citrix client. when users run this app memory usage goes higher and hiher and it never comes back. even tough we put objects with dispose and set to nothing also the memory usage is not comming down. it starts wuth 75 mb and goes up to 500 mb. it is a 32 bit application.

how can we find the exact problem with the application. the bahaviour is almost same when we run our development box locally.

View 5 Replies

Create Software In Standard Form Which Has A Higher Probability To Run In All Pc's

Apr 10, 2011

I am making a new vb.net project . And 1 thing i have noticed many times is The software that i make in high resoltion computer lloks crap in computers with monitor resoluton of 800 by 600.Is there any way we can create software in standard form which has a higher probability to run in all pc's...I can think of 1 way i guess using monitor height and monitor width from properties and then adjusting form size relative to that

View 2 Replies

VS 2008 If Number Is Higher Then 1?

Apr 11, 2009

okay say textbox2.text = "8" if textbox1.text is higher then textbox2.text the msgbox("g")so if textbox2.text = ("9") then msgbox("g") would pop up cause it's a higher number but ifit = "7" then nothing how do i do that

View 2 Replies

VS 2008 - Loop Through Integers To Display Higher Number

Mar 26, 2012

I would like to loop through a number of integers to display the higher number, I would not know the higher or the lower number. How could I compare them to pick the higher one.

View 9 Replies

VS 2010 Value Higher Than 10?

Apr 20, 2010

For some reason when i run a script to move an image based on an entered value the image stops moving on any value higher than 10, and i cant figure out why. here is a sample script

Sub RedmoveClick(sender As Object, e As EventArgs)
Dim X As Integer
Dim y As Integer

[Code].....

View 10 Replies

.net - Get Information From A Higher Class?

Jun 2, 2010

I have 3 classes: Server, Database, and Table. Each class has a "Name" property. How I want it to work is that each server can have multiple databases and each database can have multiple tables. So in the Server class I have this property.

[Code]...

View 3 Replies

Display Powers Higher Than 3?

Nov 6, 2010

I've been designing a Interactive Maths Quiz to test students on the modules they've supposedly learnt, but am having trouble getting the textboxes to display the question as i want them.I need to write things like x3 and x-5 but can't get it to work. To get 2 and 3 i copied and pasted off a word document, and that works, it displays it no problem. I tried the same with others and it just displays a box.

View 6 Replies

Possible To Write A Byte Higher Than 255?

Sep 12, 2010

We were currently working with our thesis regarding file compression and selected LZW compression. So far, we know how to work on it but we were stucked on how to write a byte.LZW uses 256 and up for the code table because 0 to 255 was used for a single byte.url...Our problem was we don't know how to write a byte higher than 255, s it possible, and read it as it is? Or, different way on how to do it?

View 1 Replies

Set Z-index At Higher Value But Still It's Not Working

Apr 10, 2010

I have one webusercontrol for Datepicker. When I am using this control in content pages it works fine. I have many controls in content page (textbox, label, etc.). All controls are inside a table. I have placed usercontrol inside <td>. When I click on an image, the calendar control is showing. But that time this calender control pushes all other controls (textbox, label, etc.). I have set the z-index at a higher value, but still it's not working.

View 1 Replies

Get A Total Sum Either Higher/lower In Their Textboxes?

Mar 24, 2010

Heres my code so far:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

I want the total sum entered for (Val(InputBox("Enter sales amount:"))) that is lower than 1200 to go in a TextBox2.Text and the total sum higher than 1200 to go in a TextBox3.Text.How should I go about doing that? Is there a way of doing it in the Select Case area?

View 11 Replies

Get Average Either Higher / Lower In Their Textboxes?

Mar 25, 2010

Heres my code so far[code]...

I want the average above 1200 going in a TextBox5.Text and the average lower than 1200 TextBox6.Text.

I've tried stuff like; "average1 = average1 + average" and "average1 = total1 / subject" and average 1 = total1 / subject1". But none of it appears to be working.

View 14 Replies

Timer Setting Always Value Higher On Label

Mar 11, 2009

I want to say the timer count the time the Process is working so that it Counts always higher on a Label with the Text 00:00:00. So it always go higher by 5ms:
00:00:10
00:00:15
00:00:20
00:00:25
and so on.

View 9 Replies

VS 2010 ComboBox.SelectedIndex Can't Go Higher Than 9?

Apr 24, 2012

I'm working with a ComboBox which has 14 items.

Using the following code I got a problem

vb
If Me.ComboBox1.SelectedIndex = 0 Then MsgBox("item 1")ElseIf Me.ComboBox1.SelectedIndex = 1 Then MsgBox("item 2") '...ElseIf Me.ComboBox1.SelectedIndex = 9 Then MsgBox("item 9") ElseIf Me.ComboBox1.SelectedIndex = 10 Then MsgBox("item 10") '...End If

The problem is that after the SelectedIndex = 9 it won't read properly the SelectedIndex = 10, it seems like it consider only the first number (1) instead of the whole one (10). In fact get the same result as if it was SelectedIndex = 1

View 6 Replies

Higher Or Lower Card Game Program?

Jan 15, 2012

I am currently working on a program for a higher or lower card game. I have my game set up and in place, however I am having trouble keeping track of the cards that have already been drawn from the deck. I am only playing with one deck and need to make sure that once a card is drawn it is placed in a discard pile and will not be drawn again. I did not post my code due to other students in my class using this forum for their version of the assignment. If someone would be willing to take a look at my code I can send it to you via private message.

View 1 Replies

Start Up Program From Registry With Higher Priority?

Aug 3, 2010

I've got my program running, but when I start it up on Vista, it does so quite slow. I need it to start up faster, I was fiddling around in task manager to check it was actually started and just taking a while, and I noticed it had the priority "BelowNormal", which I'd like to change.

How can I do this from the registry? I've got it starting up, but how do I add a parameter for the process to be started with a higher priority (I.E, normal, abovenormal, high, realtime, etc., I need to test which is suitable).

View 16 Replies

TIMEDIFF - Difference Between Entrystamp And Moded_time Is Higher Than 5 Minutes

Jun 12, 2011

More like general MySQL than vb.net itself, but still need help.

The MySQL code below:
SELECT *
FROM (SELECT resit_no,SUBSTRING(resit_time,1,19) AS entrystamp
FROM DB1.receiptdetails

[CODE]...

produces:

[CODE]...

Notice the two rows at the bottom. the difference between entrystamp and moded_time is higher than 5 minutes. why would it happen and how to correct it? both table and database use InnoDB.

View 1 Replies

'System.StackOverflowException' When Writing Data To SerialPort At Higher Baudrates?

Nov 24, 2010

I am writing a serial application using VB .net Framework V4 , where I use a background worker to Read a file and send it to a serial port using SerialPort1.writeLine method. The BackgroundWorker1.ProgressChanged Event handler sub Updates the Line Number to a TextLabel and adds each line sent to a RichTextBox using RichTextBox1.AppendText() method on main form (Form1).

The problem arises at 115200 Bauds (and higher),may be because now the text is updated real fast on the form an unhandled Exception in BackgroundWorker1.ProgressChanged Event handler sub occurs. Otherwise at lower baudrates ex: 9600,19200 etc. Application Runs Perfectly Fine.

[Code]...

View 6 Replies

VS 2010 Higher Level Of Access Makes Program Dysfunctional

Mar 13, 2011

So I have this program which I can use to drag files in it and do something with it, and when I run it as administrator, it doesn't let me drag the files in at all, but when I run it normally it does. Is there a reason behind this? And how would I go about fixing it?

My code if it means anything:

Imports System.IO
Public Class Form1
Dim SetSU As Microsoft.Win32.RegistryKey

[Code]......

View 5 Replies

Parsing Through List, Compare 2 Dimensional Array Element And Replace With Higher Value?

Mar 23, 2008

unordered text file of 3 columns to assign into 2 arrays. I've been given a graphing component which expects a two dimensional array for a scatter graph for the set of values in the last column.

How would I parse through the list given an indexed array of 215 possible 'zone alarm locations' and if an alarm log list item, of which there can more than one for any given zone location, compare in the two dimensional array any previous value and replace it with the higher valued one? The following are my declarations for the 2 arrays. It isn't clear to me why the array for the scatter data was defined as (999,1) knowing there are only 215 possible x values (alarm zone locations)

[Code]...

View 6 Replies

DB/Reporting :: Make SQL Default Back To Filling In Gaps And Only Count Higher If There Are No Gaps?

Oct 5, 2009

when setting a column to identity it will auto increment 1,2,3,4..however if you delete 4 & 5 and then insert another record it will go in as 6.If you do this a lot you end up with huge gaps in the numbers,is there any way to make SQL default back to filling in the gaps and only count higher if there are no gaps?I know I can do it in the application, or even a UDF, I just want to make sure I am not reinventing the wheel?

View 9 Replies

Retrieve The "i" Values From Higher Levels?

Jun 20, 2012

I want to run something like this:

For a = 0 To 4
For b = a To 4
For c = b To 4

[Code].....

What would be the best way to retrieve the "i" values from higher levels? Should I store them in an array?

View 3 Replies

Asp.net - Character Support - Translate Higher ASCII Characters To Lower ASCII Characters?

Aug 7, 2009

So I have an ASP.Net (vb.net) application. It has a textbox and the user is pasting text from Microsoft Word into it. So things like the long dash (charcode 150) are coming through as input. Other examples would be the smart quotes or accented characters. In my app I'm encoding them in xml and passing that to the database as an xml parameter to a sql stored procedure. It gets inserted in the database just as the user entered it.

The problem is the app that reads this data doesn't like these characters. So I need to translate them into the lower ascii (7bit I think) character set. How do I do that? How do I determine what encoding they are in so I can do something like the following. And would just requesting the ASCII equivalent translate them intelligently or do I have to write some code for that?

Also maybe it might be easier to solve this problem in the web page to begin with. When you copy the selection of characters from Word it puts several formats in the clipboard. The straight text one is the one I want. Is there a way to have the html textbox get that text when the user pastes into it? Do I have to set the encoding of the web page somehow?

[Code]...

View 4 Replies

VS 2008 Form - 'Exit' Button - When User Clicks It, Another Form Is Displayed

Jun 2, 2012

On each of my form I have put an 'Exit' button. When user clicks it, another form is displayed (I don't want to use 'MessageBox') asking user whether he really wants to quit. If user clicks yes the form closes. If user clicks no, form is redisplayed.

However, out of 4 forms only one form refuses to redisplay. The code is exactly same on all forms. I have included 2 Express 2008 projects showing one form each in the zip file apps-ssk.zip

View 15 Replies

VS 2008 Passing A Form - Get The Error.'cmbDataTable' Is Not A Menber Of 'System.Windows.Forms.Form'?

Nov 26, 2010

I'm upgrading a project from VB6 to VB2008.I have a routine that clears a combo box, named 'cmbDataTable' which could be on any form. I pass the form and the combo box is cleared.


[code]...

I assumed it would be the same in VB2008 but I get the error.'cmbDataTable' is not a menber of 'System.Windows.Forms.Form'I am working my way through the project, first updating the global procedures - this is one - I haven't written the calls so cmbDataTable doesn't yet exist.

View 7 Replies

VB 2008 - Change Child Form Combo Box From MdiParent Form

Feb 23, 2010

In VB 2008, I have a Parent form with a combo box on it. There is a child form also with a combo box on it. I want to be able to change the values on the child form based on what the user selected from the main form. The user launches the child form from a toolbar on the Parent form. The following code is run:

[Code]...

What I want to do is if the Parent's combo box has "Red", "Blue", "Green" values and the user selects "Green", the child form's combo box(With the same values) will also change to "Green". (I do not need to change the Parent form if the child form changes.) I've tried changing the Child's combobox from the combobox's change event on the Parent form, and the code runs, but nothing changes on the child form.

View 5 Replies

VS 2008 - Mdi Form - Startup Form For My Program - Hide The Treeview

Jul 2, 2009

I am using vb.net 2008 i have been using a mdi form which is the startup form for my prog. and i have a main menu on that form. now i would like to shift to tree view as my client has asked for it. whenever a node is selected i can select the form corresponding for that particular code. everything is fine till here. but when the form is loaded the tree view is coming on top of the form the tree view is docked in a pannel. now i have tried everything treemenu.sendtoback and the say the form to b called is taxtypemaster then taxtypemaster.bringtofront but still the tree view is coming over the form

I have tried the following :

Dim mMenuSelected As String = e.Node.Name
Select Case e.Node.Name

[CODE]...

Even the visible doesnt work as it seems after the .show it makes the tree view visible again. how do i hide the treeview pls. someone guide me at the earliest. i feel it is not the prob. of treeview but something to do with the mdi form am i right ?

View 23 Replies

VS 2008 Different Ways To Call Another Form From A Parent Or Preceding Form

Aug 4, 2009

I need to know the proper way, or maybe I should say, the different ways to call another form from a parent or preceding form. I am currently using ex: formname.showdialog() to call my next form, but I am uncertain if I should be using that in every situation. [code] Whats the difference between these different methods? (ex: .showdialog() , .show() )I tried both of these to open a temporary form to retrieve a persons name from a database, so as the users progresses through my training program they can keep track of their scores.But, I also call other forms as I branch through my program, from the main page, to a secondary page, to a testing page, to a results page and then back to the secondary page

View 5 Replies

VS 2008 Populating Cbobox On Form Load For A Child Form?

May 14, 2009

i am having an issue populating two combo boxes on form load. The program will connect to an access database and pull data as instructed. Then as it pulls each record it puts it into the combo box.

This was working.. atleast i think it was. i dont recall it ever not working, however i wasn't looking for it.

My problem is that if when i load the MDI parent form and have it skip the selection form and the login form and load the next form in the sequence, it loads everything perfectly. However if the select form is loaded first, then the login form and then the form i need loaded, it will not populate. The only difference between the two different loads is that the login form calls a function that loads the form as a new project.form

I did this so that I can have multiple forms open at a time. I am assuming my problem is that I need to get the child forms handle then populating controls using that handle? but i think if I had to do that then I would beable to populate the comboboxes on the first form load using the login method of opening the form.

Here's my code.

vb.net
Private Sub frmLine1t5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Text = "Line " & LineNumber & " Test Form"

[Code].....

View 20 Replies

VS 2008 Close Current Form And Show Different Form?

Sep 4, 2009

When I use

Me.Close()
Form1.Show()
It closes the whole app.

How would I change it so that it only closes the current form while opening a new one? EDIT: I put [Not Resolved] Because I accidently pressed the resolved thing

View 8 Replies







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