|
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.
|
|
|
|
|
|
I am using the ListView in detaisl mode has 6 columns, and able to add the rows (items) to it. Now I want search the column1 for the perticular text.
|
|
|
|
|
You really should read the full documentation for controls, before posting a question.
From MSDN: How to add Search Capabilities to a ListView[^].
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi,
I need some help in finding the best way to stream the content of an XML file to a HttpWebRequest. This needs to be streamed as the xml contains a Base64 Encoded zip file. The XML is encoded using UTF-8 if this makes a difference? Previously I was just using
byte[] byteData = Encoding.UTF8.GetBytes(requestInfo.XML);
but this was under some circumstances causing me a OutOfMemory exception. I cant send the actual file so cant stream the file. What is the best way to stream the UTF8 xml data to the HttpWebRequest.
Thanks
Stu
|
|
|
|
|
Hi
I am trying to get data from several dynamics datagridview. The grids are on a tabbed pages. I have set the form and the tab control to public
frmTeacherApp teachApp;
private void btnSave_Click(object sender, EventArgs e)
{
teachApp = new frmTeacherApp();
foreach (Control ctl in teachApp.Controls)
{
//Finding the datagridgrids from a global ArrayList i put the grid
//names in
}
}
but not work. Also try to put the grid into public System.ComponentModel.Container with same result.
Can someone help me?
Regards
Rune, Norway
|
|
|
|
|
If the DatagridView is bound and the "another form" opens from the form having these grids, you can send the datasource of the grids through a parameterized constructor.
|
|
|
|
|
The DataViewGrid is bound to a DataTable also generatet dynamically. I will try it. Thank you so fare
Rune
|
|
|
|
|
Greetings,
I am facing a problem with C#
I have a set of files that I want to replace any number that has -9999.**** (like -9999.1234 or any number that can be after the dot .) to be -9999.0000.
I have written a code that will put find any number that starts with -9999. However, I don't know how to replace it to be -9999.0000 . (the problem is finding and replacing the numbers after the . to be 0000)
If anybody can help me, that will be highly appreciated.
Thanks in advance.
Regards,
|
|
|
|
|
If you simply want to round nnn.xxx down to nnn.0, then you need to use Math.Floor. If that doesn't work then look at Math.Ceiling - I'm not certain which way round it works with negative numbers
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Thank you for your reply.
But what I am trying to say is that I have a text file that has many number that begins with (let say -9999.) and the numbers have four digits after (like 1234 [any four digital number]).
What I want to do is that to replace any number that is after the . (like in -9999.1234 [which will be 1234])to be -9999.0000 ( the four digital after the . to be 0000).
In short, search the file for -9999.**** to be replaced to -9999.0000
Note:
* means any number.
Regards,
|
|
|
|