|
In theory, yes. Assuming that you've just got text, black on white ( or any other colors, the point is just that there is no noise ), this should be a relatively simple image processing task.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
could you point me to an example or a good reference for this kind of task??
Thanks
William O'Malley
|
|
|
|
|
I'd draw the alphabet on a bitmap, then I'd for each character, iterate through the bitmap and do a pixel by pixel comparison, keeping track of which bitmap has the least non matching pixels. My image processing articles will show you how to access the data of an image.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I have a C# program, which has two windows, the second is modeless, and when I create it, the parent loses keyboard focus. Try as I might, I can't seem to give input focus to this window programatically. My other problem is that my app sometimes pops up a window, which is set to centre on the parent, and sometimes it centres on the second window instead of the first. I presume if I can find a reliable way to set the focus, this problem will also go away.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Have you tried them all?
Select();<br />
Focus();<br />
Capture = true;
//probably more redundant stuff
Also did you add the modeless form to the parent as an owned form? how do you activate it? Show() / ShowDialog() ?
top secret xacc-ide 0.0.1
|
|
|
|
|
leppie wrote:
Select();
Focus();
Capture = true;
Didn't know about Capture = true, I'll try that, thanks. Tried the others.
leppie wrote:
Also did you add the modeless form to the parent as an owned form? how do you activate it? Show() / ShowDialog() ?
I'm not sure if I've made the modeless form a child of the main form, and I used Show. Surely ShowDialog would give me a modal form, or have I missed something ? ( Serious question, I'm pretty new at this WinForms stuff, I'm just trying to apply what I recall from MFC to how things work ).
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
This is just a comment Christian, That might be an Accessiblity problem.
MSDN Creating Accessible Windows Applications
Modeless forms are harder to program, because users can access them in an unpredictable order.
You have to keep the state of the application consistent no matter what the user does.
Displaying a modeless window that acquires the keyboard focus. Avoid this method when the user may be typing.
ProgLoad
|
|
|
|
|
In this case, it's a video jukebox program, and the second window is playing the video on a second monitor, so a modeless dialog that does not get the keyboard focus is precisely what I need. Also, I will eventually be using the parallel and serial ports for input from custom devices, so the keyboard focus is an issue mainly so the app is useable without those devices attached, although they usually will be.
Indeed, if you can tell me how to avoid my modeless window aquiring the keyboard focus, my problem will be solved
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I'm not sure how you would yet, but i'll kick it around,
in the mean time, I came across this.
A thread cannot use DestroyWindow to destroy a window created by a different thread.
Would running it in a seperate thread work for you.
Progload
|
|
|
|
|
progload wrote:
Would running it in a seperate thread work for you.
No, doesn't stop it getting the input focus. Thanks tho.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Christian,
I'll take another try at this, and it's just a theory at the moment, and I could be wrong, but if you get both window handles (your window handle, and the desktop handle), you could set your window's parent to the desktop.
Problem is I'm not exactly sure where the focus is going to go, as I haven't tested the idea.
[DllImport("USER32.DLL")]
private static extern IntPtr SetParent(
IntPtr hWndChild, // handle to window
IntPtr hWndNewParent // new parent window
);
Progload
|
|
|
|
|
Hey, that's a pretty cool idea, I might give that a go.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I can read variables with my C# asp.net app from the url, by going like this...
string temp=Response.QueryString[userid];
Now, how can I add vairables to the url?
I though it would be in the Request, but I couln't find anything...
/\ |_ E X E GG
|
|
|
|
|
You need to build a new URL and then redirect to it.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Does anyone know if its possible to hyperlink a ListView column in windows forms, not ASP???
I've found many articles on ASP, however I cannot find anything on Windows forms........
I would like to click on an IP in datacolumn that opens a web page (whois) at arin.net like:
http://ws.arin.net/cgi-bin/whois.pl?queryinput=120.210.120.100
I tried this code in the Listview click event handler
System.Diagnostics.Process.Start( "http://ws.arin.net/cgi-bin/whois.pl?queryinput= " & ListView1.SelectedItems(0).Text)
However, I receive the following error message when compiling in VS.NET C# and 'SelectedItems' is underlined...........
'System.Windows.Forms.ListView.SelectedItems' denotes a 'property' where a 'method' was expected
Helpppppppppppppppppppppp
|
|
|
|
|
|
That corrected the error and the hyperlink to the web site 'lookup' works great, thanks........
Q. How do I get an 'Underline' to appear in a listView colum??
As it is, any value in the column will hyperlink accordingly, however a user doesn't have a visual indicator that the values are actual hyperlinks....
|
|
|
|
|
kvnsdr wrote:
How do I get an 'Underline' to appear in a listView colum??
I think the hottrack property mite help, or HoverSelect (there is not much consistancy in SWF controls..., just look at MSDN)
top secret xacc-ide 0.0.1
|
|
|
|
|
kvnsdr wrote:
As it is, any value in the column will hyperlink accordingly, however a user doesn't have a visual indicator that the values are actual hyperlinks....
You can override the OnPaint method and use the Graphics object to draw the line.
- Nick Parker My Blog | My Articles
|
|
|
|
|
C# Disassembly 19:57 18 Aug '04
Could someone please provide a step by step protocol to view the C# disassembly code for c# "Hello World"?
Can I see the code w/ out fooling w/ the environment variables? No idea how add one anyway..Tried the "Inside C#" instructions several times, same error...
I'm using .NET 2003 and WindowsXP Pro.
thanks for your help- this thing is really ticking me off....
[Reply][Email][View Thread][Get Link] [Modify|Delete]
SkunkedWorks
|
|
|
|
|
|
Okay thanks...
But how do you "just run" ILDASM? What are the steps? Just run w/ what? How?
thanks....
|
|
|
|
|
ILDASM is a disassembler that comes with the .NET SDK. It is located in the Bin directory of your SDK install. If you have your environment variables set up correctly you could simply launch it from a command prompt.
- Nick Parker My Blog | My Articles
|
|
|
|
|
|
Hi,
Are there any Ganttchart control for .net CF, either
free or commercial component ? Or any articles on how to program
one in C#. Net CF ?
Thanks
Patrick
|
|
|
|