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
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
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?
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?
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!
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.
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]...
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 '
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?
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.
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:
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
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
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
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?
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()
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:
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?
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?
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]....
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. ??
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?
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.