|
|
types a code ->select the database/dataset/datatable(This depends on your needs) to search you need->bind datagridview again.If you do not wish to refresh,you can use ajax.dll.
i am chinese,english is not my first language.so i can't speak in detail.Hope I express clearly
|
|
|
|
|
thanks for your reply.
are you sure u did understand my message ?
it could be grateful if you could help me in code style, im creating a windows application.
so much of happy ending...
|
|
|
|
|
when user types a code number in the code Column...... description and price is automatically displayed
let me see.yes ,i do not understand the message .
Two kinds of situations
1: add a new textbox to input the code ,when the textbox change,the information display in the datagridview.of course,you said you want search the datagridview,so the datagridview is be filled at firt.datagridview's datasource usuall is datatable .
you can write the code like this
DataTable dt = ds.Table[0];
DataView dv = dt.DefaultView;
dv.RowFilter = "ID = '"+textBox1.Text+"'";
dataGridView1.DataSource = dv;
2:I am a real jerk.I don't understand what you mean.If this is true.i am very sorry,but you could laugh whit me at my poor english.
|
|
|
|
|
hi bro.
you really got my point and you did exactly what i asked for . thanks.
But just one thing i needed is that i dont want a textbox. instead i want search data by using datagridview column which is the first column.
thanks
...................
so much of happy ending...
|
|
|
|
|
Hi
i've added some types to an external assembly as well, but it's original types overwritten. is there any way to add new types without overwrite it's original types ?
thanks in advance
|
|
|
|
|
i was developing an application that filters out web pages to privent users from viewing certain webpages. how can i make sure the process does not exit. even from task manager. i used another process that checks weather the process is still running and if not it will restart the application again but it creates delay. does any one have any idea how to do that
|
|
|
|
|
|
WATIF THE USER STOPS THE SERVICE. THE USER WILL HAVE ADMINISTRATIVE PRIVILAGE....
|
|
|
|
|
Then you can't do much operating client-side. If the user is an Administrator he can do pretty much anything he want with his machine.
If you want to forbid access to some URLs, I suggest you look using a proxy server application (such as websense).
P.S.: don't shout.
|
|
|
|
|
Well, preventing the privilegies of an admin ofdoesn't sound right.. Maybe you should move your URL-checking from the local machine? And please don't shout..
|
|
|
|
|
You can create Application or Service which you should start at windows logon.
Service is the best way to use it. Service have the facility to start automatically.
If you can think then I Can.
|
|
|
|
|
WATIF THE USER STOPS THE SERVICE. THE USER WILL HAVE ADMINISTRATIVE PRIVILAGE
|
|
|
|
|
Xelalem wrote: WATIF THE USER STOPS THE SERVICE.
Always remember, it's the user's PC. Why should your software prevent him/her from being in control of their own computing platform.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
this project is for univeristy computer lab.the users(students) may have administrative privilage but it's not their computer and they are not allowed to visit some websites. this websites are not blocked from the proxy server becouse staff members should access the websites...
I create another process that checks the webfilter is in the process list every minlisecond and if the process is not in the list it will restart the application again... idially it was suppose to work .. but sometimes the other process does not restart the application... do you 've any idea how to solve the problem
|
|
|
|
|
You need to apply an access policy at the proxy server, and maintaining a list of people who can see everything. As the students are admins on the client machines, they can stop whatever processes are running and therefore circumvent any security you put in place.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Yes off Cource User Can stop it if he have Administrator Privilages.
You can use Auto start in a Minute. if it is not a good way. then you can use driver Development.
If you can think then I Can.
|
|
|
|
|
If you've done what most people do when they don't understand the problem at hand, you've created an app that will only work with IE. Any other browser will be unaffected.
The proper way to do this would have been a proxy server that filters out URL's and will work with any browser.
|
|
|
|
|
it works with any browser
|
|
|
|
|
I said, IF, you did what most people do...
What is yours based on?
|
|
|
|
|
it extracts the title bar of any window and comapares each word with a black listed words. it's better than most webfilters. + you dont have to add every pornographic website in the black list. just the word porn or sex is enough to block almost all pornographic websites. + websites that opens another websites(like unblockanything.com) cant fool it...
Any ways i was thinking to disable rigedit,taskmgr,cmd,gpedit.msc and gain access again by entering password to the webfilter application... wat do you think
|
|
|
|
|
Xelalem wrote: + websites that opens another websites(like unblockanything.com) cant fool it...
Wanna bet? Since you just told me how it works, I can fool your app quite easily. I can the possibility of your algorithm closing windows that it shouldn't and not catching others that it should.
Xelalem wrote: Any ways i was thinking to disable rigedit,taskmgr,cmd,gpedit.msc
EASILY defeatable. These are things that are better handled by policy since the loader won't even start an application that's in the exception list. Your alogithm has to let the app start before you kill it, AND you also risk data loss by killing a process without exiting it gracefully.
The problem with black lists is that any technique dependant on them is following one of the 6 dubest ideas in computer security, "Enumeration of Badness". This means you're only catching stuff you know about. You're NOT catching the stuff you DON'T know about.
Password? I don't need a password to unlock this stuff. I can STILL kill your service whith all of the above tools disabled. Remember that "don't know about" part? Yeah...
Also, being a "web filter", disabling half the users system just to keep you filter running is hardly a viable concept. "I wanted something to filter bad websties and I got an application that won't allow me to do this, that, and these things either!" This alone will get your app uninstalled by just about every user who touches it.
|
|
|
|
|
There is no way to keep your process from being killed by Task Manager and no way to hide it.
|
|
|
|
|
wat if i enject my process as a thread to one of the system processes... will that work?
|
|
|
|
|
Nope. Managed code, C#, VB.NET, or any other language that targets the .NET CLR, cannot be injected into other processes, and you cannot inject code into the kernel.
|
|
|
|