|
Hi all
if it intrests anyone..
the notification message that i was talking about was set with TopMost=true
this cause auto activation and force to get focus.
thats why it got some last focus.
why i did is overided the property ShowWithoutActivation
and everything start to work.
protected override bool ShowWithoutActivation
{
get
{
return true;
}
}
thanks man.
R.Z
|
|
|
|
|
how can I create an API file
|
|
|
|
|
|
Hi,
Do you mean to say Class Library ?
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
no,
I mean when my remarks in the code translate into one big file
|
|
|
|
|
Hi,
Are you talking about XML Documentation? Actually I am not getting your point / problem ?
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Open the properties of your VS project, select the second tab called build or similar (its named Erstellen in my german VS), scroll down to the output section and specify a path for the XML documentation file.
The following article may be of interest for you as it present a nice way to turn the XML file into a pretty API documentation. Sandcastle Help File Builder[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Newbie question here...
How to use SecondaryBuffer.Read(...)
to get filled buffer value ?
I got random exception when call it.
Thx..
>> Don't shoot I came in peace..
|
|
|
|
|
You need to provide more information before we can help you. What is SecondaryBuffer? What exception do you get when reading?
|
|
|
|
|
I used Managed DirectX, and use SecondaryBuffer in DirectSound namespace.
I think (maybe) it caused by start read position and length parameter that I pass in SecondaryBuffer.Read method.
Any resource on Web about this?
>> Don't shoot I came in peace..
|
|
|
|
|
Hi Guys,
In C# Is there any way to find a date (paterns: 01/11/2005, 1/2/06, etc) in a string or text file?
eg:
string transcation = "Transaction initiated on 3/5/2005 and approved on 12/09/2006";
Now i need to extract the dates from this string, no prior knowledge of what the string contains & the date format could be different.
Thanks
Mohan
|
|
|
|
|
Check out the System.Text.RegularExpression.Regex class. You can use regular expressions to find date patterns. For more information, see this article[^].
|
|
|
|
|
As Judah said, you can use a regular expression.
You have to decide what date formats you will accept, as there is no way that you can extinguish any possible date format.
For example a string like "Our quest began in the third day in the fourth month in the year of the lord 1623." is clearly a reference to an exact date, but it's rather hard to write a program that will recognise it.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks guys, it helped me.
Mohan
|
|
|
|
|
Hi,
I've written a few programs and have never come accross this before:
<br />
public Main()<br />
{<br />
InitializeComponent();<br />
bool startupCheckValue = true;<br />
startupCheckValue = checkCorrectDirectory();<br />
if (!startupCheckValue)<br />
{<br />
this.Close();<br />
Application.Exit();
}<br />
checkDBHasVersionControl();<br />
getDBVersionNumber();<br />
}<br />
When startupCheckValue returns false, the program executes this.Close as well as Application.Exit but it just keeps going!
I've stepped through it and can't see why the app doesn't exit
Help please!
Glen Harvy
|
|
|
|
|
I recall there are issues with exiting the program inside the constructor of a form.
Perhaps you could set a flag in your constructor when you need to exit. Then override OnLoad, and if the flag is true, try exiting there.
|
|
|
|
|
Use an else statement so that checkDBHasVersionControl() and getDBVersionNumber() only execute on success and don't continue to execute any more code on the thread.
|
|
|
|
|
Thanks for the pointers .
I solved the problem by completing the if .. else statement as follows:
bool startupCheckValue = true;<br />
startupCheckValue = checkCorrectDirectory();<br />
if (!startupCheckValue)<br />
{<br />
Application.Exit();<br />
}<br />
else<br />
{<br />
checkDBHasVersionControl();<br />
getDBVersionNumber();<br />
}
and moved it into the Form_OnLoad process.
Cheers ..
Glen Harvy
|
|
|
|
|
i posted about how to pass my parameter to Crystalreports and a person reply to me by this code :
crystalReport11.SetDataSource(MyDataSet);
crystalReport11.SetParameterValue("PrintDate1", "2006/05/07"); // this line that error occured
crystalReportViewer1.ReportSource = crystalReport11;
but the following error shown me :
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
how to solve my problem and pass my parameter to crystalreports ?
thanks
|
|
|
|
|
I was looking for an approach to repaint a rectangle included on top of a control in the paint event handler. The paint event handler normally paints the whole control. If there is a rectangle on top of the custom control in the paint event handler that changes based upon which background image is provided for the control, how could I repaint that rectangle?
With Amar's assistance I was able to create and retrieve an extended property for the customized user control. Thus, the background image can be changed. However, now I need the rectangle in the paint event handler to be forcibly repainted.
I tried the ctrl.Invalidate() and ctrl.Refresh() and ctrl.Update methods in the _ctrl_BackgroundImageChanged(object sender, EventArgs e) event handler, but these approaches did not work. Any suggestions on how to repaint the clientRectangle that was created in the _ctrl_Paint event handler from the _ctrl_BackgroundImageChanged event handler?
I even tried to do the following:
public static Rectangle clientRectangle
private static void _ctrl_BackgroundImageChanged(object sender, EventArgs e)
{
Control ctrl = ((Control)sender);
ctrl.Invalidate(clientRectangle, true);
ctrl.Update();
ctrl.Refresh();
}
How do I repaint the entire control and any rectangle objects attached to the control?
-- modified at 17:09 Saturday 11th November, 2006
|
|
|
|
|
i need to know how i should load from image then read text on image
SUMA
|
|
|
|
|
Do some earching on OCR solutions.
---
b { font-weight: normal; }
|
|
|
|
|
can u help me more i searched many time on ocr tech. but i dont know which dll files supporrt this feature could u help???
SUMA
|
|
|
|
|
On my first search attemt I found a few...
http://www.xtras.net/categories/OCR/
http://www.freedownloadscenter.com/Programming/Components_and_Libraries/OCR__Net_Components.html
http://sourceforge.net/projects/tesseract-ocr/
http://www.leadtools.com/SDK/Document/Document-Addon-OCR.htm
http://www.programurl.com/ocr-net-components.htm
http://asprise.com/product/ocr/selector.php
http://www.softplatz.com/Soft/Development/Components-Libraries/OCR-Net-Components.html
http://www.download3k.com/Software-Development/Components-Libraries/Download-OCR-.Net-Components.html
Oh, and by the way, "plz help" is a really useless subject. Try to write a more descriptive subject the next time.
---
b { font-weight: normal; }
|
|
|
|
|
thx alot for your reply by the way to ask help is not something bad , any one start from scratch,and i tried many subject b4 but no responsed
thx again and sorry if title bothered u.
SUMA
|
|
|
|