Detect If The User's Font (DPI) Is Set To Small, Large, Or Something Else?

May 21, 2011

I need to find out if the user's screen is set to normal 96 dpi (small size), large 120 dpi fonts, or something else. How do I do that in VB.NET (preferred) or C#?

View 2 Replies


ADVERTISEMENT

Value Was Either Too Large Or Small For Decimal

Apr 29, 2012

When I try and run the program I get an error stating
"Value was either too large or too small for a Decimal."
On the line that says
principal = payment - InterestPaid
I've included the rest of the code as well. Perhaps this is a downside of staring at the screen for so long.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim payment As Double
Dim result As String
'declarations
[Code] .....

View 4 Replies

Value Was Either Too Large Or Too Small For An Int32

Jun 1, 2009

I have writen a program in Visual Studio 2005 professional. Part of the program functions is to store customers details. Part of this details include a phone number. I can add a customer and include his/her telephone no. which is 12 digits long. But when retreiving this customer I get the following error.Value was either too large or too small for an Int32. Couldn't store <+23320805060> in Phone Column.Expected type is Int32.The program runs fine If the phone numer is less than or = 9 digits. The datatype i am using is for the phone column is varchar(50). I have tried to change the data type to bigint, int and nvarchar(50) but the problem seems to persist. I am using the SQL database but i seem to be hitting a brick wall on this matter.

View 10 Replies

Value Was Either Too Large Or Too Small For An Int16 Error

Jun 9, 2010

I am working on fixing a bug in VB that is giving this error. I am new to VB, so there is some syntax that I am not fully understanding. The code that is throwing the error says:

.Row(itemIndex).Item("parentIndex") = CLng(oID) + 1000000

I understand that adding 1000000 is too much for an int16. I can't change that value (not right now anyway). What I don't understand, and can't seem to find, is what .Row is referring too.

View 1 Replies

.net - Cutting Up Large XML File Into Small Chunks?

Jan 30, 2011

I have a large wikipedia dump that I want to cut into different files (1 file for each article). I wrote a VB App to do it for me, but it was quite slow and crapped out after a few hours of cutting. Im currently splitting the file into smaller 50mb chunks using another app but thats taking a long time (20-30 minutes for each chunk). I should be able to cut each of these up individually if I do this.

Does anyone have any suggestions of a way to cut this file up quicker?

View 4 Replies

Font Appearing Too Small?

Oct 6, 2009

I have my software installed on numerous machines and on all but one it is fine, however on this final computer the font comes up very small. It is only in my software, nothing else on the computer. I'm using Arial size 10 and bold, nothing fancy and as i say it works on all the others.

View 2 Replies

Handling Large Collections Of Data, But Small In Size?

Dec 1, 2009

So, I have a little issue.. I can't currently explain it using the software I'm developing because it's "internal"... So I'm going to describe it as an email serverAnd the email server has a fair number of email accounts, and I want to save the accounts emailFor development, I've been saving it all in a list of a structure (this sounds worse than it is, the data actually is no more than 120 bytes per "email")

View 5 Replies

VS 2005 Make Extra Large Font?

Apr 16, 2010

why the buttons in an application I developed, shifts from its original position whenever the font size of the Windows is changed to Extra Large (Properties > Appearance > (Font Size=Extra Large).

View 6 Replies

Large Font Settings - Some Button's Text Changes Size And Some Don't

Dec 16, 2009

Within our application, some of the object's text are effected by users with "Large font" turned on under Control Panel>>Graphic Properties. I can't determine what is the trigger to this behavior. I have many forms including TableLayoutPanels, ComponentOne Sizers, some objects with DOCK=Fill, and AUTOSIZE=TRUE. I wrote a simple Hello World form, and it is not impacted by the "large font" setting.

View 1 Replies

VS 2008 - How To Display Colored Text With Large Font In ListBox

May 14, 2009

I am trying to put colored text into a list box. I use the following

Private Sub ListBox1_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox1.DrawItem
e.DrawBackground()
Dim myBrush As Brush = Brushes.Blue
Select Case e.Index
[Code] .....

This works fine and dandy as long as I use 8 pt font, but when I change the font to 20 I get the following: How can I get the list box to display colored text in a large font?

View 5 Replies

Multiple Check Boxes - Cannot Get The Bold And Large Font To Work At The Same Time?

Oct 31, 2011

I have 3 check boxes on a form and am trying to code them to change the font in combinations of Large Font,Bold Font, and underline font.I coded the bold font check box and large font check box but cannot get the Bold and large font to work at the same time.

View 5 Replies

IDE :: Font Dynamically Change Size To Be As Large As Possible Without Overflowing The Fixed Label Size

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

Asp.net - Detect What Domain User Group A Windows User Is In?

Sep 10, 2009

I know that using Dim currUser As String = Request.ServerVariables("LOGON_USER") retunrs the DomainUsername, but I want to know what Group that user is in say in Active Directory.

View 2 Replies

[2005] Font And Fontsize - Change Selected Font In List Accordin Font In Combobox?

Mar 7, 2009

How to list all font in combobox, and how to change selected font in list accordin font in combobox?

View 3 Replies

Create A Small Application That Will Force User To Enter An Even Number?

Oct 5, 2011

I need to create a small application that will force a user to enter an even number but i MUST use a loop. Here's what i've come up with:

Quote:

Dim bynombrepair As Byte
bynombrepair = InputBox("Entrez un nombre pair")
If bynombrepair Mod 2 = 0 Then

[Code]....

View 1 Replies

URL Validation - Making A Small Webbrowser - User Inputs A Proper Url

Feb 28, 2010

I'm making a small webbrowser, and I need to make sure the user inputs a proper url!

The text box is called TextBoxAddress.

View 2 Replies

Make A Small Program For Ticketing On A Parking For A Small Hotel?

Aug 27, 2010

I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?

View 2 Replies

Create A Small Application That Can Make Small Calculations?

Feb 1, 2010

On form 1 , i have a number of buttons that open up different websites.What i want to do is when i click a button on form 1 , i want forum 2 to show ( Form2.show() ) , Form 2 will have a list (Buttons) of internet browsers.

View 4 Replies

Large Number Of Record - Error: Operation Has Been Canceled By The User

Apr 22, 2012

When large number of records in Database, it throws error "Operation has been canceled by the user" in vb.net. I want to retrieve records from DB2 and display the records in DataGridView in VB.net. If number of records is less it works fine. But if the database tabe has large number of records it throws error "Operation has been canceled by the user". [code]

View 1 Replies

Chat-app RichTextbox User Set Font Color?

Sep 13, 2009

My Question i want to jazz the text up by alowing the user to change there own font color but i dont know how send the dont and then recostruct it on the other clients end Eg Me: Im Pink You: im red and The usernames are diffrent then the text YOUR NAME is Blue And Other Users Are Green how would i send the font for every user and then display the text in the text box on the otther clients heres the code i use to send text

Code:
SendData("CHAT|" & txtSend.Text)

heres the code i use to set the font

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ColorDialog1.ShowDialog()
txtSend.ForeColor = ColorDialog1.Color
End Sub

View 1 Replies

User Changes OS Font Size Which Causes Form To Look Ugly?

May 12, 2009

Notice the two buttons at the bottom have moved down to the point where they are almost hidded? What can i do to resize the form as the user changes the font size?

|+--JDMils|+--VB6 & XL VBA+--VB Dot Net 2K8|

View 1 Replies

User Changes OS Font Size Which Distracted Form Look

Jun 23, 2011

Notice the two buttons at the bottom have moved down to the point where they are almost hidden? What can I do to resize the form as the user changes the font size?

View 1 Replies

.net - Detect What OS The User Is Running?

Jul 22, 2010

I am using VB .Net 2.0. I know I can detect the OS using

System.Environment.OSVersion

Can anyone tell me if there's a list somewhere where I can find what that generates for different OS versions.

Specifically I am trying to detect if a user is running Windows 7 64-bit.

View 4 Replies

C# - Detect If User Is In A Group?

May 22, 2009

How do I detect if an arbitrary user is an administrator on a machine? I have the user's domain and username but not password. The user is NOT the currently logged in user,so I can't just use WindowsIdentity.GetCurrent.

View 3 Replies

Detect If The User Is Currently Online?

Dec 22, 2011

I have an application that when it starts, it checks the internet to see if a new version is available. My problem is this: If there is no net connection, the program 'pauses' as it tries to check for the new version.

Is there a function that I can use to detect if the user is currently online, with a working connection?

View 9 Replies

Detect If User Presses F Key?

Feb 17, 2011

I'm trying to work out how to detect if the user has pressed an f key I have this so far:

Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
Label1.Text = e.KeyChar
End Sub

This detects when the user presses a character key and outputs it via Label1.text, but it doesnt work on all keys?

View 6 Replies

Detect User Country From IP?

Mar 24, 2009

Dim hostname As IPHostEntry = Dns.GetHostEntry(TextBoxIP.Text)
Dim ip As IPAddress() = hostname.AddressList
TextBoxIP.Text = ip(0).ToString()

I have a windows form with the code above to get the ip address of the user. what would be the easiest way to get the country location of the user? based on the IP in the textbox. The solution doesnt need to be 100% accurate but good enough to work most of the time. the simpler the better.is there are any work arounds or built in fuctions for pulling a users country or language, this would be better than creating or managing a giant database.

View 3 Replies

.net TCP Chat Client Set User Text Font Color?

Sep 18, 2009

i have wrote a chat app and have it so it sends text to a rich text box my question is

how would i set it so a user can set there font color and when they talk it shows in that color to all other users but the nick name is in a diffrent color from the text

View 11 Replies

Creating Two Combo Boxes That Will Let The User Change The Font

Jan 26, 2010

what I'm trying to do in the title. I've got a rich text box and two combo boxes. I used a code snippet to show all the installed fonts in the first one and I implemented the use of an integer for the text size. I think that what I've done is correct but the application throws an Inner Exception whenever I try to change the font or the text size.

[Code]...

View 1 Replies

Install A Font On A User's Machine So Applications Like Word Can Use It?

Jan 18, 2011

Need to install a font on all user's machines that will use the application I am writing which creates custom documents in Word. It's a barcode font.I've successfully added the font to my solution and set its build action to Embedded Resource and have also successfully written code to check if the font is already installed on the user's system.

View 3 Replies







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