Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
Member Avatar for agent154

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 …

0
1K
Member Avatar for agent154

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 …

Member Avatar for agent154
0
1K
Member Avatar for agent154

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 …

Member Avatar for hericles
0
237
Member Avatar for agent154

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 …

Member Avatar for agent154
0
124
Member Avatar for agent154

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 …

Member Avatar for NetJunkie
0
156
Member Avatar for agent154

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 …

Member Avatar for agent154
0
221
Member Avatar for agent154

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) …

Member Avatar for agent154
0
127
Member Avatar for agent154

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 …

Member Avatar for Matt Gudmundson
0
296
Member Avatar for agent154

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 …

Member Avatar for sknake
0
1K
Member Avatar for agent154

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 …

0
92
Member Avatar for agent154

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 …

Member Avatar for caperjack
0
127
Member Avatar for agent154

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 …

Member Avatar for agent154
0
310
Member Avatar for agent154

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 …

Member Avatar for agent154
0
121
Member Avatar for agent154

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 …

Member Avatar for cguan_77
0
95
Member Avatar for agent154

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 …

Member Avatar for Tanha Karim
0
103
Member Avatar for agent154

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 …

Member Avatar for agent154
0
230
Member Avatar for agent154

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 …

0
63
Member Avatar for agent154

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 …

Member Avatar for gerbil
0
147
Member Avatar for agent154

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 …

Member Avatar for sknake
0
163
Member Avatar for agent154

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 …

Member Avatar for agent154
0
155
Member Avatar for agent154

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 …

Member Avatar for agent154
0
148
Member Avatar for agent154

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 …

Member Avatar for agent154
0
122
Member Avatar for agent154

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 …

Member Avatar for DdoubleD
0
504
Member Avatar for agent154

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); …

Member Avatar for agent154
0
129
Member Avatar for agent154

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? …

Member Avatar for agent154
0
116
Member Avatar for agent154

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 …

Member Avatar for agent154
0
145
Member Avatar for agent154

[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); } } …

Member Avatar for agent154
0
111
Member Avatar for agent154

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 …

Member Avatar for sknake
0
105
Member Avatar for RahulV

Maybe this? [code]foreach(string s in Enum.GetNames(typeof(Environment.SpecialFolder))) Console.WriteLine(s);[/code]

Member Avatar for Ramy Mahrous
0
125
Member Avatar for agent154

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 …

Member Avatar for Ramesh S
0
110