|
Eugene Ostroukhov wrote:
Does FCL contain any classes and methods to solve my problem ?
No. You need to write your own converter. Of course, there are many, many RTF->HTML converters available on the web, some even free. Search google and sourceforge for plenty of hits.
Any remotely useful information on my blog will be removed immediately. There are 10 kinds of people in the world. Those who have heard of the ubiquitous, overused, worn-out-like-an-old-shoe binary "joke" and those who haven't.
Judah Himango
|
|
|
|
|
Hello forum,
I want to display the input of a logfile in a textbox. The difficulty is that the logfile grows and the content of the textbox should also display the new entries in realtime. I do not want to read the whole content of the logfile and display it in the textbox. What I am looking for is to read the stream till "readline = null" and then try to read every x seconds from that position on.
Does anyone know if that is possible?
Thanks in advance,
MG
|
|
|
|
|
I would recommend the usage of the FileSystemWatcher class, so that you only re-read your log file when it has changed instead of every x seonds.
To prevent the reading of already retrieved text, store the Position property of your stream after every reading and then seek forward to this position when re-reading the log file.
www.troschuetz.de
|
|
|
|
|
|
|
hello,
i developped a web usercontrol and want to use it into a vb project, but nothing happens. actually i added the c# .ascx into the vb project (add existing item menu). in vb there is no code behind the user control.
how can i make this work ?
thanks
patrick
|
|
|
|
|
we want to do c projects.give me some ideas.
|
|
|
|
|
|
|
First of all, any questions about ASP.NET - despite the language unless it's truly a problem with using the language - belong in the ASP.NET forum.
Second, are you talking about using a C# control in a VB.NET project? It's simply a matter of referencing the assembly that defines the UserControl . When you compile C#, VB.NET, MC++ (well, mostly for .NET 1.0 and 1.1), or any other managed language that targets the CLI you get about the same output, and the output can be used by any other managed language. That's what the CLI (Common Language Infrastructure) is all about - hence the name. The CLR (Common Language Runtime) is Microsoft's implementation of the CLI.
If you're trying to reference a web UserControl in a Windows Forms application you can reference the class but it won't do you much good. A Windows Forms control draws to a device context while a web control renders HTML.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
i have a windows application in C#. in the windows form i have a toolbar which has a list of buttons in the form images selected from the image list.
how to do i write code for the seprate buttons.
this toolbar is similar to the toolbar of word where there is a open icon,save icon and on click performs some function
where can i write the code for the icons separately
i have the index of the button in the toolbar
plssss help
Sukanya
|
|
|
|
|
I'm afraid I don't understand what you're asking? Are you asking how you handle button clicks for each button? You don't. You handle the ToolBar.ButtonClick event, which passes a ToolBarButtonClickEventArgs , which contains the Button property that reference the ToolBarButton that was clicked.
If you read the documentation[^] for the ToolBarButton.ButtonClick event in the .NET Framework SDK you can see an example.
If this is not what you're asking about, please explain a little more clearly what you're trying to do.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hello, Sir and Madam
I have a TextBox that allow user enter a small source code
(
example:
.
.
.
int i, x;
if(i>2)
x=3;
return x;
.
.
.
}
please give me an idea how to compile the source code from user and get the return value from it.
Thank You.
Sorry for bad English
|
|
|
|
|
Ever tried to search CodeProject?
http://www.codeproject.com/info/search.asp?cats=2&cats=3&cats=4&cats=5&searchkw=compile+runtime&Submit1=Search&author=&sd=11%2F15%2F1999&ed=1%2F21%2F2005
|
|
|
|
|
Courtesy of the Clickety Cops[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Heyas All,
I'm trying to populate a listview control with data from a configuration file (xml). Here's what I have so far:
<code>
XmlTextReader configReader = new XmlTextReader("katalog.config");
configReader.WhitespaceHandling = WhitespaceHandling.None;
XmlDocument configDoc = new XmlDocument();
configDoc.Load(configReader);
configReader.Close();
XmlNode xnod = configDoc.DocumentElement;
String strValue = (String)xnod.Name;
if(strValue == "category")
ProgramCategoryListBox.Items.Add(strValue);
</code>
here is the configuration file:
<code>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<category>
Operating System
Productivity
Entertainment
Games
Misc
</category>
</configuration>
</code>
I need the Items under category listed in the listview.
Could anyone give me some help, or a hint, or anything?
Thanks
|
|
|
|
|
Hi!
Instead of testing an element's Name you could simply call configDoc.SelectSingleNode() to select the node you need.
Furthermore, instead of packing all ListBox items into a single node you could use a node for each entry and then use configDoc.SelectNodes() to find them.
Then you don't have to worry about how to split the string containing the items.
Your config file would look similar to this:
<configuration>
<category>Operating System</category>
<category>productivity</category>
<category>Entertainment</category>
<category>Games</category>
</configuration>
Regards,
mav
|
|
|
|
|
I am programming with C# and windows media encoder sdk.
Can XML be used to create an index for a video file?
Please help.
|
|
|
|
|
I am writing a utility that will interact with another piece of software (Civ III). What I am trying to do is to access the turn number from my application. However, I am having difficulty finding information on how to do this. Can anyone direct me to a good example of this, or have any suggestions?
Thanks.
edit: let me clarify, I need general information on accessing memory from another application, not on the specifics of Civ III.
|
|
|
|
|
Search the articles here on CodeProject for "minesweeper" and you'll find exactly what your looking for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you very much. This does look just like what I want.
|
|
|
|
|
hello
I supervise a team for developing software in c# and I always
worry some of my members may steal the code to modify part of them
and then to sell them as software components or as a complete program.
What measures could I take to prevent this ? We develop in a software
components approach to build up a large software.
|
|
|
|
|
I'd recommend hiring people you trust.
Either that, or don't allow any sort of internet access, and body/cavity search people every day for memory keys/floppy discs/etc.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
There is no way your going to prevent this. Even if you disable all the drives on each members computer, remove any Internet access these guys have, and confiscate all flash drives, I've can still think of about a half-dozen methods of getting the source files off of your network.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Oh, and just a FYI... cross-posting is considered rude.
Shog9
I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...
|
|
|
|