I'm a little confused as to bytes.
I can open a file in a hex editor and know that each 2 digits is a byte, they are 8 digits in binary correct?
How are they stored in arrays in VB.NET?
So if I have
Dim xx() as byte =
What would I put after the equals? The hex digits from the hex editor?
(This is just a program I'm not going to save,...
I need an array and each item in the array is an array of bytes like this , but I'm not sure how to do the :
Dim xx as array
xx(0) *as byte* = {&H12, &HFF}
xx(1) *as byte* = {&H45, &HFE}
...
There are these 19 bytes (I am looking for combinations not the number of combinations)
17 00 00 00 A4 EA DB 13 02 00 00 00 00 00 00 A3 D3 02 CC
I need any possible unique combination which matches these "rules":
at least 4 bytes long
the order of the bytes can't change(so 17 A3 D3 02 CC is ok but A3 D3 02 CC 17 isn't, because
in th...
I have a table with a Int PK column and a name. I want to load them into an object of some sort and return them using Json() ActionResult in MVC 2. I am having a hard time finding a built-in structure that is supported for serialization that keeps a simple key/value structure in tact.
Ultimately I would like to do something like:
...
This is a program in vb.net, but I'm planning to use an outside process by using system.diagnostics.process.start("C:\Otherprogram.exe")
Now what I want to do is to resize the default size of window of outside process, can I do that?So that only the things that will be needed by the user can be seen?
...
Is it possible to make an operating system using VB.NET?
...
I have a product class which contains 11 public fields.
ProductId
ShortTitle
LongTitle
Description
Price
Length
Width
Depth
Material
Img
Colors
Pattern
The number of fields may grow with attributes for more specific product tyes. The description may contain a large amount of data.
I want to create a slim version of this product cla...
Hey, how this is written in VB.NET? This was an example I found on http://www.codeproject.com/KB/silverlight/SynchronousSilverlight.aspx.
ThreadPool.QueueUserWorkItem(delegate
{
var channelFactory = new ChannelFactory<ISimpleService>("*");
var simpleService = channelFactory.CreateChannel();
var asyncResult = simpleService.BeginGetGre...
For example currently, the value is set with lblAmount.Text = Amount & " €"
How can i add (dynamically) superscript to the € sign?
...
Hi,
I am using the below code to find all the items in a listbox using vb.net 2005. But how can remove the non searched items from the listbox after searching?
EDIT : I included the entire code
Imports System.IO
Public Class Form1
Public Sub New()
InitializeComponent()
ListBox1.SelectionMode = SelectionMode.Mu...
I wanted to make a vb.net version of this trick used to hide files in pictures:
http://www.online-tech-tips.com/computer-tips/hide-file-in-picture/
I don't have any idea on how to do this, but first is it possible?
In my mind I have to use an open file dialog box to do this.
...
After getting the file name I create a new filestream and load all the bytes from the FileStream into a byte array, now I need to get certain bytes and store them in fields like the second 4 bytes are the time the file was created. When storing these in the variables should I store them as bytes or as string/integers/etc.
Or have I done...
I have a byte array containing bytes from a file(see my last question)
now I want to get the second lot of 4 bytes from the array and convert them to an integer
something like bytearray.get(4[start],4[length])
...
I have a byte array and I need to get 4 bytes from it at a certain location(16) but I don't want to convert it to a integer or anything just keep it as 4 bytes to store in a variable.
(I am sorry if this is too similar to my last question)
...
I have a data structure (which is a class) called user_class and I want to load all the users data from a database.
Currently I have
While SQLreader.Read()
Hold_user.username = SQLreader(0)
Hold_user.BlahBlahBlah = SQLreader(1)
Hold_user.Secret_Password = SQLreader(2)
return_value.Add(Hold_us...
As the title says how can I store a hexadecimal number in a variable without it becoming a decimal. Or do I have to store it as either a string or integer?
...
I have an array (Items) which holds lots of instances of a class (Item).
Item has 2 properties, a Group and an ID.
there may be more than Item in the array(Items) that have the same Group and ID properties.
How do I "search"/get the first Item which matches a specified Group and/or ID
Something like:
Item.getbygroup([group]) which re...
I have a program that allows a user to type java code into a rich text box and then compile it using the java compiler. Whenever I try to compile the code that I have written I get an error that says that I have an illegal character at the beginning of my code that is not there. This is the error the compiler is giving me:
C:\Users\Trav...
Sup Guys,
I Have a Function on my frmMain Class wich will update my control to something else after an invoke. When i type "?Label1.Text" on the Immediate Window, the text property IS updated, but when i go check the Form, nothing happened. The code is just like this
Public Sub UpdateUI()
If (Me.InvokeRequired = True) Then
...
Is it possible to make an vb.net application portable?
...