- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 3
- Posts with Upvotes
- 2
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I created this simple inherited class to add a function for moving a row up or down within a DataTable. Sometimes it is desired to do so, and I've seen a few people online looking for a way to do it. Would be nicer if I knew how to properly … | |
I'm trying to programatically set IE options such that when I print a page from my control, it will not print the header and footer, as is the default setting for printing a web page from IE. I found out how to do so from [URL="http://support.microsoft.com/kb/313723"]http://support.microsoft.com/kb/313723[/URL], however I am having … | |
I've never used XML schemas before, though I know what their purpose is for. I did some research into how to write one, and I've got everything done I think. The problem is that I don't understand the purpose of a namespace, or if I even need to use one … | |
I've googled a bit and managed to find a few articles on how to add controls from within a running application, but neither seem to explain it in a way that suits my needs. I wonder if anybody can help me understand how I can go about this, or direct … | |
I've been curious - What determines how the page in question is displayed? I had assumed that the control uses the same engine as the version of IE installed on your system, but that is inconsistent with my experience. A specific static XML file using XSL shows one way when … | |
Trying for the life of me to figure this out, but I can't seem to make sense of it. I found some code that demonstrates how keyboard events are handled, but it doesn't work when I have a textbox on my form. When the textbox has focus, the event does … | |
Maybe I should be doing this differently... but in case I have the right idea, how do I go about doing it? I have the following code: [code=csharp] void eventKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Control && e.KeyCode == Keys.O) this.eventOpenFile(); } private void eventOpenFile(object sender, EventArgs e) … | |
I'm writing a tool that will manipulate files via the command line, and what I would like to do is be able to supply a path to a file that is not necessarily in the current working directory. For example, if I run my software with the command line paremeter … | |
I'm writing a replacement to the windows event viewer, and as such, I require my program to start with admin privileges by default. Yes, I could run it without admin privileges and then have it elevate as required, but that could get very annoying very fast as the security log … | |
Lately i've been noticing that for whatever reason unknown to me, (could be my router, could be interference, could be many things..) my wireless bandwidth between two computers in the house is fairly poor. I can get internet speeds upwards of 10mbit with no problem, but even with my laptop … | |
I just partitioned my single drive so that my system partition is only 40gb, and my "data" partition is the remainder of my 500gb drive. What I would like to do, if possible, is mount this partition on top of my C:\Users folder so that all user data is transparently … | |
I have a need to make my own .img file that can be mounted as a virtual diskette, but I do not know the command I need to use to do so. I've looked briefly at the man page for dd, but I can't tell if this can be used … | |
I'm making a simple resume online, and would like to know how to fix this problem I have.. As you can see in the image, my new header appears to the left of my "floating" lists. Anybody have any advice on how to fix it? Thanks for any advice. Image … | |
I can't figure this out for the life of me... I have a network of computers here (all macs) except for one sole windows XP client. The server is OSX as well. I can connect to the network, and the internet when I assign an IP statically, however the DHCP … | |
Does anybody have a suggestion for a good, powerful scripting language that can be used for administration purposes? I'd like to be able to write simple scripts (like batch files) to do automated tasks for fixing specific issues, and I don't know which scripting technologies are out there. I'm familliar … | |
I'm in a college course right now which focuses mainly on setting up and administering a windows network (Windows Server and Windows Client). I would also like to learn, on the side, how to setup a comparable Linux server solution. Something that would have all the standard amenities that a … | |
I'm currently studying Network+, and one thing I have a slightly hard time grasping is Collision and Broadcast domains. I understand that Layer 2 devices break up collision domains, and Layer 3 devices break up broadcast domains. I also understand that each port on a layer 2 switch will be … | |
Let me explain the topic :) I'm in an A+ class in college, and as a lab assignment, we were tasked with breaking a computer and getting another team to try and fix it. The only requirement, however, is that it cannot be so bad that the only way to … | |
OK, so i'm trying to write some code to save a file in my default documents library in windows 7... This is not C:\Users\username\Docuements as is default... I have added another folder in my root D:\ to handle documents. Normally when I save a file using word or any other … | |
I don't get this.. I was able to use it the other day without issue, but now when I use it, the "message" that I put into the paramater doesn't get printed out to the console, and I get an error box saying "Program has stopped working. Windows is checking … | |
This is a continuation of a previous problem I had with a "dir" like program. The previous solution actually *doesn't* work as I'd hoped. the Path class works, as far as I can tell, when the paramater is passed in a very specific way. It doesn't work if I don't … | |
I'd like to be able to download the .net 3.5 API documentation offline so I don't have to worry about having an internet connection, but I can't seem to find anything online that indicates that it can be downloaded. Does anybody know if it can or cannot? I'm referring to … | |
I'm writing a program to convert one image type (for example, png or gif, or tif) to a jpg. What I want to do is to feed the file name into the program via the console, and it will spit out the converted image. How can I make sure that … | |
I'm trying to figure out why the regexp "[A-Za-z0-9\-]+\.jpg|jpeg|gif|png" only seems to find "gif" when I run it on the source of an html file.. For example: I have the following code [code=c#] string URL = "http://www.google.ca"; string re = @"[A-Za-z0-9\-]+\.jpg|jpeg|gif|png"; WebClient wc = new WebClient(); Stream data = wc.OpenRead(URL); … | |
I'm having trouble finding a clear tutorial on how to use regular expressions, and its driving me insane.. However, based on an example I saw, I am trying to construct my own pattern and I cannot figure out why it is not working. Can somebody here give me some help? … | |
I'm playing around with SQLite, which is very similar to what i've seen in MySQL, and I want to write some code that returns the column names along with the data for output purposes. Is there an SQL query I could use to do that, or is it done differently … | |
[code=c#]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SQLite; namespace PlayingWithSQLite1 { abstract class Database { #region Member Variables string PATH = String.Format("{0}\\Database\\", Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); string FILENAME = "test.s3db"; #endregion public string File { get { return string.Format("{0}\\{1}", PATH, FILENAME); } } public static void CreateDatabaseFile() { SQLiteConnection.CreateFile(File); } } … | |
I have a SQLite database added to my project in the solution explorer, named testdb.s3db. What I want to do is reference it in my code without having to fully qualify the path. Currently my code is [icode]SQLiteConnection connection = new SQLiteConnection("Data Source=C:\\Users\\Chris\\Documents\\Visual Studio 2008\\Projects\\ConsoleApplication3\\ConsoleApplication3\\testdb.s3db");[/icode] Can I do this somehow … | |
Re: Maybe this? [code]foreach(string s in Enum.GetNames(typeof(Environment.SpecialFolder))) Console.WriteLine(s);[/code] | |
What I mean by the subject is, is it possible to print out a string that is aware of the name of the variable it is stored in? For example... I'm reading right now about overriding a class's [icode]ToString()[/icode] method, and I want to know if there exists a way … |