|
If you post the code maybe it will help us.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Imports System.Text
Dim myBytes() As Byte
myBytes = Encoding.UTF8.GetBytes("TESTSTRING")
Dim myStartBytes() As Byte = {255, 255, 255, 255}
I want the mystartbytes to be in mybytes(0,1,2,3) but not overwrite but to push in the value so the rest of the array is moved 4 steps.
Do you understand what i mean?... My brain has freezed up.... thanks for your help.
|
|
|
|
|
It seems that you need a different container, have a look to ArrayList class (that provides the Insert method as well the InsertRange ) on MSDN.
Hope that helps.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi again....
I got it workin but I'm note quite happy with my coding.... feels like alot of unnecessary steps just for combinding two arrays with a few bytes in it.
Dim myMessage As New ArrayList
Dim myByte() As Byte = {255, 255, 255, 255}
myMessage.AddRange(myByte)
myMessage.AddRange(Encoding.UTF8.GetBytes("rcon popeye status"))
myByte = myMessage.ToArray(GetType(Byte))
|
|
|
|
|
In .NET 2.0 this is 2 lines
Dim byteList As New List(Of Byte)(New Byte() {255, 255, 255, 255})
byteList.AddRange(UTF8.GetBytes("TESTSTRING")) Since in .NET 2.0 the List is Generic, you can use the ToArray Methohd to get a byte array of the byteList on the fly
Example:
Dim pass() as byte = byteList.ToArray Or even in method calls:
Dim writer As New BinaryWriter(New FileStream("C:\test.txt", FileMode.CreateNew))
writer.Write(byteList.ToArray)
|
|
|
|
|
Thank you guys, I'm forever gratefull.
|
|
|
|
|
i have made a form that user can inbut the server & password & userid
and it work
but i wont this form tho change the connection string one time and dosent apear evry time the program work
or this form apear at the setup of the program
please help me tanx
|
|
|
|
|
I can't understand the question - perhaps if you post some code ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
OP doesn't make any sense. I am guessing he wants to have something done at during setup of his app...
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
seman71 wrote: i wont this form tho change the connection string one time and dosent apear evry time
So get the information from the user once serialize it to the registry, ini file, or an XML file which ever you’re most comfortable with. On App start up, read the info try and connect, if the connection fails present the dialog to fetch the dB server information again, try connecting until it succeeds. Simple enough
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
|
Tab index is a property of each control. It doesn't need to be a strict 1,2,3,4 sequence, but it will run in numeric order, based on the values you provide, or the defaults.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks Graus
I accept you as it's not neccessary to be 1,2,3 ...
you can make any sequence , I'm allready make it but on run time when you press tab key you find that the order of it isn't as you have changed,,
I know as it's so simple thing , and I did it on some new application I found that it's working as good ,
but on my project some times I copy controls from one place to another and then delete some and reAdd some .. etc , then I go to reEnter the TabIndex as any ordered numbers , ,, on run time I found this problem only on my project , ,,, I'm using some controls of Devexpress's controls , I don't know it's my make any problems I don't know ,
I'm sorry for waste your time
jooooo
|
|
|
|
|
Is the TabStop property of those controls set to True?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Dave
all of them all , TabStop is False /
Really I'm confused ,
and sometimes I found some labels it's location is changed by itselfes , and also I found sometimes the text of labels is Null , really Why ????
I'm using some controls of Devexpress controls that someone give me a full version of it with crack , you see , Are this controls make aproblem on my project ??
I became don't know any thing !!!!!!!!!!!!
jooooo
|
|
|
|
|
kindman_nb wrote: all of them all , TabStop is False /
The Tab isn't going to go to that control if TabStop is false.
kindman_nb wrote: sometimes I found some labels it's location is changed by itselfes
Weird. Depending on the version of Visual Studio your using, try installing the latest service pack for it.
kindman_nb wrote: and also I found sometimes the text of labels is Null , really Why
The Text property can NEVER be Null (or Nothing in VB). It can, however, be an empty string (String.Empty).
kindman_nb wrote: I'm using some controls of Devexpress controls that someone give me a full version of it with crack , you see , Are this controls make aproblem on my project ??
Don't make me slap you silly. Here we are, a bunch of developers, who make a living off of writing code and selling it, and YOU and YOUR friends are stealing the very code people write to make a living. Sorry, all support for you ended right here until you go to DevExpress and pay for the package you stole. Then , you can talk to them about supporting the controls you bought.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi
At the first I'm using vb.net 2005 , I hope if any upgrading is allowed
Then second thing , thanks really thanks for all advices , and I considered you as my older brother who is steering me , but let me talking with you alone , and I hope you to be patient .
I'm a new programmer with vb.net , and I face a lot of troubles whose became easy after I know it , and I have many packages with vb6 , and I hate if anyone try to copy it without an authentication from me , then from here as I hate that all others are like me , then it isn't a straightness to copy any products of any one , really I feel with embarrassing
On few words I like to tell you some things
When you as a simple programmer want to design programs and sell it on a challenges life with high companies whose has the abilities of stuff programmers and money , what you can do on that life , the user when you try to show your products , he make comparison with others , then you found that you must use then high controls to give your program the magic touch, when you go to ask the price of it , that price is more than your ability ,
You found some friends add you all you products that you want and more ,
I will tell you a thing that you don't want to see , who makes the cracks ,,, they are members on your website , who is my friend which gave me this products , he is also a member of your website ,
I'd like to say that problem is widespread between the small programmers who don't have the ability to buy ,,,,
What I will do now to promise you to use the default controls of VB.Net , but I want to say a thing ,, the copy of VB.net I have get it free , the copy of WindowXP , Office XP , Adobe programs , Norton Programs and Macromedia programs …. Etc ,
Tell me are all programs on your PC is licensed ??? then if you have then you are like all computer users ,
My friend, who has the ability to buy all that products which is necessary , when you navigate on the web you will find that 99% of users on the world have a lot of programs without licenses ,
Dave Kreskowiak wrote: Don't make me slap you silly
From me to my brother the advice isn't as above ,
Are you with me
jooooo
|
|
|
|
|
kindman_nb wrote: Tell me are all programs on your PC is licensed ???
Yep. I have too much to loose if they're not. Spending the $600 on a library is a lot cheaper than $250,000 per incident if I'm caught.
Which brings me to the problem that you have. Sure, you can develope applications with a stolen library and sell them. But, if DevExpress finds out about it, they can sue you for, say $250,000, PER COPY of your application that you sold using their controls. They can also go after your customers for the same thing, who are then going to come after you to pay the bill.
Hmmm, $600 vs. potential say $1,000,000... The choice is pretty obvious to me.
The other side is that you're a small development house and can't afford the cost of the controls, so you have to make up for the "pretty controls" with higher quality, rock solid code and supieror support for your customers. THAT brings in the money to get the prettier controls. Even DevExpress had to start somewhere...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
The right is with you ...
I accept you on all words that you are said ...
Really thanks my brother ,
then you will continous to aid me , or
Dave Kreskowiak wrote: all support for you ended right here
;);)
jooooo
|
|
|
|
|
comment faire un etat avec crystal reports
|
|
|
|
|
This is an English-speaking forum. You might want to get someone to translate for you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
He's asking: "How to make a state with hook Crystal Reports".
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
MatrixCoder wrote: How to make a state with hook Crystal Reports
And that is supposed to be clearer? Even in English, it doesn't make any sense.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: MatrixCoder wrote:
How to make a state with hook Crystal Reports
And that is supposed to be clearer? Even in English, it doesn't make any sense.
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
Hi ,
how can I make the combobox read only,
You can make the DropDownStyle is DropDownList ,, it's true that it will be read only ,,, but the user can use the mouse or arrows to change it's value ,,
then i want to prevent the user from to change it's contents , and I dislike to make ComboBox disapled that it's becoming with gray color ,
any one can aid me ..
jooooo
|
|
|
|
|