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


ADVERTISEMENT

User Defined Directories - Code - "Project Processing' Section Doesn't Run At All?

May 28, 2009

I am having trouble with this code. Can someone tell me why the "Project Processing' section doesn't run at all? The 'Client Processing' section runs and executes find but it seems the 'Project Processing' section does not.

Code:

Public Sub btnExecute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExecute.Click Dim mBaseFolder As String Dim mProjectFolder As String Dim mClientName As String Dim sClientFolder As String Dim sProjectFolder As String

[CODE]...

View 3 Replies

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

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

Kinect Multipoint Project In Alpha Stage For Emulator Section?

Feb 22, 2012

I found out how to get the emulator working for my kinectmultipoint on 32-bit and 64-bit machines (i still need to confirm 64-bit by tests but 32-bit works). I used the webbrowser controls invokescript property and placed my vbscript code in an html page to tell internet explorer engine to pass script to correct version scripting engine when executing the vbscript.

after using navigate property I use these lines of code:

In form load: 'setup the softehci controller before executing dsf code!

Shell("C:Program Filesdsfsoftehcisoftehcicfg /REMOVE")

Shell("C:Program Filesdsfsoftehcisoftehcicfg /REMOVE")

In button1 click event: Webbrowser1.Navigate("path to html file with vbscript")

Webbrowser1.Invokescript("my vbscript method")

Note: i think this approach only works in local mode not on a web server or such.

So if anyone wants to check up on the project or help me i just need to change the vbscript to add multiple mouse devices and then i portion it up to do these three main functions:1. Add a new mouse device when kinect detects another person walking up to computer.

View 2 Replies

Execute A Particular Section Of Code Or Not Based On Variable At Runtime?

Dec 31, 2009

What i am tring to do is execute certain code based on a variable held in a module someting like compiler directives, here's an example for lack of an explanation.[code]...

View 2 Replies

Section Of Code Causes Freezing, StreamWriter Inside For/Next Loop?

Nov 14, 2010

Dim tbox As Control
Dim oWrite As System.IO.StreamWriter
oWrite = IO.File.CreateText("c:Template.BBT")

[code]......

View 5 Replies

Synclock A Section Of Code While Waiting For ShowDialog To Return?

Jun 1, 2010

I'm having trouble working out how to lock my application out of a section of code while it waits for a response from an external program've used Synclock on a section of code with the Me object in the expression. In this Synclock I call an overridden ShowDialog method of a dialog box, which has a timeout parameter, but does return the value from the underlying ShowDialog function call ,once the timer is setup. Works like this.

SyncLock Me
Dim frmDlgWithTimeout As New frmDlgWithTimeout ' dialog box with overridden ShowDialog '
Dim res As DialogResult = frmDlgWithTimeout.ShowDialog(10 * 1000) ' 10 sec timeout '

[code]....

View 1 Replies

.net 4.0 - ASP.NET 4.0 Custom Configuration Section: "An Error Occurred Creating The Configuration Section Handler"

May 2, 2012

I am creating a custom config section that will allow me to manage what ELMAH exceptions I want to ignore from my VB.NET/ASP.NET app. Here's my code. I made it easy to paste in a blank code file if anyone's up to the challenge of diagnosing the problem.

CODE:

When I execute this code:

CODE:

I get the error An error occurred creating the configuration section handler for IgnoredExceptionSection: Could not load file or assembly 'WEB' or one of its dependencies..

What boggles my mind is that this all works fine in my C# console test app after I convert the code from VB.NET using a web utility. However, when I paste the VB code from my web app into my VB.NET console test app, it doesn't work there, either, so it appears to be a C#/VB issue. What am I doing wrong here?

View 1 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

.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

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

Any Way To See All Of Code For A Project?

Jan 22, 2009

I'm curious - is there any way to see all of the code for a project? I'm wondering how much VB does automatically for you in the background.

View 3 Replies

ATM PIN Code For .net Project?

Mar 7, 2009

I am coding an ATM interface for a VB.net project. I wish to use command buttons to enter the code, just like one would do so at an actual ATM. I am using 4 separate labels or text boxes (whichever is more convenient), to print the separate numbers to, once the command buttons are clicked by the user.

The problem I am having is that once the 1st button is clicked, it is continually being overwritten, by clicking a second button. I have tried making the labels or text boxes... enabled = False, but it is still overwritten when the second button is clicked. Is there any means of bypassing this problem and getting the first label or text box locked off, after the first click?

View 2 Replies

Import C# Code Into A VB Project?

Sep 9, 2008

Is it possible to import a c# code that I have (which highlights lua syntax in a richtextbox control) into a vb .net project or convert it from C# to Vb9? I tried a converter but it didn't seem to work.

[code]...

View 7 Replies

Lines Of Code In VB Project

Aug 7, 2009

What is the easiest/simplest way of finding out the number of lines in your VB project?

View 4 Replies

Make Dll Of All My Project Code?

Feb 5, 2010

I want to make a project in which i only use dlls for any kind of work plz tell me how to make a dll i dont know how to make dll.

View 1 Replies







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