Why Cant Get Code Into Bigger Windows

Oct 13, 2009

Table 7.1 gives us the U.S census bureau projections for the populations (in millions) of the states predicted to be the most populous in the year 2030. Write a program that allows the user to endter the current populations of the states into an array of text boxes, and gives the percentage growth for the collection of five states. The growth is calculated with the formula: Growth = (projected pop - current pop) / current pop
percentage growth can be displayed as Formatpercent(growth). [code] why cant I get the code into bigger windows?

View 3 Replies


ADVERTISEMENT

Little Section Of Code Of A Bigger Project?

May 27, 2011

I'm looking for a little help; I've tried everything. Here is a little section of code of a bigger project. What do I need to plug into the ? in the FillRectangleRectangle call to get this to work? I got the FillRect... example from MSDN, but I can't figure out how to call it correctly.

Private Sub PictureBox1_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox1.Click Dim i As Integer Dim pt As Point Label1.Text = "=" & MousePosition.X & " Y=" & MousePosition.Y & " "pt = New Point(MousePosition.X, MousePosition.Y) For i = 0 To 117 If rects(i).Contains(pt) Then Beep()FillRectangleRectangle(?, i) End If Next i End Sub Public Sub FillRectangleRectangle(e As System.Windows.Forms.PaintEventArgs, ByVal i As Integer)Dim blueBrush As New SolidBrush(Color.Blue) e.Graphics.FillRectangle(blueBrush, rects(i))End Sub

View 1 Replies

Write Code To Find Smaller Array In Bigger?

Jul 10, 2011

trying write code to find smaller array in bigger (arrays have 2 dimensions) (i have 2 arrays type Color they contains 2 bitmaps data inside - captimage is bigger bitmap where is need to search)

function CompareI: boolean;
var
y, x, yy, xx: integer;
begin

[code]....

but no luck.. something is wrong - result is always false, can someone provide a little fix or point me to 2dimensional array compare code?

View 2 Replies

EXE Got Bigger From 1 Build To Another

Mar 25, 2009

Any explanation why a EXE in VS2005 would grow from 9MB to 17MB. The only thing changed between the 2 compiles as the adding of about 20 lines of code and an additional Crystal Report file (.rpt). The .rpt is about 8.5MB, but our understanding is that the .rpt doesn't get included in the EXE.

View 2 Replies

Hashing Files Bigger Than 2GB?

Jan 2, 2010

I have discovered that the .Net Hashing functions, MD5, SHA1, and SHA512 (all of them probably) do not allow us to create hashes of files greatedr than 2GB in size. If I use a function like the following:

Friend
Function
HashMD5File(ByVal

[code].....

View 4 Replies

Make Sure One Input Is Always Bigger Than The Other

Oct 29, 2009

I would like to know how to make my l(length) always bigger than w(width).eg: message box "Make Length bigger than width" and the 2 inputs, and 3 outputs = [blank]

Public Class Form1 Dim min, max As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

View 4 Replies

Make The Circle Bigger By +1 Til = To 55?

Feb 8, 2011

I am trying to do a do while loop to make a circle draw itself resized by 1 each time 50 times. I just dont know how to define the numbers that make up the circle size properties. here is my simple code

Me.CreateGraphics.DrawEllipse(pencolor, 135, 125, 5, 5)

I would like to just make a simple do while loop to adjust the 5,5 by +1. I am really new to programming and any help will be excelent. If I knew the property name of the 2 numbers I need to change I could declare them as a letter H & W and just do while

H,W is < 56
H+1
W+1

if this makes any sense?

View 5 Replies

Doesnt Download Bigger Files?

Jan 21, 2011

durl is the download url nicely tested and gives right urlthe download path is also ok as i tested smaller files they work...

VB.net
My.Computer.Network.DownloadFile(durl, Application.StartupPath & "games" & info1 & "game.zip", "", "", True, 10000, True)

[code].....

View 5 Replies

Make The Tabs Bigger On TabControl?

Aug 4, 2009

I notice that the actual tabs on a TabControl are quite small (I am using VB 2008 Express). I would like more vertical space above and beneath the text on the tabs. I tried changing the padding in the TabPages collection but it didn't seem to do anything. Is there a way to make the tabs bigger?

View 1 Replies

Making Logo Bigger In My Form

Aug 8, 2011

Is there a way I can make my logo's bigger when I load them into my form, at the moment they look a bit small and un readable.

View 3 Replies

Serialize A Part Of A Bigger Class?

Aug 24, 2009

I have a issue in a serialization process. I'm trying to Serialize a part of a bigger class.

I've a Class named MyBigClass with contain many property and method, and some of them may not be Serializable.

And I'm trying to Serialize one property of the MyBigClass class, witch is a SortedList named SubClassXList defined as SortedList(Int32, ClassX)

My problem is when it is time to serialize the SortedList (SubClassXList) a error tell me that a Class (say Class B) could not be Serialized because it is not marked as "Serializable", but the Class B in question have nothing to do with the SubClassXList in question.

The only thing I could see, is that the Serialization method try to also Serialize the Main Class (MyBigClass).

Here is the method that I use to Clone a Object ClassX do have the attribute "Serializable()"

Public Function CloneObject(ByVal pObjectToSerialize As Object) As Object
' Create a memory stream and a formatter.
Dim ms As New IO.MemoryStream()

[Code].....

View 5 Replies

VS 2008 How To Make Bigger Arrows

Mar 15, 2012

I draw my lines with arrows:

mypen.StartCap = Drawing.Drawing2D.LineCap.ArrowAnchor mypen.EndCap = Drawing.Drawing2D.LineCap.ArrowAnchor but I want a bigger (custom) arrows in start and and of line. It's not clear how to do. Perhaps with:

mypen.StartCap = Drawing.Drawing2D.LineCap.Custom Onenew

View 4 Replies

Winforms - Labelsize Appears Bigger Then The Label Itself

Mar 13, 2009

I'm trying to stack a few lists on top of each other. But the label.size.height appears to be bigger then the label itself. When i set the borderstyle to fixedsingle, i see the border around the text. But the height is bigger, so there comes a space between one label and the next. I have tried to set margin and padding to 0 without result. Exemple: label.size.height return 23, when the height actually is something around 15. Does someone knows how i get the right size? Edit: When i explicitly set the height of the lable, the problem is solved. Is this some problem with autosize?

View 1 Replies

Code Works In A Windows Forms Application, But Not In A Windows Service

Jan 19, 2010

I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service

View 7 Replies

.net - DataGridView Resizeable Columns But Last Column Can't Be Resized Bigger?

May 10, 2011

For c = 0 To grd.Columns.Count - 1
grd.Columns(c).Resizable = DataGridViewTriState.True
Next c

That allows all the columns in my DataGridView to be resizable EXCEPT the last column. Why?I DO get the little resizable-mouse-pointer... but you can only make the column SMALLER, never WIDER.(Same problem if I try to set all the columns to Resizable, using the VB.net IDE)Shouldn't I be able to resize ANY column I want, bigger or smaller?

View 1 Replies

Make My Form Bigger With A Click Of Command Button?

Jan 15, 2010

How to make my form bigger with a click of a command button?

View 2 Replies

ObservableCollection.Insert On Index Bigger Than Length Of Collection

Mar 15, 2012

I'm wondering, what happens when you do following:

Collection.Insert(55, "Input")

The collection contains 20 items, so 19 would be the last index. This doesn't work, I get the expected outofrangeException. But when I do :

Collection.Insert(20, "Input")

That works without a problem, even though it is 1 out of the collection.

View 1 Replies

VS 2008 : Creating A Form Bigger Than Screen Resolution?

Feb 28, 2010

Is it possible to create a form bigger than my screen resolution ?. My screen is 1680 x 1050 but i need to create a form of 1920 x 1080.

View 6 Replies

Convert Wia1 Code To Wia2 Code To Use It Under Windows 7?

Jul 18, 2011

Dim wiaManager As WiaClass = Nothing ' WIA manager COM object
Dim wiaDevs As CollectionClass = Nothing ' WIA devices collection COM object
Dim wiaRoot As ItemClass = Nothing ' WIA root device COM object
Dim wiaPics As CollectionClass = Nothing ' WIA collection COM object[code]....

View 2 Replies

Get A Code Compiled In Windows XP To Work In Windows 7?

Oct 25, 2011

I have a VB.net project that i've published through a click once installation which was compiled in Windows XP the application contains a previous version of True DB grid which is not supported windows 7 so i'm trying to get my application to work in Windows 7 so that the true db grid and other such controls work without any issue. i tried compiling the code in x86 mode

View 2 Replies

Make The Image Become Bigger And Clear When Mouse Hoover Or Double Click?

Feb 7, 2011

I have a problem on using mouse hoover and double click on image.I have a listview box. when user choose 1 item, he/she will be able to view it below the listview table. However, the image is small and they can't see it clearly. So I would like to make the image clearer by making it bigger when mouse hoover and double click. At the same time, when I manage to view this image, the listview table should be invisible.( as the image shows.This is my codes to show the image when user click item in listview:

Friend WithEvents PictureBox2 As System.Windows.Forms.PictureBox = New PictureBox()
'initialize(PictureBox)
Me.PictureBox2.Location = New Point(15, 195) ' default (0,0)[cocde]....

View 2 Replies

Compare Filesize With Stringvalue - Make Mechanism To Prevent A Logfile To Grow Bigger Than 4 Mb?

Jul 1, 2010

I would like to make mechanism to prevent a logfile to grow bigger than 4 Mb. Therefore I compare the filesize, get with

[Code]...

With a string value saved in the registry. Now the thing is, that sometimes a backup of the logfile is made, while the actual size is 6 Kb, and the limit as saved in the registry is 4194304. ??

View 3 Replies

Trim A Text If Text's Width Is Bigger Than A Specific Unit Of Measure?

Sep 26, 2009

How do I trim a text if text's width is bigger than a specific unit of measure (for example 3 centimeter).

View 14 Replies

Enlarge An Image Up To 32 Times Or 64 Times Bigger Than Original?

Dec 12, 2011

I want to enlarge an image, possibly up to 32 times or 64 times bigger than original dimensions (so that the user can see each pixel) if possible. The following is a simple function that I have to enlarge an image.

Private Function xEnlarge(ByVal Source As Image, ByVal Rate As Double, Optional ByVal Quality As Drawing2D.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic) As Image

[Code].....

View 6 Replies

Code To Run Windows Shortcut?

Feb 14, 2010

I intend to create a button to run a specified windows shortcut such as windows + E for explorer, Windows + D for Desktop. and i also want my windows form still to be active after running the shortcut.

View 3 Replies

Windows API Code Pack

Nov 22, 2010

I'm compiling and testing the VB programs in a download from MS of the Windows API Code Pack at url...(which is in VS 2008 and needs to be converted to run on VS 2010). So far I've resolved most of the issues, but a couple are baffling.The code as downloaded for the Taskbar demo refers to icons in the project resources as My.Resources.Green and My.Resources.Yellow and Red. Fatal errors, even though all the help pages say this is the correct way to access them. I got the build to run by removing the "My."; has there been a syntax change between VS 2008 and 2010? When I run the app, I get a message from TaskbarDemo.vshost.exe which says "This demo application needs to register .txt files as associated files to properly execute the Task related features. Filetype is not registered." Does that mean that in trying to debug the app, I have to modify the registry to associate the test program with the .txt filetype?

View 4 Replies

Code Access Security On Windows 7

Dec 10, 2010

One of my application is taking a lot of time on Windows 7 compared to XP. What application basically does is it creates some PDF files reads the content and emits on a form and then deletes the files. I ran ANT profiler on both XP and Win 7, and i could notice some differences. On win 7 some CAS related methods are widely called and those method calls were missing on XP.. Is this the reason ? If someone has faced similar issues,

View 4 Replies

Code For A Next Button For A Windows Application?

Sep 26, 2010

when i click on the next button i want the next record to be displayed.

View 1 Replies

Code Works Only For Windows 7 And Not Vista/XP?

Aug 25, 2009

I made a bluring tool of some sort and you basicly drag an area of yuor picture and it blurs that certain selected elipsis.. the problem is THis only works on Winsows 7 Im trying to understand the diffrence but I can't. The PC uses the same graphic card same hardware just a diffrent OS but it wont do that Code. Anyways here is how I blur

Private m_ActiveControl As Point
Private m_CurrentPoint As Point
Private ileft As Integer

[code].....

View 10 Replies

Create Windows Form Via Code?

May 18, 2009

Is it possible to create a form, and controls like buttons, and also assign those buttons to their own scripts by code? The reason I'm asking is I've added scripting functionality to my application for users, I want them to be able to add forms for their scripts

View 17 Replies







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