|
Create a new array of the right size and copy the two arrays into place.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Array.Copy is what you need - something like
byte[] a = new byte[] { 0, 1, 2, 3 };
byte[] b = new byte[] { 4, 5, 6, 7 };
byte[] c = new byte[a.Length + b.Length];
Array.Copy(a, c, a.Length);
Array.Copy(b, 0, c, a.Length, b.Length);
foreach (byte item in c)
{
Console.WriteLine(item);
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
hi , i'm project tic tak toe by tree binary in ds
plz help me
|
|
|
|
|
Mostafa&Messi wrote: hi , i'm project tic tak toe by tree binary in ds
Good for you - I'm proud of you.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Read the sticky post on top of this forum. As shocking as it could be, we do not offer to do your homework here.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
Mostafa&Messi wrote: hi , i'm project tic tak toe by tree binary in ds
Weird name, dude. Good to meet you, I'm Christian
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
|
Damn - I'm looking for the "Great answer" link. Good answer just doesn't cut it here.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
*grin* I was surprised it was still open after two replies.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Mostafa&Messi wrote: tree binary
Nah, you need to go recursive.
|
|
|
|
|
Make that game three dimensional. Then you have twice the chance of getting help from someone here. You also have exactly the same chance of getting help from someone here
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Mostafa&Messi wrote: hi , i'm project tic tak toe by tree binary in ds
plz help me
So what's your problem then? It doesn't sound so bad!
|
|
|
|
|
Hi,
I want to get the text of an html page using a simple application in c#?
If there are nested elements
ie.,
<Table>
<TR>
<TD>ABC
</TD>
<TD>1
</TD>
</TR>
<TR>
<TD>XYZ
</TD>
<TD>2
</TD>
</TR>
</Table>
How can I get the text(bold) directly without using a foreach loop?
ie.,
<Table>
<TR>
<TD>Work
</TD>
<TD>1
</TD>
</TR>
<TR>
<TD>Cost
</TD>
<TD>2
</TD>
</TR>
</Table>
How can I change the ABC to Work and XYZ to Cost,
such that User should see directly the replaced text(i.e., Work and Cost instaed of ABC and XYZ).
|
|
|
|
|
I assume you have a web browser control you're working with. You can access the HTML from that control, and you can use all sorts of methods to change the HTML, from replacing the document with an edited one, to using the Document object to manipulate the HTML
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I use the Document object to manipulate HTML, but the thing is initially for a fraction of second the old(original) text is visible and then that is replaced by New text.
How to avoid this using delay in fraction of seconds.
I want the new text to be directly visible to user.
How to do this?
|
|
|
|
|
I would expect you cannot. A fraction of a second, that's the issue here ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Set it to invisible in the designer. Show it a second after "NavigateComplete", and the user won't see the data change during load
..or overlay it with a nice picturebox with a "Please hold, loading data" picture.
I are troll
|
|
|
|
|
I am using
item.SubItems.Add('\x6E'.ToString(), Color.FromArgb(row.DiaryActionRow.Color), diaryListView.BackColor, colorFont);
to display a coloured square within a listView column. It works fine, but now and then the listview displays a large red cross instead of the required columns and contents. Anyone know why this is please?
(I'm using VS8 to create the application)
|
|
|
|
|
I bet you are using a WinForm control, such as the System.Windows.Forms.ListView, is it?
In such case the red crass is a symptoms of an exception when painting... (in OnPaint, or in some native code for some build-in control)
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Is this fixable? It's driving the users nuts.
|
|
|
|
|
catch the exception, analyze it, fix it!
if it's your own control use a try/catch in OnPaint!
if it's a 3rd party control, mmh...handling of unhandled exception is a topic which change with every version of the .NET framework so it's hard to help with little detail you give.
but perhaps you might have some luck with:
System.Windows.Forms.Application.(
ThreadException
SetUNhandledExceptionMode
)
and/or
AppDomain.UnhandledException
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
If you want a red square, might just using a space with a back color of whatever you want, work better ? The other option is to owner draw the control, I guess,
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
is it "tongue in cheek" humor?
Note: it's not a question whether it's humor or not, but a question to check if I'm using the right expression!
(Still learning English, I am!)
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
i already send mail by programmatically(C#)but i cant receive mail.i am developing a software like Microsoft out look express.
Any help will be highly appreciated.
|
|
|
|