|
Hello!
I've got a main dialog with two splitters. The problem is that after opening and closing a sub-dialog, one of the splitters gets the focus.
Before opening a sub-dialog: Screenshot[^]. After closing the dialog: Screenshot[^].
How can I avoid that the splitter gets the focus?
Best regards
Dominik
|
|
|
|
|
Hi
set the canFocus Property to false, the splitter shouldn't get the focus then
greets
m@u
|
|
|
|
|
Hehe, tried that already Unfortunately, the CanFocus property is read-only. You also cannot override it in a derived class
Another idea?
|
|
|
|
|
well what you could try in a derived class would be the setStyle method:
<br />
public class myFocusAvoidingSplitter:Splitter<br />
{<br />
public myFocusAvoidingSplitter()<br />
{<br />
SetStyle(ControlStyles.Selectable,false);<br />
}<br />
}<br />
hope that helps
greets
m@u
|
|
|
|
|
Thanks for the tip! The splitter doesn't get the focus any more after the sub-dialog is closed.
One problem remains, though. When clicking the splitter with the left mouse, it appears like this: Screenshot[^].
But I guess this can be solved somehow by handling the mouse events. Thanks a lot again!
|
|
|
|
|
Hi ,
Please give me some guidance.How can we extract characters from image(which is in JPEG format) using image processing algorithms and how to remove noise from image. Could u please tell us how to proceed to reach our requirement.
|
|
|
|
|
i smell something fishy...
I am a SysAdmin, I battle my own daemons.
|
|
|
|
|
|
JanapatiBalu wrote: Please give me some guidance.How can we extract characters from image
Using OCR.
JanapatiBalu wrote: which is in JPEG format
You can't do anything with the compressed file. You have to open the file so that you get the uncompressed data.
JanapatiBalu wrote: and how to remove noise from image
That can be done using the same technique as programs like Raw image converters and Neat Image uses. I doubt that it will remove the kind of noise that you are trying to remove, though.
JanapatiBalu wrote: Could u please tell us how to proceed to reach our requirement.
Build a program that noone in the world has managed to build so far.
I guess it would be much easier to build a clone of the system that you are trying to hack into, than it is to build the program that would hack into it.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: Build a program that noone in the world has managed to build so far.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
I have one Dropdownlist and one listbox. Dropdownlist contains all doctor names and listbox contains specializations.
I have 3 tables (Doctor,DSpecialization and DSpecializationDetails)
DSpecializationDetails-(DoctorId(PK) and DSpecializationId(PK))
Doctor - (DoctorId(PK),DoctorName)
DSpecialization-(DSpecializationId(PK), specializations)
One Doctor could have many Specializations
I want the user to be able to choose 1 or many specializations,
and insert the selections into a table called DSpecializationDetails.
I’m working with Asp.net and C#
Thanks for any help.
|
|
|
|
|
Hi
How to fill a picture box by using RGB colors
thanx in advance
KK
|
|
|
|
|
Hi,
U can fill the picturebox by setting the BackGround Color property. Use this ode
pictureBox1.BackColor = Color.FromArgb(30, 100, 120);
If u don't want to use the background property You can also create a new bitmap, draw a rectangle, fill the rectangle with a color and set the bitamp as image of the picture box.
HTH
|
|
|
|
|
|
What?
If you want us to help you you'll have to learn to describe the problem in a way understandable for others...
How about some code?
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi
I developed a Windows Application. Now I want to run it as a windows Service . Is there any facility or statements(code) to run the application as a service.
Please tell me.
Thanks in Advance.
Ramu Medida
|
|
|
|
|
Hi,
Windows service dosent have a GUI. So if you want to run Windows application as windows service there are 2 ways of doing it ( atleast, i know this much only )
1) Create a new windows service. copy all code from windows application to the newly create service (without any GUI related code, but satisfying the business logic). Install the service. Run it.
2) Just hide the windows application to a tray icon. In this way, you dont need to copy code. But then the application itself should be bbuilt in such a way that it dosent get stuck for user interaction for its process to continue, but when interrupted, should respond to the user.
I dont know why you want to shift from windows application to windows service. if you could specify some details, then it would be easier to give some specific advice.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
help me by suggesting a good/moderate Encryption method for XML file,
please suggest me a methodology, where in which i can secure my data
of xml file.
please help me how to encrypt and decrypt too, i am using C#,WindowsApplication(VS2005)
Here i need to store the data in ENCRYPTED way to the XML FILE, and then have to decrypt later when using...
please help me with a sample,
thnx in advance,
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
Hi,
You want the complete XML File to be encrypted or you want some data in the XML file be stored in encrypted format ?
This link[^] might be of your interest.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
sir i want to encrypt both the XML structure and the data that i'll pass in to it.
please give me a sample application, so that i can understand the encryption and decryption,
i've gone throwgh the msdn link, even then i request u for a better sample.
i new to this xml encryption and decryption method, Please help me...
thnx in advance,
prashanth
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
|
Why do you need the data encrypted? Unless you are storing sensitive data, you shouldn't need to encrypt the file.
If you are trying to make sure that no one has changed anything in the file, you can use Signed XML instead. Take a look at http://msdn2.microsoft.com/en-us/library/system.security.cryptography.xml.signedxml(VS.80).aspx[^] for more information.
The big disadvantage to encryption is that it becomes a real pain to debug.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hi, Mr.
thnx first,
i'll explain u why i need to Encrypt.
its just becoz in my widows application , where the backend db is XML..(which is tourchering me alot),
i've to Encrypt the XML File,(i've to ENCRYPT THE FILE AS SUCH) and decrypt at recieving end..
so, please help me with a C#, sample how to ENCRYPT AND DECRYPT A XMLFILE.
thnx and regards,
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
If you are using the XML as a backend database, you are going to run in to a lot of problems. You should really look at using an actual database engine for this. If you need something that is embedded in your application, look at SQL Server 2005 Compact Edition[^], which will give you an embedded database engine.
If you absolutely must use XML and encrypt the entire file, the easiest way will be to treat the XML as a string. You can then use any of the built-in encryption classes in the System.Security.Cryptography namespace.
Essentially, you would want to read the encrypted file from disk and decrypt it into a string, then use that string in the LoadXml method of an XmlDocument . Decrypting would be similar, but you would use the OuterXml property on the XmlDocument to get the XML as a string, encrypt that string and then write it to a file on disk.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
hi
I need the C# code for the following:
I am using windows OS.
1)How to get the details of a machine, if we know the machine name or IP address
Details include : BIOS version, boot time, name of user who has logged in, hard disk drive(size of each partition), model of the machine, CPU(processor details), OS Version, network cards, etc.
2)How to detect the softwares installed and their version. This means where the keys are added in the registry and how to get it back?
3)How to detect the various hardwares installed or plugged into a machine?
I know all these are related to Registry.
Please give a detailed reply, ASAP.
Thanks,
SYAMLAL
|
|
|
|