Figure Out Different Ways Of Making Programs Work?

Jun 22, 2010

I've been going through a VB book I had while in College, and was trying to figure out different ways of making programs work.One assignment was to create a multi-dimensional array to figure out wind chill factors. The only part I really can't get to work right is using 2 numericUpDown controls. Using 2 dropdown menus was obviously easy because the items are indexed, but as far as I know, numericUpDown controls are not indexed.

Instead I used 2 selectCase statements to determine the index in each updown control, then passed the indexes to a function to determine the answer.The numericUpDown controls both increment by 5, (wind from 5 to 30) (temp from -20 to 15)Just looking to see if someone has any ideas of a better way of doing this.

[Code]...

View 1 Replies


ADVERTISEMENT

Figure Out A Way To Get The Even And Odd To Work?

Jun 22, 2010

I have two text boxes, submit button. and a dropdown list with the items(even, odd, and all). I want to calculate the sum of either all "Even", "Odd" or "All" numbers according the selection. In the code below, I have the "all" section working correctly but I'm trying to figure out a way to get the Even and Odd to work.

Some one suggested me to develope a good formula for determining whether a number is even or odd, then calling that from within the program as needed. I've tried that below with the IsEvenNumber function but got stuck. Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click

[code]...

View 1 Replies

Effective Ways Of Game Making And Graphic Usage

May 19, 2009

I've not really got a lot of experience making any games, but currently I've only made small basic games which involve, moving picture boxes with Case (KeyDown) events and timers etc, I've noticed a few problems such as, flickering and jittery movements as it += on to Top or left. Especially when I try it on other computers it varies and is sometimes really bad. I've heard from my lecturer that you can use other things in VB.NET such as GDI+ or GDK or whatever, I'm not really sure, but would someone be able to explain to me what other ones there are for VB.NET or the best method for me to do to move on to more effective ways of creating a graphical interface.

View 2 Replies

How To Setup MyClass To Work Both Ways

May 7, 2010

I'm using VS 2010 so I have auto-implemented properties.I have a class and I want to access the properties by a string.[code]But, I also want to be able to access the variables something like this way.[code]How can I setup MyClass to work both ways?

View 7 Replies

Class Property Access - Setup MyClass To Work Both Ways?

May 7, 2010

I can't seem to find the correct words to search for an answer. I'm using VS 2010 so I have auto-implemented properties.I have a class and I want to access the properties by a string.

Public Class MyClass
Property Prop1 As String
Property Prop2 As String[code].....

But, I also want to be able to access the variables something like this way....

Dim MyVar = New MyClass
MyVar.Items("Prop1") = "Prop1 Value"
MyVar.Items("Prop2") = "Prop2 Vaule"

How can I setup MyClass to work both ways?

View 1 Replies

Programs Work Under Windows XP?

Mar 5, 2009

how can i make my programs work i am using in my programs framework 3.5 and i make to my programs build publish so is effect on any thing

View 8 Replies

Will Publish Programs Still Work With Expired Registration (VB2008 Express)

Oct 18, 2010

would like to know if the Publish Programs will still work if the VB2008 Express registration has expired

View 2 Replies

Making A Message Box Work - .NET?

Mar 15, 2012

Below is the code I have been working on in VB.NET What basically happens is that when the user presses the calculate pay button, a message box is supposed to appear with all of the information in it, however the error comes up with: 'InvalidCastException: Conversion from string "Total pay: 5" to type 'Integer' is not valid.'

Public Class Form1
Dim TotalPayWithoutOvertime As Integer
Dim HoursWorked As Integer
Dim DoubleRate As Integer

[code]....

View 6 Replies

Making A Windows Service Work?

Oct 9, 2009

I have a program that i'm trying to convert into a service (it has no interface anyway).

View 2 Replies

Making TextFieldParser Work With Quotation Marks?

Jan 25, 2009

I'm using the following code to read some values in from a tab delimited text file:

vb.net
Using Parser As FileIO.TextFieldParser = My.Computer.FileSystem.OpenTextFieldParser(LogFile, vbTab)
Parser.TextFieldType = FileIO.FieldType.Delimited
Dim comments(0) As String

[Code]...

As you can see I have set the HasFieldsEnclosedInQuotes property to true on the textfieldparser because I want to make sure I capture the data correctly if quotation marks are used. If I set the HasFieldsEnclosedInQuotes property to False then it all works (or at least it doesnt error anyway) but like I said, I need to have that set to true because otherwise if the line contained a tab character within the quote marks then my app would think this was two separate fields and process it incorrectly.

View 4 Replies

Making ActiveX Exe Work Inside Internet Explorer?

Mar 4, 2010

I have an ActiveX exe that works on word document. I want to make the ActiveX exe to work inside internet explorer. For Ex: if there is a link in a web page pointing to word document, clicking that link should open the word document in my application but inside the internet explorer itself. What i am able achieve till now is i am able to open the word document in my application but in my application window using MIME.

View 3 Replies

Making ProgressBarRenderer.DrawHorizontalChunks Work Like Standard ProgressBar

Mar 28, 2012

Is there a way to make ProgressBarRenderer.DrawHorizontalChunks actually work the same as the standard ProgressBar rendering?

If you create a Class that Inherits ProgressBar and override the OnPaint event then you have to render the Empty ProgressBar and it's fill% manually. This pretty easy with the ProgressBarRenderer. However, the DrawHorizontalChunks function is ugly compared to how a standard ProgressBar renders itself.

Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
ProgressBarRenderer.DrawHorizontalBar(e.Graphics, e.ClipRectangle)
ProgressBarRenderer.DrawHorizontalChunks(e.Graphics, New Rectangle(0, 0,

[Code]....

I also have a second more minor issue in that I Shadowed the value property (for various reasons), so PerformStep (which then has to be Shadowed to keep the Value property in check) causes it to increase in blocks rather than smoothly growing between the two Values (old value growing to old value + step); the only solution I can see is to extend the code in the Shadows Sub PerformStep code to move the Value property gradually between the old and new values.

View 4 Replies

Making Media Player In VB2008 - Buttons Next And Previous Don't Work

Nov 16, 2009

I'm making my Media Player in VB2008. I got Listbox1 as playlist. Buttons play and stop works, but buttons next and previous don't. What code i need to put for them?

View 4 Replies

Build A Class Or A Part Of A Program That Can Be Add Into Other Programs To Be Used In That Programs?

May 27, 2011

I am sure this can be done, as Visual Studio is basically built this way. What I want to do is simply make a class that my other workmates can use. But rather than have it in a code form, I want to build it (partially), and then my workmate can add it into their programs (sort of, like the add reference for the .NET stuff).

View 4 Replies

Coding Programs That Interacted With Other Programs?

Feb 2, 2010

I started with VB 6.0 back when i was 14, I was mostly into coding programs that interacted with other programs. Recently I installed VB.net 2005 pro i got from school, and i grabbed few source codes that teach show interaction, I feel so dumb, i dont remember anything lol. It be great if you guys can share some source codes and other stuff in this field. also other day i was in dream spark and i am able to get copy of VS.net 2010 ultimate edition, are there a lot of major changes, cause i got 2 thick book for VB.net 2005..

View 1 Replies

Distributing Programs: Getting Programs To Users Who Might Want Them?

Feb 23, 2009

When you've finished a program and you're trying to distribute it to the mass public. How is the best way to go about doing this? What sites would you post your program on and getting the word out that there is a new program on the block and it does xyz. This is directed to freeware so there wouldn't be any advertising.

Sorry for not explaining it very well the first time.

View 2 Replies

Can't Seem To Figure One Out?

Nov 24, 2009

My programming days are many years in the past - so I'm trying to get back into it. My current problem is as follows - I have a word document that is set up as a mailmerge document that is merged to email (through outlook). The merge records are in an excel spreadsheet (the email address is in a field called EMAIL). My emails are getting rejected by the recipient domain because they're being sent too fast (so they therefore think that they're spam).

I need to create a VB Program that will use the document called MASTER and merge it with the spreadsheet called RECIPIENTS and send via Outlook. However, I need it to send the first 10 emails, wait 10 minutes, send the next 10, wait another 10 minutes and continue cycling through until all of the emails have been sent.

View 3 Replies

Can't Figure Out What To Put For Argument

Mar 8, 2012

[URL]It is a sub that is meant to add a user to a group in Active Directory. However, I can't seem to figure out how to use it. Here is the code:

''' <summary>
''' Method to add a user to a group
''' </summary>
''' <param name="de">DirectoryEntry to use</param>

[code]....

I'm not sure what to put for the first argument when calling it. For example:

AddUserToGroup(?, User, Group)

View 1 Replies

Cannot Figure Out How To Get VB To Get Any *.jpg File

Mar 16, 2010

I am trying to write a program where every 30 seconds a jpg file is put in a PictureBox object. So far I am only able to get 1 jpg file every 30 seconds - twice - that is only 2 jpg files and not say 30 jpg files.

View 5 Replies

VS 2008 Can't Figure Out This

Jul 15, 2009

Below is the code im using to select fields from a table.I have 6 labels on a form. I want each label to have the value of the field selected.

Example,

I have a label named lblTeacher on the form. Because i'm selecting the Teacher field from the table in the OLE string, i want to be able to assign the value of that to the label. This is the same for all the other fields selected. How would i manage this?

[code...]

View 2 Replies

Can't Figure Out The Format For This Operation?

Jun 13, 2012

I have an array of a structure and I need to assign an element of this array to a variable of the same type. In vb6 I'd use something like the following pseudo-

View 3 Replies

Can't Figure This Editable Listview Out In .net?

Feb 17, 2012

i have my project working fine in vb6,,but when i try to convert it ..well you know what happens 99.9% of the time.Anyhow all i have been able to get working is the code below.which basically just throws a textbox up onto the listview where ever the mouse is clicked at..but i can't figure out how to get it to lock into any of the cells,columns etc.can someone just show me the simplest way to get the textbox to lock into the cell that the mouse clicks on..or subitem etc.I have no more hair to pull out..I'd start pulling teeth..but I'm already passed that option too

[Code]...

View 12 Replies

Figure Out The 'bytestowrite' Command?

Dec 1, 2009

I'm trying to figure out the 'bytestowrite' command, but I'm not having much luck.I'm sending some info over COM1 to and LED sign, and since it runs at 300 baud it takes a minute or so to transfer. I was trying to use the 'bytestowrite' command to find out how many bytes still needed to be sent, and use that info with a progress bar, but I'm always getting 0 when using 'bytestowrite'

Below is the code I tried to get the bytes left to write into a label box, but I've probably got it wrong (but I like to try to figure things out before I ask for help).

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Using com1 As IO.Ports.SerialPort = My.Computer.Ports.OpenSerialPort("COM1", 300, Ports.Parity.None, 8, Ports.StopBits.One)
Label1.Text = com1.BytesToWrite

[code]....

I thought putting it in a timer would keep checking the com port to see if there were any bytes to be written, but it always shows 0.

View 3 Replies

Figure Out The Relationship Between Three Classes?

Jul 13, 2009

I cannot figureout to which class ItemStatus should link to!please refer to my blog in the following link to detail description of the issue

View 2 Replies

Cannot Figure Out Why ArrayList.RemoveAt() Is Not Working?

Jul 28, 2011

I am currently using Florian Leitner's HID USB library in my VB.NET solution for communicating with a pin pad. As per his sample code, I set up an event handler to handle incoming responses from the device which are stored in an ArrayList called usbBuffer:

View 1 Replies

Cannot Get Hands On Save Code To Figure It Out?

Jun 1, 2010

I cannot get my hands on any "save" or "save as" code to figure it out, can anyone point me in the right direction?

usiing VisualStudio 2008 vb.net
Brenton W Garman

View 2 Replies

Communications :: Figure Out An ASCII Protocol?

Jul 20, 2010

I am trying to work out an ASCII protocol and I have managed to parse everything I need from the transmission, but have not been able to figure out bytes 14-17 and byte 20 of the response. Here is a transmission packet in Hex.

[Code]...

View 2 Replies

Figure Out The Time Between Timestamps And Then Average?

Dec 8, 2011

I need to figure out the time between timestamps and then average that time by the number of timestamps. Not sure how to go about this...

View 13 Replies

How To Do First Select Case Can Figure Rest Out

Feb 18, 2010

I found this code on here while doing a search and would like to be able to use it but it was written in C and I dont know much about that (don't know that much about VB.NET either but trying to learn)[code]What I do have is a text box where a user enteres a desired number of US dollars to convert to three types of currency.I know how to convert the string entered to an integer so the calculation can take place. What I don't know how to do is modify the above code so that the results will show up in the correct text boxes after each calculation (yes I know I have to convert the integer back to text).If someone could show me how to do the first Select Case I can figure the rest out.

View 12 Replies

Unable To Figure Out Regex Pattern

Oct 1, 2011

I have a string with some custom formula like FVAL("A")+FVAL(B). I want to figure out all string inside FVAL() which does not have quotes around it.

So basically I want to extract out B because it does not have quotes around it.

View 2 Replies







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