dlarkin77
Posts
-
PDF viewer -
Recommendations for a PDF conversion utility/component/printerCool. I'll take a look at it. Thanks.
-
Recommendations for a PDF conversion utility/component/printerHi, I'm looking for recommendations for a utility that will allow me to convert a range of document formats (MS office, HTML, TXT, some types of image) to a password protected PDF. It will most likely need to be called from a .NET app, probably a Windows service, so that I can provide some information (password, document title, keywords, author etc) prior to the conversion. Cost is definitely a factor, I'd like to get something in the range of a couple of hundred euros, the cheaper the better. Any suggestions? Thanks, David
-
USB hub causes other USB ports to fail -
USB hub causes other USB ports to failHi, I'm using Windows 7 Ultimate (64 bit). I have a new USB hub that is causing some problems. If the PC boots up with the hub attached then the hub isn't recognized and some of the built in ports don't work (these ports have an external hard drive and a wireless network adapter plugged in). Some of the built in ports do work (these ports have the mouse and keyboard plugged in). If the PC boots up without the hub attached then all of the built in ports work fine. If I then plug in the hub all the devices plugged into it work fine. Any ideas what I can do to make the PC boot up and have all built in ports and all ports on the hub work correctly? Thanks, dlarkin77
-
Finding a compatible graphics card for a Sony Vaio PC [modified]That looks good. I'll check it out. Thanks very much.
-
Finding a compatible graphics card for a Sony Vaio PC [modified]Hi, I hope it's alright to post my question here - I was going to post this in the Hardware forum but it doesn't seem to get anywhere near the same amount of attention as the lounge. My dad has a Sony Vaio PCV 2236 desktop machine. It's about 5 years old at this point. He wants to buy Empire : Total War but his current graphics card isn't good enough to run the game. Play.com indicates that a '256MB DirectX 9.0c compatible Graphics Card with Shader Model 2.0 support' card is required. I've never had to worry about graphics cards before so I was wondering if anyone can suggest where I might begin to look for a suitable one? Specs for his machine can be found here[^]. Thanks, David
modified on Wednesday, August 18, 2010 7:08 AM
-
Problem with SET and SELECT (to assign a local variable)That sorted it out alright. Thanks very much.
-
Problem with SET and SELECT (to assign a local variable)Hi, I'm using SQL Server 2005. I have the following SQL which is supposed to pad an integer value with leading zeros. The problem is that it prints 0 instead of 001
DECLARE @UserID INT
SET @UserID = 1DECLARE @UtopiaOrderNumber NVARCHAR
SET @UtopiaOrderNumber = (SELECT RIGHT(REPLICATE('0', 3) + CONVERT(NVARCHAR(3), @UserID), 3))PRINT @UtopiaOrderNumber -- prints 0 instead of 001
The following SQL does select the correct value:
DECLARE @UserID INT
SET @UserID = 1SELECT RIGHT(REPLICATE('0', 3) + CONVERT(NVARCHAR(3), @UserID), 3) -- selects 001 as expected
Can anyone let me know what I'm doing wrong? Thanks, dlarkin77
-
Anyway to check if a SqlConnection has a SqlTransaction open against itIdeally we would/should be. But there are so many applications using this class at the moment that it's not really feasible to revisit them all right now.
-
Anyway to check if a SqlConnection has a SqlTransaction open against itThere is no command being passed in, just a connection. So when I create a command object I want to do something like.
SqlTransaction trans = null;
cmd.Connection = cn;if(cn.HasTransaction)
{
trans = cn.Transaction;
}
else
{
trans = cn.BeginTransaction();
}cmd.Transaction = trans;
-
Anyway to check if a SqlConnection has a SqlTransaction open against itHi, Is there any way to find out if a SqlConnection has an open SqlTransaction? Basically I have an object with a method that accepts a SqlConnection as a parameter. This method is called from a number of different application. Sometimes the SqlConnection has a SqlTransaction and other times it doesn't. So what I need to be able to do is something along the lines of
public bool Post(SqlConnection cn, int ID)
{
SqlTransaction trans;if(cn.HasTransaction)
{
trans = cn.Transaction;
}
else
{
trans = cn.BeginTransaction();
}// some other stuff
return true;
}Is there anyway to get something similar? Thanks, David
-
Compact Framework - Problem with Process.StartHi, I am having a strange problem when starting a process on a Windows Mobile based device. RepsApp is the entry point for the application. AppHandler is essentially a class that is used to maintain a bunch of global variables.
public class RepsApp
{
static void Main()
{
AppHandler.frmMain = new FormMain();
AppHandler.frmMain.ControlBox = true;
AppHandler.frmMain.MinimizeBox = false;
AppHandler.frmMain.FormBorderStyle = FormBorderStyle.FixedSingle;
Application.Run(AppHandler.frmMain);if (AppHandler.GetUpdates) { int processID = Process.GetCurrentProcess().Id; Process p = new Process(); p.StartInfo.FileName = Path.Combine(AppHandler.GetAppPath(), "AppUpdater.exe"); p.StartInfo.Arguments = string.Format("{0} {1}", processID, true); p.Start(); } Application.Exit(); }
}
In the MainForm class I simply set AppHandler.GetUpdates to True and close the form
public class FormMain : System.Windows.Forms.Form
{
private void menuItemGetUpdates_Click(object sender, EventArgs e)
{
AppHandler.GetUpdates = true;
this.Close();
}
}When the MainForm closes : if AppHandler.GetUpdates is True the main application stays in memory after it launchs the AppUpdater process. if AppHandler.GetUpdates is False the main application closes as expected. Is there any reason why calling Process.Start would prevent the main application from closing? Thanks, David
-
C# - Problems with Process.StartHi, I am having a strange problem when starting a process. RepsApp is the entry point for the application. AppHandler is essentially a class that is used to maintain a bunch of global variables.
public class RepsApp
{
static void Main()
{
AppHandler.frmMain = new FormMain();
AppHandler.frmMain.ControlBox = true;
AppHandler.frmMain.MinimizeBox = false;
AppHandler.frmMain.FormBorderStyle = FormBorderStyle.FixedSingle;
Application.Run(AppHandler.frmMain);if (AppHandler.GetUpdates) { int processID = Process.GetCurrentProcess().Id; Process p = new Process(); p.StartInfo.FileName = Path.Combine(AppHandler.GetAppPath(), "AppUpdater.exe"); p.StartInfo.Arguments = string.Format("{0} {1}", processID, true); p.Start(); } Application.Exit(); }
}
In the MainForm class I simply set AppHandler.GetUpdates to True and close the form
public class FormMain : System.Windows.Forms.Form
{
private void menuItemGetUpdates_Click(object sender, EventArgs e)
{
AppHandler.GetUpdates = true;
this.Close();
}
}When the MainForm closes : if AppHandler.GetUpdates is True the main application stays in memory after it launchs the AppUpdater process. if AppHandler.GetUpdates is False the main application closes as expected. Is there any reason why calling Process.Start would prevent the main application from closing? Thanks, David
-
I need help disabling a hotkeyThanks for the suggestion Stuart but I was able to get this issue sorted. See my reply below if you're interested.
-
I need help disabling a hotkeyI was able to track down which application owned the hotkey by killing processes one at a time in task manager. It was a program called Display Tune, once I killed it I was able to use CTRL SHIFT F10 just the way I wanted to. Thanks, dlarkin77
-
I need help disabling a hotkeyHi, I've just run HotKey Detective 2 and it reports that there are no hotkeys defined. Any other ideas? Thanks.
-
I need help disabling a hotkeyHi, I'm using a HP Pavilion 6061 desktop. Some application on the machine has registered CTRL SHIFT F10 as a hotkey (when this hotkey is invoked a dialog appears on screen with the words "Enumerating device displays..." as its caption). This is a real PITA when debugging in Visual Studio because CTRL SHIFT F10 is used to set the next statement to be executed. Is there anyway to find which application has registered the hotkey so that I can disable it? I know that I can just change the keyboard shortcut in Visual Studio but I'd rather be able to use the same settings on each machine that I use. Thanks, dlarkin77
-
Tweaking Reflector outputExcellent. That seems to be working just fine - (I really do need to get a handle on the whole regular expressions thing, I seriously doubt I would have been to figure this out on my own). Thanks very much, dlarkin77
-
Tweaking Reflector outputYeah I figured I'd probably have to take this route. I'm a bit confused as to how to actually replace text using a regular expression. Finding the text I need to replace should be pretty straight forward - I could search for
get_*()
This would find two matches:get_CheckedItems()
andget_Count()
But how can I use a regular expression to replace theget_
and the()
for each match? Thanks.