What Does & H57 Represent And How To Translate It For C#

Jun 1, 2011

I'm trying to convert old VB.NET code into C# and I'm not sure about the current line and what it means really.

[Code]....

View 5 Replies


ADVERTISEMENT

How To Represent Unicode Chr Code

Jun 29, 2010

I know you can put unicode character codes in a VB.Net string like this: str = Chr(&H0030) & "More text"..I would like to know how I can put the char code right into the string literal so I can use unicode symbols from the designer view.

View 5 Replies

Represent Backspace In A String?

May 9, 2011

Below is the code I am using to restrict user from entering any other characters except for the predefined ones. But using my code I cannot hit backspace.

How to include backspace also ?

Dim s As String = "0123456789$"
If s.IndexOf(e.KeyChar) = -1 Then
e.Handled = True
End If

View 3 Replies

Store And Represent Data?

May 31, 2011

I'm creating a program that outputs Quotations (and other information relating to these 1. What is the BEST way to read/write from a database (I only really know how to use Access but if XML or SQL would be better, I'm willing to learn). The database needs to be stored and accessed from the same state every time that the program opens. I've tried multiple different ways, both through DataAdapters (in code) to doing it through connecting the database through the Visual Studio GUI. Neither have seemed to work. Other people have told me that using DataAdapters and such aren't the best way, but no one has been able to tell me what this 'best way' is. Also, I need to somehow be able to link pictures in the database - apparently it's not easy to do in SQL?[code]...

View 5 Replies

Convert Numeric Value To Represent 0 To 1024

Nov 19, 2010

I am reading a pot that has a range of 1000 to -887.I need to convert that numeric value to represent 0 to 1024Where 1000=0 and -887 = 1024.

View 4 Replies

Declare Textboxes Or Labels That Represent Them?

Oct 5, 2009

I have a parcel post assignment, and i have three textboxes that represent height, width, and length. here are my questions1. how do i decalre them as integer? do i decalre the textboxes or the labels that represent them?2. how do i multiply all three together and multiply the total by 4pence and add 20p?

View 6 Replies

How To Represent Data In A Tabular Format

Feb 8, 2012

i can retrieve the data from the DB and put it in a vector and then, vector in a JTable, to display data in a tabular format in java, all i wanted to know is there any similar way in vb dotnet?

View 4 Replies

Set Up A CLASS To Represent A Data Stream?

Apr 1, 2009

I'm trying to set up a CLASS to represent a data stream.This is a newbie question so if the answer is obvious, please excuse me.Several of the data items are multiples which I would normally represent as an Array element.For example, in the code below, the element SolarNameplate has up to 10 instances, so I'd like to use array notation.I get errors, and it doesn't work, so I assume I can't do it like below.

QUESTIONS : 1 - is it possible to use an array element in a class ?

2 - is there another way to achieve what I want ?

Public Class SM1PS01
Private _Projid As String '... name or number of project
Private _LogoFile As String '... file containing customer logo[code]...........

View 18 Replies

Use Pictureboxes To Represent A Variety Of Items?

Jan 14, 2011

I'm pondering a design that will require zooming. My intention was to use pictureboxes to represent a variety of items, and I have the code written to draw on those pictureboxes, as needed. However, there will be many pictureboxes on the form at any one time, though only a portion of them will be visible. That shouldn't be a problem, necessarily, as there isn't any issue with having controls that are not on the visible area of the screen. My issue is that when the user rolls the mouse wheel forward or back, the image will have to scroll in or out, which means that the location and size of the pictureboxes will have to scale relative to the point where the mouse is located.

Technically, this would be more easily accomplished using graphics directly, since I can use ScaleTransforms and...uh...one other, to do the scaling. However, I would prefer to stick with the pictureboxes because I will be doing lots of drag and drop work with them (dragging things into and out of them), and that code is already written. If I were to change that to use rectangles and circles drawn dynamically and scaled dynamically, I'd have to use some kind of hit testing to figure out which object I dragged or dropped onto, and where. Therefore, switching away from pictureboxes would require a fair amount of recoding. There really shouldn't be a problem scaling and translating the controls on the form, but rather than writing the math behind that, I was wondering if there were any built-in tools that will do it for me or will help with the process.

View 9 Replies

Variable To Represent Generic Dictionaries?

Mar 2, 2010

In a tic tac toe game I'm working on I have 2 dictionaries (plyrPairs and cmptrPairs) In the program there is a procedure that is used numerous times. The procedure varies with the dictionary that it calls. I'd like declare a variable in a sub procedure that will represent these two different dictionaries. Here is what I have:

Here are the two enumerations:

vb.net
' Assign values to player pairs enumeration
Private Enum plyrPairsList
empty = 0

[Code].....

View 5 Replies

Data Structure To Represent Bookable Timeslots

Apr 27, 2009

What suggestions do people have for a timeslot data structure? I have a number of activities and I'm planning to display them in a datagrid with days as columns and timeslots as rows. This suggests to me a timeslot data structure with 5 properties for the five days (the columns) for every value I want to use e.g. a timeslot ID and the number of slots left.

So.

Property Day1ID
Property Day1Slots
Property Day2ID
Property Day2Slots
Property Day3ID
Property Day4Slots
etc

Then each TimeSlot structure would be for a specific time. say 9:00 and another for each hour after that. Then I'd have a list of timeslot structures that will auto bind against the datagrid. I'm exploring new ground here and as you can see I'm not very clear on what/how to do it?

View 2 Replies

Each Button To Represent Numbers Like On A Calulator Of Keypad

Aug 10, 2009

I am creating a Point of Sale software for a small company I work for. I am a beginner with Visual Studio and have just stumbled my way around. I have completed the GUI and would like to start assigning code. The problem I am having is assigning numbers to a keypad on the screen. I would like each button to represent numbers like on a calulator of keypad. When these are pressed they need to input into TextBox2.

View 6 Replies

Handling Disconnects Of Hardware In Classes That Represent Them

Jan 26, 2010

I'm working in VB.Net developing data logging software. I've developed classes implementing a common interface that works with many of the data loggers my company produces. These classes handle the low-level hardware interfacing and expose common methods for accessing the data logger's records.

[Code]...

View 1 Replies

Hexadecimal - Parse The Byte And Represent It With Two Characters Instead Of One?

Mar 25, 2010

i am working with serial communication in vb.i need to know how to get &h1 to be &ho1 to represent the byte o1 in hex or 0000 0001 in binary.i cant remeber how to parse the byte and represent it with two characters instead of one.

View 8 Replies

Forms :: Creating Checkboxes In A Panel That Represent The Seats?

Jul 6, 2011

I have a theater seating project. I am creating checkboxes in a panel that represent the seats. Each of the rows has a label on it, giving it a row number.When a user clicks one of the check boxes, I need to be able to determine what row the seat was that they clicked on. I then use the row number to determine the price of the seat. I am stumped!! I can't seem to figure out how to get the row number associated with the seat. Here is my where I am configuring the seats:

Private Sub ConfigureSeating()
intTheaterID = CInt(frmTheaterTickets.cboTheater.SelectedItem)
Dim strSQL As String

[code].....

View 5 Replies

How To Format String To Represent Date In Specific Layout

Apr 28, 2009

I'm trying to format a string to represent a date in a specific format using the Format function but it's return odd results.
Here's an example:
Dim s as String = "01/01/2000"
Dim result as String = ""
result = Format(s, "dd-mmm-yyyy")
result equals "dd-mmm-yyyy" (the format string) very strange.

View 2 Replies

Make UserControls To Represent Components Of A Color Formula?

Mar 9, 2009

I have a TableLayoutPanel that is 1 column wide. In it, I make UserControls to represent components of a color formula.When a user chooses a formula on the left, I call "TableLayoutPanel.Controls.Clear" and then using the data from the formula, set the number of rows and create X many new user controls in a loop and TableLayoutPanel.Controls.Add them.

The problem is, if one keeps this screen open and selects through roughly 60 to 70 different formulas, eventually, without warning, the program will crash in an unhandled exception: Error creating window handle. (There is no debugger breakpoint)What's causing this? Is it a disposal problem? Should I be doing something other than TableLayoutPanel.Controls.Clear? Would you handle building the objects differently? I'm including a screenshot of the screen in question (you can see the usercontrols vertically on the right) and the error box that comes up.

View 1 Replies

Represent More Than One Value In Either A Variable Or Single Index Position Of An Array?

May 13, 2010

I have a very large number of tables with data in the following format:

A X Y Z
1 0-2 0-13 0-1
2 3-5 14 2-4
3 6-9 15-16 5-10

In other words, there is a variable (call it A) with a single value that corresponds to a range of values in the other variables (call them X, Y, and Z).My program needs to accept user text input of values of X, Y, Z, etc. and then match each to the corresponding value of A.Example: User enters 4 in the X text box; program determines that if X=4, A=2.Again, we're talking about tables and tables of data in this format. Unaware of a better method, I have been using arrays.

Example:

Dim a() as double = {1,1,1,2,2,2,3,3,3,3...}
Dim x() as double = {0,1,2,3,4,5,6,7,8,9,10...}

Note how I had to artificially deal with variable A so that the index of each score corresponds to the index of the matching X variable.It is this modification of the variables that is taking forever. There has to be a better way! Hypothetically, what I need is the ability to do something like this:

Dim a() as double = {1,2,3,4...}
dim x() as double = {0 to 2, 3 to 5, 6 to 9...}

Is there a way to represent a range of values at a single index of an array, such as my hypothetical example above? This would save me hours of re-shaping the data to make the arrays work.

View 6 Replies

Clone Icons In A Folder And Represent The Files In A Listview On A Form?

Jun 16, 2009

I have a program where I'm trying to clone icons in a folder and represent the files in a listview on a form. I've tried using msdn, google and F1 help to figure this out, but I don't seem to be getting it.Here's the code I have so far, but I'm getting error that object not set to an instance of the object.

[Code]...

View 1 Replies

Create A Virtual Piano Using Pictureboxes To Represent Keys That Play .wav File Versions Of Notes

Nov 5, 2011

I'm trying to create a virtual piano using pictureboxes to represent keys that play .wav file versions of notes. I've gotten this to work fine; however, I'm having trouble with two features I want to implement.The first feature is to be able to save what I play in a text file. I thought I could use this code but I'm getting an error. [code] The second feature is to play random keys using the random class. Is there any way I could store the pictureboxes in an array and then use the random class?

View 3 Replies

.net - Translate From C# To VB?

Mar 23, 2010

How do you convert the following c# code to vb.net?

[Code]...

View 3 Replies

Asp.net - How To Translate Into C#

May 5, 2012

I have found aa solution to a problem in one of my reports but its in VB.NET and I am not sure how to convert it to C#, I tried to do it online with one of the tools but it cant determine the events been used or something like that. If there is anyone savy at both languages maybe you can help me figure out its translation?

Here is the VB code:

Private Sub XrLabel1_BeforePrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs)
Handles XrLabel1.BeforePrint

CType(sender, XRLabel).Tag = GetCurrentColumnValue("ID")

[CODE]...

I tried to convert it on this site [URL]

THE ORIGINAL CODE IS FOUND HERE [URL]

View 2 Replies

Translate .net To Vb6?

Jul 8, 2009

How can i translate this code to vb6? i have already searched in google for translators, but with no success;.

Private Sub CallFunction()
If Me.bOn Then
Me.connectionString = String.Concat(New String() { "Server=", Me.strIP, ",1433;Network Library=DBMSSOCN;Database=rPTDB;UID=", Me.strUser, ";PWD=", Me.strPassword, ";" })

[code]....

View 24 Replies

Translate From C# To VB?

Oct 30, 2010

I have this little function for forcing a download of MP3 files. I have it integrated into my VB app but would like it to be converted from C# to VB so that I can use other functions in my APP_Code directory.

[code]...

View 4 Replies

How To Translate Eglish Into VB

Apr 11, 2012

Is there an English - Visual Basic dictionary thae translate my thoughts to code? I am taking courses at the local community college and having difficulty with this "foreign" language.

View 4 Replies

Translate C# To Program?

Jan 28, 2010

Translate c# to program?[cod]e...

View 1 Replies

Translate Code From Vb6.0 To .net?

Oct 12, 2010

I have found the following code which can get the harddisk no in VB6.0.I would like to translate it into vb.net code.I have tried the auto upgrade function in vb2005 and translated the following code to vb.net, but the outcome did not run probably.Can anyone give me some help to translate the following VB6.0 code into vb.net code?

[Code]...

View 2 Replies

Translate For Loop Vb To C#?

Oct 26, 2011

I am currently trying to use a vb function in c#, i have to translate the following from vb to c#:

For index = LBound(CollectionChannelPanel.EkItems) To UBound(CollectionChannelPanel.EkItems)

View 2 Replies

Translate The Following Code To VB

Mar 11, 2009

I need a hand with something i need to translate the following code to VB...

[Code]...

im having some difficutly with syntax etc.

View 5 Replies

Translate The Snippet To VB?

Feb 1, 2010

I am looking at this blog, and I am trying to translate the snippet to VB.

I'm having difficulties with this line:

NotifyCollectionChangedEventHandler handlers = this.CollectionChanged;

NOTE: CollectionChanged is an event of this ('this' is an override of ObservableCollection<T>).

View 3 Replies







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