Writing A Varible To Hex
Apr 13, 2012
i have made a program that converts a number you put into a text field into hex What i now want to is to be able to write that variable into the file as hex still [code]if that worked that is what i want to do but it doesn't can you help me
View 12 Replies
ADVERTISEMENT
May 1, 2009
Im trying to do a loop between to timers. Im a complete beginer so there is probably better ways to do this so feel free to tell me so.when i click a button (text h is a hidden text box as i dont no how to use a the same varible twice so i store the number in a text box) laugh yes. [code]
View 1 Replies
Apr 8, 2009
If I have the Following Class Defitions [code] Will each Class Have it's Own Copy of Each Varible?
View 1 Replies
Apr 13, 2009
In the code below can I use the cmd for another sql command or do I have to create a new sql command like shown below?
View 2 Replies
Feb 22, 2011
i declared a class and i initialized the values of the class in FORM6. now i want to use the values of the variables in form6 into form3 how can i do this?
View 3 Replies
Oct 11, 2009
I am using Visual Basic 2008.I am trying to code a simple "show and hide" game where pictures are generated behind a buttonThese pictures need to be generated randomly from my resources. i have got as far as declaring the random number, but am having problems with using a image as avairible which can then be used in a picture box. i have tried "image" but i am having no luck!
View 4 Replies
Apr 3, 2010
How write folllowing into cmd schtasks /create /tn "savita"
Here savita is value in the textbox1, i dnt knw how to write " into cmd
View 1 Replies
Sep 7, 2009
It would be easy enough to make my own system for this, but I'm figuring that the .NET library, being as massive as it is, probably already has a class made for this very purpose.For hit detection, my VB.NET game uses two 2D arrays that store the state of each pixel in the level. Each element in these arrays is a Byte (or, more accurately, a value of a flag enumeration type based on Byte).
Public TiHD(,) As HitDT ''//State of each pixel in the level based on
''// its underlying tile.
Public SpHD(,) As HitDT ''//State of each pixel in the level based on[code].....
I would enjoy being able to just give each sprite & tile its own 2D array of hit detection data (defining which pixels of the object are solid, dangerous, etc) that can be directly written to TiHD or SpHD at a specified offset.I'm willing to bet that .NET has a class that can do this for me.Presumably I would just have to pass TiHD or SpHD to the constructor, and then I would be able to use the object to indirectly modify the array with extended functionality (similar to using a Graphics object to modify a Bitmap). Is there such a class?
View 2 Replies
Apr 18, 2009
I have a mail application. While sending to each recipient I am writing to an XML file named mail.xml. I use the following code:
Dim from As String = txtFrom.Text
Dim txto As String = txtTo.Text
Dim subj As String = txtSubject.Text
Dim body As String = txtBody.Text
[Code]...
View 3 Replies
Jun 21, 2010
I have been searching the net for information on backing up files to cd from vb.net application cannot find anything?
View 2 Replies
Mar 22, 2010
how to write such app? Or maybe knows some nice tutorial? I would like to use System.Net.PeerToPeer namespace, but everything I can find about it is MSDN which I can't read without getting mad. Or maybe using "old-school" TCP/IP would more efficient?
View 1 Replies
May 17, 2008
I am currently making an old school adventure game for a college project, it uses an Access database (dbGameStats) which has the primary key (gameStatsId) which is an auto number. The main form of the game holds the data bindings, dragged into text boxes, and the various screens of the game are shown over the top of the main form. So on the main form I have highscore and player name text boxes, bound to the corresponding database fields, when running the program, the user enters a name, the highscore field is altered as the game progresses and when the user exist the database is updated using this:
[Code]...
View 2 Replies
Sep 17, 2009
I have two files like this
File one
[2 11.63 39.7] X7.705 Y0.735 209.037
Open -209.037
18N694 P321 117461, 50374 100MIL;
[code]...
what i need to do is from file 1 let say my line is like this
[2 11.63 39.7] X7.705 Y0.735 209.037
Open -209.037
18N694 P321 117461, 50374 100MIL;
from the line i must take P321 and match with my File2 if i find the mathing line like this
12N709 11.3611 4.9474 P321 L6 BOTTOM 100MIL 43-CHISEL X11.3611Y4.9474 1922 0
then i must take the value beside P321 which is L6 and write it in my original file like this
[2 11.63 39.7] X7.705 Y0.735 209.037
Open -209.037
18N694 P321 117461, 50374 100MIL; L6
How we can do this. To get the P321 from my file 1 can i use regex pattern like this P*[0-9]. And how to match the regex pattern with file 2 write the content ?
View 1 Replies
Apr 2, 2010
my problem is how i can write this code
SCHTASKS /Create /S system /U domainuser /P password /SC MINUTE /MO 5 /TN rtest2 /TR calc.exe /ST 12:00:00 /SD 15/09/2001 /ED 15/09/2001 /RU runasuser /RP *
in .bat flle using vb.net2003?
View 2 Replies
Oct 4, 2008
This is my first post and I'm not sure if this is the best place for this but I hope so. I am currently making my own very basic mp3 player. I have set it up to import songs and load their ID3 tags into a DataGridView. My problem is that I want to save these to a XML file. I know that I can easily save a DataSet to XML but I'm not sure how to convert my DataGridView into a DataSet or if there is another way to save it as an XML file.
View 3 Replies
May 17, 2011
I want to write a line into a text/.cfg filethe line is = name "ishtiak"i need a sapce between name & "ishtiak"the text "ishtiak" is loading from a textbox called textbox1....i dont want in the text box my name like this "ishtiak" it will be withot "" like this ishtiakbut in the text file it will add "" before & after my nameso the question is1.how to add space between name & "ishtiak"? like this = name "ishtiak"2.My textbox text will be ishtiak,but it will be written like this "ishtiak"Here is My Project Screen & Project Code
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
[code].....
View 3 Replies
Jan 13, 2009
I am kinda a newbie to programming. I am looking to switch a KVM switch via a VB (express 2008) program.Which would require me to write {SCROLL LOCK}, {SCROLL LOCK}, and {UP ARROW} out of the PS/2 port (or out of a serial port). I have tried using the Keybd_event function, but this is apperently not what the KVM is looking for. Currently I have the PS/2 port hooked directly to the switching port of the KVM switch and an additional keyboard plugged in USB (the computer has found both ports).
View 1 Replies
May 20, 2009
I have information entered into a text box on an ASP.net 3.5 page. when i click the submit button i would like this information written to a sql server database. what I need to do to accomplish this. The end-user should not see anything.
I am using visual web developer 2008. the event handling code is placed in a separate file using vb.
View 5 Replies
Aug 12, 2009
i want to retrieved data from MS Access by select the date using date time picker. so my problem is how to write the sql statement.
My code is as below:
sql = "SELECT * FROM summary WHERE line = '" & cbLine.Text & "' AND date = '" & dtp.Text & "'AND plants = " & cbPlant.Text & ""
Mentor Edit:
View 1 Replies
Oct 24, 2009
I have an array that varries in number of values, depending on the information . I am trying to write the array values in a line in this format:Clients ("John,"Samantha","Joe")in this example I used Three values in the array, but in some senarios there might be more or less number of values.what would the best way to write this line in between brackets as I mentioned in the Eample.
View 4 Replies
Dec 23, 2010
Basically I want to write to a database, lets say called testdatabase, and I want to write to a table called dbo.Test_table, under three different colums named one two three. How do I go about this? I created a data set connection to the database but it sits on the right hand side with the other forms and I dont know how to use it or write to those colums in the tables.
View 3 Replies
Feb 17, 2010
Using vb.net asp.net 1.1 sql server 2005 I'm want to show content in a label. No need for binding just for show. I should know my way out of this but I'm having some trouble. I'm only displaying the last item in the label with this code below.
The XML:
<?xml version="1.0" encoding="utf-8" ?>
<Content xmlns="http://tempuri.org/Content.xsd">
<Item id="1">
[Code]....
View 1 Replies
Feb 20, 2010
I can't seem to write to my database. No errors came up These is my code and declarations
Imports System.Data
Imports System.Data.OleDb
Imports System.Net
Imports Microsoft.VisualBasic
Public Class frmChange
[Code]...
My mdb file has all the tables set. The database isn't being copied to the bin folder
View 4 Replies
Aug 21, 2009
I am throwing up my hands here a bit. I am long time VB programmer that "scuttled the ship" and moved to VB.NET recently. I have purchased a small fortune in some good books and read large swaths of them. I have also watched numerous online video, Beth Massi, etc. I have learned quite a bit. But I am really lost when it comes working with SQL Server. Do I use bound grids? Do I use datasets? Why would I not use a bindingset? How do I iterate over the retrieved dataset, the list seems to go on an on. It seems far to complicated to me. So here goes. I have a form to enter a vendors info into. I want to connect to the SQL server and grab various fields on the form and perform an Insert. Can somebody show me simple straight forward code to do this and why I would do it this way vs. the other seemingly million ways. Also how about an Update call to (modify an existing vendor, I have a unique id I can query on in the table)? I can put in all the error checking (Trys) and such - its the connection call and gory details of this that seem to perplex me. I have recipe books that spend to much time on more complex things. I need simple.Also can someone recommend a good classroom training series for VB.NET in the greater Boston area.Learning from experts in person is best for me. I will be back later to ask about datagrids some.
View 11 Replies
Jul 15, 2009
Okay im trying to write a TXT file, but also keep the contents already in the file.
For example
Before Program Run:
Sample123.txt reads:
[code].....
View 6 Replies
Jun 12, 2012
I am trying to wrote to the registry but it redirect to the wow6432node instead of where I want it, how do I fix this?
[Code]...
View 4 Replies
Mar 30, 2009
I'm starting to get into the microcontrollers and I was wondering if anyone had any experience using visual studio and/or visual basic writing drivers and application software for USB Devices and using different microcontrollers from Atmel and Microchip?
If you know of any good websites or anything out there that would get help get me started that would be great.
View 2 Replies
Jan 16, 2011
why this does not output any data to the xml file?
'this displays all records
Me.SQLString = New OleDbCommand("SELECT * FROM FlightDetails", DBConnection) ' WHERE FlightDetails.ReportNumber=BeforePushback.ReportNumber", DBConnection)
'establish data adapter/data table
[code]....
There is no exception or error thrown, the debugger just skips over it.The FlightDetailsTable contains data as it is bound to text boxes on my form. I just don't know why the data is not written as xml to the file.The file created contains this line '<?xml version="1.0" standalone="yes"?>' and that is all.
View 4 Replies
Nov 13, 2009
xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
[code]...
View 6 Replies
Jun 30, 2011
My application will creates an Excel from DB, creating an excel file takes few minutes of time and till that time the user dont want to wait for the excel to complete, he should start working with the application. Once the excel have been completed the appilcation should po-up message saying, 'Report Sucess'. can any one tell me how to do this, whtr background thread will help me in this ?
View 1 Replies