blah blah blah is here! blah blah » Close

0
votes
1 answers

how to get the file name from copy file dialog?

AK01
15

hi! I have an issue with copying and moving files using standart Windows dialogs. here is snippet: [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using ...

0
votes
0 answers

ComboBox filtering

AK01
15

Hi! The question is quite straight - is there a way to filter data based on input. Sure, there is a handy autocompletion feature, but I'd like to filter it like in tables since you have to type the ListItems starting exactly with first le ...

0
votes
1 answers

singletone issue

AK01
15

Hi! I have a static class: [code]public static class OptionsSC { static private long _FS; static public long FS { get { return _FS; } ...

0
votes
1 answers

canceling Background Worker

AK01
15

Hi! I have an issue with stopping BGW job. here is the snippet: [code] private void InitBGWorker() { OptionsSC.Playing = true; bgwTrackPos.DoWork += bw_DoWork; bgwTrackPos.WorkerReport ...

0
votes
0 answers

Global Hotkey

AK01
15

Hi! I know for that it's impossible to catch the GH in console applications. But is it possible with services? I.e. I'll make a windows service which will respond each time I press certain combination.

0
votes
1 answers

flashing red sign

AK01
15

Hi! I remember couple years ago I used some kind of component which was validating user input. It looked like a red sign that appeared next to a textbox (or other control) if user did something wrong and I did want to show him this. Damn, I ...

0
votes
1 answers

What's the difference?

AK01
15

first [code]foreach (DataRow row in Table01.Rows) { int count = row.Field<int>(0); string name = row.Field<string>(1); } [/code] second [code]foreach (DataRow row in Table01.Rows) { int ...

0
votes
1 answers

restore an xml file

AK01
15

Hi! I would like to know if it's possible to have an xml file as part of an app's resources? the thing is when my app starts it checks if certain file exists. And if not - then create that file at the specific location. So I want this fil ...

0
votes
1 answers

subtracting arrays

AK01
15

Hi there! Here is the snippet: [code]// Get a list of invalid path characters. char[] invalidPathChars = Path.GetInvalidPathChars(); // Get a list of invalid file characters. char[] invalidFileChars = Path.GetInvalidFileNameChars() ...

0
votes
1 answers

LastRow in DataGrid

AK01
15

Hi! I have an XML file: [code] <Paths> <Name>Total Commander</Name> <Path>C:\Programs\TC\TC.exe</Path> </Paths>[/code] I load this into DataGrid via DataSet and it works just fine. T ...

0
votes
1 answers

Encoding issue

AK01
15

Hi! My app sends search queries into the Opera. Sometimes if there are special symbols like "&" I have to do the following: [code] string searchQ = label1.Text.Replace("&", "%26"); Process.Start(@&qu ...

0
votes
3 answers

TextBox updates

AK01
15

Hi! i don't know if that's a feature... but the thing is that as I click rows in a ListView the corresponding updates of TextBoxes go a bit slow. Here is that I mean: 1. I have a Listbox with 2 columns 2. I have 2 Textboxes which filled ...

0
votes
1 answers

Alt + Click label

AK01
15

Hi! Is there a way to track that down? I ran across some code which deals with importing function from user library: [DllImport("User32.dll")]private static extern short GetAsyncKeyState(Keys vKey); and the use of it loo ...

0
votes
1 answers

DataTable sorting question

AK01
15

Hi! Is there a way to move all DataRows with State = Deleted to the end of the table?

0
votes
2 answers

How to sort this?

AK01
15

Hi! A have an associative massive... something like "green" => 5 "red" => 3 "yellow" => 1 "brown" => 4 "orange" => 2 I need to sort it by the second value, i.e.: ...

Feedback