|
Try doing a rebuild of your controls project
|
|
|
|
|
I have tried that but still nothing. Is the book correct in saying that studio should detect the the control or is there something I must do?
|
|
|
|
|
Yes it should detect your control, you might have missed something though, using the following steps worked fine for me
1. Create a new solution with a windows control library project
2. Add a windows application project to the solution
3. Build the solution
4. Open the designer for Form1 in the windows application project
5. Open the toolbox
6. There should be a new tab with the name of your controls project eg. WindowsControlLibrary1 Components
7. Under that tab there should be the user control that was created by default (UserControl1)
I have run into situations where this would stop working at random, if all else fails try creating a new solution
Oh and make sure to derive your control from System.Windows.Forms.Control, UserControl or another control and make your class public
|
|
|
|
|
I have tried that and it still doesn't work. I must have some quirk in my install.
I can get by with manually adding the control.
Thanks for your help.
|
|
|
|
|
I've tried to search the forums/articles for what I am looking for but was unable to find what I need. I am new to the site so if someone has a link to what I'm about to ask that would be great too.
As I am looking up OCR and other types of recognition I find that they go into great depth and complexity to account for the ever changing characters and/or images they will be trying to recognize. I need a very simple example of OCR as I only have 2 images that I will ever need to read.
Problem:
I have an old security system on our building in that when people come and go with their access card a message is displayed in the access programs status window. The window shows 1 of 2 images. A door open for exiting and a door closed for entering. Next to the picture is the name of the person. The problem is that this software does not log this information and after a set number of records the status window runs out of room and it is pushed off of the list.
What I need is to have some code that will scan the status window of this program which is always in the same place, recognize the icon and mark entering/exiting (the icon is always in the same place) and record the name that shows up next to it.
As stated in my introduction, most code I have found on this site goes into a lot of complexity or "neural networking". I think that based on the non-dynamic nature of my problem this would have to be easier to solve. Once I see an example of anything similar I can reconfigure it to my needs. I just don't know where to start.
Any help would be great and thank you all for your time.
|
|
|
|
|
Hi,
AFAIK you could get the text from any Control on any window by issuing some messages to that window; and you could get the image of the screen using Graphics.CopyFromScreen. Checking the color of one or a few pixels should be sufficient to decide which of two possible pictures is shown.
|
|
|
|
|
How do I determine the X/Y coords for use int he Graphics.CopyFromScreen?
|
|
|
|
|
Joorstard wrote: How do I determine the X/Y coords for use int he Graphics.CopyFromScreen?
Great question. How should I know, you can see the screen, I can't.
Would you dare copying the entire screen, see how that works out; then maybe reduce it to the
relevant part? Be adventurous, try a little experiment, instead of asking one question a week.
|
|
|
|
|
I'm sorry that your dad touching you when you were young has manifested itself today. Here is a website that can help you. http://www.notmyfamily.org/[^]
My prayers are with you.
|
|
|
|
|
If there is an onscreen output of the peoples names, there is most likely a data interface for logging, since the system has to store the names in order to bring them up.
There's probably a data port of some kind or a file system that can be scanned to get the information. An interface of some kind would be a better goal than trying to read the video output. The harder part might be if it's using some proprietary or obsolete data connection.
The true man wants two things: danger and play. For that reason he wants woman, as the most dangerous plaything.
|
|
|
|
|
Dear sir,
how can i generate phone ring sound? is it possible?? i am searching in google but i m not getting anything. do u have any idea.
i want to make a project to call pc to pc. whenever i press Call button ringing sound should come.
yogesh
|
|
|
|
|
Can't you just use the C:\WINDOWS\Media\ringin.wav file?
If it's copyrighted, just search around - there's plenty of free ones for mobile (cell) phone ringtones.
[Edit] There's one here[^] [/Edit]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
ok it is working but i dont want to play sound in any player. it should come automatically without use of any player.
yogesh
|
|
|
|
|
Be very careful.
I once programmed a 'ting' (just an imitation of a standard bell 0x07) in assembler, 2500 lines of code. What you are proposing is very complex, and C# is probably not the best language to use for it.
However, best of luck!
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.”
|
|
|
|
|
Use the System.Media.SoundPlayer class. If I remember correctly, it will just play the sound from your application - and I think it has a PlayLoop (or something like that) method.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi
i'm looking for any example or article about how to implement user-level security for mu application.
my app scenario is :
1. My app have some forms
2. Users & Roles can define in app
3. Each user must have a role
4. Each role must have it's security level (admin can select a role and give a appropriate right on selected objects(forms) to that role)
How to implement this ?
A Good Idea : if u familiar with SharePoint, u saw, even users can assign a permission just for an specific Item! but don't know how to that.
after a lot of search, i define some tables which represent in this image :
http://i44.tinypic.com/142v439.jpg
as u can see in that image, my tables are these :
Users : to define user
Roles : to define role
UserRoles : store relationship between Users and Roles (which user member of which role)
Rights : to define right (like Select,Insert,Update,Delete,Report, ...)
Objects : to hold all objects(can be include database objects or application objects) which must be assign security level to
Permissons : to hold which role on which object have which right.
and now, i want to display this form and table to user :
http://i42.tinypic.com/v75gzb.jpg
in the form, admin can select a role from comboBox and set appropriate permission to an specific object,
but i don't know how to query tables to display this table, and how to manage this data.
i think the database design is correct but getting query is main problem, i want to manage security levels like second image.
any help would be great appreciated.
|
|
|
|
|
This is fairly common. See[^] these links.
जय हिंद
|
|
|
|
|
Thanks d@nish
but most of those links, explains about .net security management and some other is old (not implement custom solution which save security data in database tables)
|
|
|
|
|
This[^] should work if you implement it into a Win Forms App
|
|
|
|
|
The asp.net has special functionality which does not provide in winForms.
i just confusing how to use those tables that i've designed in first post.
|
|
|
|
|
The only thing different in that example is the part about the cookie. In a winforms app you can connect to a database and read and write data and hash the password which is essentially the same. Correct me if I'm wrong.
It might not be the best of examples but it shows the principles
|
|
|
|
|
it was helpful but does not provide a solution for my issue.
|
|
|
|
|
hello all ,
i am creating a GUI based application in which i have forms.
and i want to use functionality of tab key by keyboards arrow keys.
so how can we do that .
please help me
thanks in advance to all of you.
|
|
|
|
|
Set focus on next control when user presses arrow key. You can find next control by properly setting tab index or tag property for each control.
जय हिंद
|
|
|
|
|
Hello friends..
I came accross a small problem. I need to draw something e.g. rectangles, circles, ellipses ,etc.
I read the articles and learnt how to draw them , but as we can see the rectangle with a broken border as in paint until and unless we release the mouse , I am unable to do such in my application...
Please help...
|
|
|
|