374 Posted Topics
Re: 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. … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: 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) { … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: [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 … | |
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, … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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()); } … | |
Re: 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] | |
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 … | |
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 … | |
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 … | |
Re: 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. | |
Re: Awesome! I wonder how to make this fire a certain intervals, for example on the press of the space bar, or something. hrm. | |
Re: [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 … |
The End.