374 Posted Topics

Member Avatar for awk

there is a way to suspend all code execution of a thread. I'm not sure how its done. but ProccessExplorer from Microsoft does it, and it lasts even after the app closes, and can only be un suspended by processexplorer or closing the app via task manager and reopening it. …

Member Avatar for Diamonddrake
0
84
Member Avatar for sommer_queen

Problem is, that the tp variable you created as a param for your create button function is not valid in the event handler. Outside of the method, tp either doesn't exist, or refers to a variable at a higher up scope. to point to which tab control fired the button …

Member Avatar for sommer_queen
0
97
Member Avatar for HBMSGuy

just google Low Level Keyboard Hooks in C# Thats the trick, but be careful. if you want to have an application process all keyevents, be sure to use something like a combination, or else you will have erratic behavior. But that's the trick, I wrote a couple of auto hot …

Member Avatar for Diamonddrake
0
178
Member Avatar for ebiemami

yeah, Vista can be a real pain. the simple way per user is to just set the permissions on the folder via an administrator, but that wouldn't work in a deployment situation. What will most likely need to be done is have the program create a folder in the users …

Member Avatar for Diamonddrake
0
76
Member Avatar for hemisphere

I don't understand where your problem is. are you having trouble getting data from a database into a listbox? because that can be done via an adapter and datatable. or not, depending on how you want to go about it. but what's this multiselect to build a query? what does …

Member Avatar for kvprajapati
0
2K
Member Avatar for Egypt Pharaoh
Member Avatar for Diamonddrake

I have written (mostly) with some take from a simple tutorial a calculator control for a program I am working on, the control works fine, except i would like the control to accept key input, like the windows calculator does, i.e. asterisk activates multiplication, enter evaluates and the numbers are …

Member Avatar for Diamonddrake
0
6K
Member Avatar for sivak

simply, you can create multiple methods of the same name, that accept different params, depending on what arguments you pass to your method, something specialized occurs. example: public static setTitle(string s) { this.Text = s; } public static setTitle(string s, boolean alertUser) { this.Text = s; if(alertUser == true) { …

Member Avatar for kvprajapati
0
100
Member Avatar for skisky

It is a wonderful language. gets it done faster, But C++ is still a better choice with no prerequisites for standalone. in sharp you can't even create a install package in good faith that it will work on end the user's computer without a native code bootstrapping. But if you …

Member Avatar for skisky
0
151
Member Avatar for sivak
Re: oops

lol, wow. i couldn't have said it better my self. also. google search overloaded methods in C# and you get 100,000 hits. and a page of examples just on the first link. I did a test search just to be sure.

Member Avatar for Diamonddrake
0
61
Member Avatar for DaveD3

you can view the same data set as many times as you want. problem is... with only the description of the result of a problem, its hard to diagnose it... its like calling a mechanic and telling them your car doesn't work, then with only providing the detail that you …

Member Avatar for Diamonddrake
0
82
Member Avatar for C# beginner

[QUOTE]Ddanbe has given the correct answer. When the key is pressed if you dont want it, you can do something about it then. [/QUOTE] That would be "a" correct answer, If in program you achieve your the desired effect, it is correct. there is no "right" way to program. although …

Member Avatar for Diamonddrake
0
158
Member Avatar for Diamonddrake

I am working on a quick launch style application. I am storing file paths, and icon captions in arrays. I am trying to keep the feel of a standalone application. So any method for saving the data should be able to be located some where relatively hidden from the user, …

Member Avatar for LizR
0
100
Member Avatar for wien

only problem with this teach a man to fish deal you have running is that not everyone has Visual Studio, some people are compiling using free software with no help files, and online help from Microsoft is practically Japanese to a weekend programmer. But I do understand, although i understand …

Member Avatar for LizR
0
186
Member Avatar for scylefice

you weren't to specific, but i am going to assume you are going for the internet explorer7+ and firefox style search box where the search box is a separate text box, this code would imply that you have a webbrowser control called "webbrowser1" and a textbox for the search called …

Member Avatar for Diamonddrake
0
308
Member Avatar for Clawsy

what you have to do is remove "using System.IO;" from the top of your class, and everytime you need to use System.IO.File you will have to type the full namespace. problem is that when you import the namespace for the object that creates your shortcut you share its namespace scope …

Member Avatar for Diamonddrake
0
945
Member Avatar for danielc

I like to use a slight variation, just modify your entry point as follows [CODE]static void Main() { string proc = Process.GetCurrentProcess().ProcessName; Process[] processes = Process.GetProcessesByName(proc); if (processes.Length > 1) { MessageBox.Show("Application is already running\n\nOnly instance open at a time.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { Application.EnableVisualStyles(); Application.Run(new Form1()); } …

Member Avatar for hassan-golab
0
3K
Member Avatar for Typewriter

this [QUOTE] String fileNameOnly; fileNameOnly = System.IO.Path.GetFileName((openSingleFile)); fileinfoViewer.Items.Add(fileNameOnly); [/QUOTE] should be [CODE] String fileNameOnly; fileNameOnly = System.IO.Path.GetFileName((openSingleFile.FileName)); fileinfoViewer.Items.Add(fileNameOnly); [/CODE]

Member Avatar for hieuuk
0
205
Member Avatar for Diamonddrake

Does anyone remember how ms dos had a [B]sort[/B] program that you could sort the rows in a huge text document based on just one character by its position from the left margin? I am trying to recreate that effect in a notepad clone. I am sort of new to …

Member Avatar for Diamonddrake
0
154
Member Avatar for Diamonddrake

I have written a text editor that sorts lines, I plan to use it with some large files. say about a million lines, ranging between 10 and 75 MB. I am currently testing my app using about a 50mb file with about 900,000 lines. the program adds all the lines …

Member Avatar for LizR
0
363
Member Avatar for Diamonddrake

The title is confusing, I know. What I mean is, I created a note pad (like) program with line sorting functions. I want to be able to associate .txt files in explorer with the program. Currently I modified the Main function to accept command like arguments. and I modified my …

Member Avatar for Diamonddrake
0
220
Member Avatar for c#loser

the code you posted creates a stream reader object and uses it to add each line of the system.ini settings file to a list. What is your goal? Elaborate.

Member Avatar for puneetkay
0
114
Member Avatar for FullBjarne

Awesome! I wonder how to make this fire a certain intervals, for example on the press of the space bar, or something. hrm.

Member Avatar for Diamonddrake
0
164
Member Avatar for kevinlin

[QUOTE=Dabuskol;634171]using (StreamReader sr = new StreamReader("TestFile.txt")) { string line; while ((line = sr.ReadLine()) != null) { if (line.Substring(0,4) == "$GSV") { Textbox1.Test = line. } } }[/QUOTE] I Know this is an old post, and I'm sure the problem has been handled, but actually a better way would not be …

Member Avatar for Diamonddrake
0
131

The End.