I've tryed to handle drawing, but it draws all control and I need one item (
Karavaev Denis
Posts
-
Checkedlistbox, different font (style) for each item? -
Checkedlistbox, different font (style) for each item?Hello, everyone. A little help needed ) Is there any posibility to use different font style for different items in checkedlistbox? For example, if I want to strike item if it's checked? Can't find how to do that with standart checkedlistbox ( Thanks,
-
ssh & C#Can anyone help me to realyse ssh2 on c#? Any links? Thanks ===================== http://wasp.elcat.kg
-
C# & XML should take the blue pill ;-)Try this: http://www.codeproject.com/csharp/app\_config.asp ===================== http://wasp.elcat.kg
-
xor strings??Ok, is there any other simple way to encode\decode some string? ===================== http://wasp.elcat.kg
-
xor strings??string txt1 = "some_text"; string txt2 = "anything_else"; ASCIIEncoding enc = new ASCIIEncoding(); ASCIIEncoding enc2 = new ASCIIEncoding(); byte[] kb1 = enc.GetBytes(txt1); byte[] kb2 = enc2.GetBytes(txt2); MessageBox.Show(kb1 ^ kb2); Operator '^' cannot be applied to operands of type 'byte[]' and 'byte[]' damm, what I did wrong? ===================== http://wasp.elcat.kg
-
xor strings??How to make simple xor in C#? ===================== http://wasp.elcat.kg
-
who to get window directory path programatically?Try this: FileInfo file = new FileInfo(Environment.CurrentDirectory); all the best, ===================== http://wasp.elcat.kg
-
Again dialog ... :(Yah!!! thanks, Nice idea to lock button till text is empty! ;) ===================== http://wasp.elcat.kg
-
Again dialog ... :(I deed, but it, not working. I have modal dialog. And it's closing even if i put 'return'. Maybe it is becourse I click on button with 'OK' dialog properties? But is it only way to get response from my Modal dialog? ===================== http://wasp.elcat.kg
-
TransparencySubject. ===================== http://wasp.elcat.kg
-
Again dialog ... :(Ok, thanks everyone, but I have one more question. To gett callback of my modal dialog I use this code: ModalDlgClass myDlg = new ModalDlgClass(); if(myDlg.ShowDialog() == DialogResult.OK) { //Do smf. } But in the modal dialog there is a small problem ... I need to check something before close it. if(textBox1.Text.Length == 0) { //cheking and need returf focus to modal dialog } else { //do smf else, then this.Close(); // I need 2 close it ONLY if textBox1 is not emty } But if my textBox1 is empty after checking modal dialog is closing ... is there any way not to close it? thanks ===================== http://wasp.elcat.kg
-
How do i find if user clik "ok" on my Modal Dialog?OK, it works, thanks. But it I need to get some data from my modal dialog? If I'm typing some string and after closing dialog i need to add this string into my listbox on main window? ===================== http://wasp.elcat.kg
-
.INI file usage in C#Try to use this code in your app. //////////////////////////////////////////////////// public class IniFile { public string path; [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section,string key,string val,string filePath); [DllImport("kernel32")] private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath); public IniFile(string INIPath) { path = INIPath; } public void IniWriteValue(string Section,string Key,string Value) { WritePrivateProfileString(Section,Key,Value,this.path); } public string IniReadValue(string Section,string Key) { StringBuilder temp = new StringBuilder(255); int i = GetPrivateProfileString(Section,Key,"",temp,255,this.path); return temp.ToString(); } } ===================== http://wasp.elcat.kg
-
How do i find if user clik "ok" on my Modal Dialog?Or how to return parametr to main wnd, when my modal dialog is closing?
-
Update DialogCan I use standart: CMainDlg: CListBox list; CModalDlg: CMainDlg* mDl mDl->list.AddString("blablabla"); ?? such thing make no errors, but didn't work ...
-
Update DialogHi everyone. I have Dialog based app with listbox on it. In the second modal dialog i'm entering some data to editbox. Can anybody show me how to add string with text from editbox(from modal dlg) to the lisbox on main dlg? Thanks.
-
Read sections names from INI file. problem.Oh .. sorry .. I'll tryed to parse file as you said ... it works well. Thanks.
-
Read sections names from INI file. problem.Can you read? I need numbers and names of the INI. I can't find the way to do it with your class.
-
Read sections names from INI file. problem.Thanks