|
Hello Luc,
Thank you so much for your help. I was able to figure out what to do, the code I posted above was almost correct, I just forgot to set my processStartInfo.RedirectStandardOutput to false . Here's some fixes to the code I posted above:
<br />
using ( FileStream fileStream<br />
= new FileStream(e.FullPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite) )
{<br />
fileStream.Seek(_logFileLastReadPosition, SeekOrigin.Begin);<br />
<br />
TextReader reader = new StreamReader(fileStream);<br />
<br />
string line;<br />
while ( (line = reader.ReadLine()) != null )<br />
{<br />
PerformOutputAppended(this, new OutputEventArgs(line));<br />
}<br />
<br />
_logFileLastReadPosition = fileStream.Seek(0, SeekOrigin.End);<br />
<br />
reader.Close();<br />
fileStream.Close();<br />
}<br />
Comments/suggestions greatly appreciated. But this is already serving my needs.
Thanks again Luc!
~Rafferty
|
|
|
|
|
hi all,
I am trying to develop an application that contains a navigator panel. the panel is supposed to have a small size of width only 7 on the loading process.
when the mouse comes over the panel wich is this thin layer of width 7 the panel should grow to be in its normal size.
and when the mouse leaves the panel the panel should shrink again to be of width 7.
It is working very fine (using the mouse enter and mouse leave events) but only when the panel is empty and does not contin any button.
but when i fill it with buttons it is not working at all.
I think it is because when the button is added to the panel it takes part of the visible part of the panel so it will not through the events of mouse enter.
I tried to make the buttons' visible property to false when the panel is in the shrinking mode but this didn't give any result to.
i tried to work on the mouse enter and mouse leave events of the buttons and this didn't work too.
did anybody face a problem like this before.
if so plz give me a solution.
i will keep trying to work it out.
if i find the solution before u i will tell u about it.
thanks in advance,
|
|
|
|
|
Hi friends,
I have a panel in the MDI form and there are some controls in the panel .When I open MDIChild forms ,the forms go behind the panel.
I tried forms.BringtoFront()and panel.SendtoBack().But nothing works.
Then I set setchildIndex of panel to 0 but ,no improvement.
Is there any way to keep the panel always behind all the forms ?
If anybody can help me on this,please..
Thanks
|
|
|
|
|
Hello,
I think that not. The MDIChilds will ever go behind the panel. There are two ways of solving this:
- Docking the panel of the MDIParent on top(for example, if is smaller than the main form).
- Showing off the panel of the parent when MDIChilds are added(if the size is the same that the form).
|
|
|
|
|
I tried out your suggestions.I docked the panel on top of MDIForm,but then the child form started coming under the panel where I require it to come above the panel.
Sorry I didn't understand your second suggestion.If you intented to say to apply panel.show().It's always on that mode it does appear.I want child form.Show() happen effectively.
|
|
|
|
|
i have to do free from select operation in ms paint..can any one give an idea..
I did drawing the rectangle by taking maximum point and minimum point after that how to fill regions ..and how to get the path...
ravi
|
|
|
|
|
Hi all,
Can anyone tell me how to implement Voice Chat in C# .Net??
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
|
wrote: None
What do you want help with? You'll have to supply more information than "none".
|
|
|
|
|
|
I want to display 3 images in a single row of propertygrid.
Ex: Fruit - > |Image1 |Image2 |Image3 |
Hw can i display like that..
|
|
|
|
|
I have some questions about displaying jpeg 2000 files in C#.NET. It means I have a binary file which is in JPEG 2000 format. I want to display it in a picture box. Does C#.NET support it or not? Is any conversion needed?
Thanks in advance.
|
|
|
|
|
Hi All
Plz Help me
I am new to crystal Report and C#.net
In Last Couple of Day I am Batting with Following Problem , and Solution of this priblem is important for me
I am created crystal Report By using Command SQl ( by selecting ADD Command on the Database Expert-> Create new connection -> Add Command
I have two problem
1) If I Eable the Logon Promt (i.e EnableDatabaseLogonPrompt ="true" )
then following promt is display Before the Report View and Asked for the server passward if i enter passward then Report is Display otherwise not ( It's Happen 1 st time when aplication is run or Session is Exprire) the promt is given below in bold letter
The report you requested requires further information.
___________________________________________________________________
SERVER
Server name: Server
Database name: ERPDB
User name: sa
Password: --------
Use Integrated Security
2) If I disable the Logon promt (i.e EnableDatabaseLogonPrompt ="false")
then following Error Message is Display and Report Can not Display
Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user 'sa'. SQL State: 42000 Native Error: Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\SalaryReport {4244492D-0548-4110-AF32-9A9E5066CD0E}.rpt: Unable to connect: incorrect log on parameters.
My Actual problem to Display the Report Without Asking Server Passward to User Because User Don't Know the Server Passward
Please any one Help me
Thanks for Your Time
Anil Jagdale
|
|
|
|
|
Dont keep posting the SAME QUESTION again and again. If someone knew the answer they would have provided you with it.
Tarakeshwar Reddy
MCP, CCIE Q(R&S)
|
|
|
|
|
I am attempting to create a more efficient way to select data(like text). Before I used an index to the data that was stored in an array. I would have a separate collection or array that held the indexes of the data in another array. Each index in the "selection array" was selected. I think I have made a more efficient way to do that using two longs per selection, it does not matter how large the selection is, it will always be two longs.
void SelectData(long start, long end)
{
_selected.Add(new Range(start, end));
if (_selected.Count > 1)
RemoveRangeRedundancies();
}
void RemoveRangeRedundancies()
{
foreach (Range rr in _selected)
{
foreach (Range r in _selected)
{
if (rr == r) continue;
if (rr.MinValue >= r.MinValue && rr.MaxValue <= r.MaxValue)
{
_selected.Remove(rr);
continue;
}
if (rr.MinValue <= r.MinValue && rr.MaxValue >= r.MaxValue)
{
_selected.Remove(r);
continue;
}
if (rr.MinValue < r.MinValue && (rr.MaxValue >= r.MinValue - 1) && rr.MaxValue <= r.MaxValue)
{
Range newRange = new Range(rr.MinValue, r.MaxValue);
_selected.Remove(rr);
_selected.Remove(r);
_selected.Add(newRange);
continue;
}
if (rr.MinValue >= r.MinValue && (rr.MinValue <= r.MaxValue + 1) && rr.MaxValue > r.MaxValue)
{
Range newRange = new Range(r.MinValue, rr.MaxValue);
_selected.Remove(rr);
_selected.Remove(r);
_selected.Add(newRange);
continue;
}
}
}
}
Do you think that is a good design?
-- modified at 23:36 Tuesday 26th December, 2006
-- modified at 23:40 Tuesday 26th December, 2006
█▒▒▒▒▒██▒█▒██
█▒█████▒▒▒▒▒█
█▒██████▒█▒██
█▒█████▒▒▒▒▒█
█▒▒▒▒▒██▒█▒██
|
|
|
|
|
I can't seem to get my head around the following.
My Frequency class has two fields Data1 and Data2.
public static List<frequency> ColourFreqCollection = new List<frequency>();
ColourFreqCollection.Add(new Frequency(1,2));
ColourFreqCollection.Add(new Frequency(3,2));etc
Is it possible to now use the IndexOf method to look in the Frequency objects Data1 field and return the index if a particular number exists?
ColourFreqCollection.IndexOf(don't know what to put here! -look in object data1 field and return index if true);
Else what would be the best thing to do?
Thanks in advance for your help.
Haz
|
|
|
|
|
ColourFreqCollection.IndexOf(new Frequency(1,2));
That's all you can do, you don't have a reference to the object you're looking for.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
How to copy and paste a file.
Vasildb
|
|
|
|
|
|
Hi,
Im new to using NCover and NUnit and I have two questions I cant figure out.
I have a project which has 3 classes:
Currency.cs
CurrencyTests.cs
Program.cs
Its a console App. When I use NCover it only details coverage of code in Program.cs (the class with the Main() method). How can I look at the code coverage of the Currency class, or any other one I should add?
My second question is how to set NCover to run my tests, rather than just the main entry point of the program? I am building my tests in the same project.
Thank you in advance,
|
|
|
|
|
To run your test project from NCover you have to do some settings-
1-NCover does not run test cases it uses NUnit for it in your Test project go to -> properties->debug and set start up external project as nunit.exe ( give full path)
2- for command line argument write assembly name of your test project
e.g. testproject.dll
Now when u will run NCover it will start Nunit and Nunit will take your
assembly as project....
Try it
Ethan Hunt 008
"Licensed to Code"
10th Cloud Corp
Banglaore
India
|
|
|
|
|
How can i do check box tick box in .net? I think it is imposibble via using properties.
Thanks for your interesting
|
|
|
|
|
What do you want ? For a check box to show a tick ? You'll need to draw that yourself
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello;
I mean; is it possible to enlarge check box's tick box,
Thanks
Best Regards
|
|
|
|
|
How is this possible?
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
switch (e.CommandName)
{
case "1":
HiddenField n = (HiddenField)e.Item.FindControl("IDProizvoda");
break;
case "2":
n = (HiddenField)e.Item.FindControl("IDProizvoda");
break;
}
}
In Case"2" how can compiler know that n is HiddenField?
|
|
|
|