Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

dlarkin77

@dlarkin77
About
Posts
97
Topics
55
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • PDF viewer
    D dlarkin77

    Hi, I'm trying to find a fancy (for want of a better word) PDF viewer like this this[^]one. I need something that will allow me to view a PDF at a user provided url. Does anyone know of anything similar? Thanks, David

    The Lounge com question

  • Recommendations for a PDF conversion utility/component/printer
    D dlarkin77

    Cool. I'll take a look at it. Thanks.

    The Lounge csharp html tools question

  • Recommendations for a PDF conversion utility/component/printer
    D dlarkin77

    Hi, 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

    The Lounge csharp html tools question

  • USB hub causes other USB ports to fail
    D dlarkin77

    Your suggestion led me to this [^] hotfix that seems to have sorted my problem. Thanks for the help.

    Hardware & Devices sysadmin question

  • USB hub causes other USB ports to fail
    D dlarkin77

    Hi, 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

    Hardware & Devices sysadmin question

  • Finding a compatible graphics card for a Sony Vaio PC [modified]
    D dlarkin77

    That looks good. I'll check it out. Thanks very much.

    Hardware & Devices graphics game-dev question html com

  • Finding a compatible graphics card for a Sony Vaio PC [modified]
    D dlarkin77

    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

    Hardware & Devices graphics game-dev question html com

  • Problem with SET and SELECT (to assign a local variable)
    D dlarkin77

    That sorted it out alright. Thanks very much.

    Database database sql-server sysadmin help question

  • Problem with SET and SELECT (to assign a local variable)
    D dlarkin77

    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 = 1

    DECLARE @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 = 1

    SELECT 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

    Database database sql-server sysadmin help question

  • Anyway to check if a SqlConnection has a SqlTransaction open against it
    D dlarkin77

    Ideally 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.

    C# question

  • Anyway to check if a SqlConnection has a SqlTransaction open against it
    D dlarkin77

    There 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;

    C# question

  • Anyway to check if a SqlConnection has a SqlTransaction open against it
    D dlarkin77

    Hi, 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

    C# question

  • Compact Framework - Problem with Process.Start
    D dlarkin77

    Hi, 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# performance help question

  • C# - Problems with Process.Start
    D dlarkin77

    Hi, 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

    Mobile csharp performance help question

  • I need help disabling a hotkey
    D dlarkin77

    Thanks for the suggestion Stuart but I was able to get this issue sorted. See my reply below if you're interested.

    The Lounge csharp visual-studio help question

  • I need help disabling a hotkey
    D dlarkin77

    I 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

    The Lounge csharp visual-studio help question

  • I need help disabling a hotkey
    D dlarkin77

    Hi, I've just run HotKey Detective 2 and it reports that there are no hotkeys defined. Any other ideas? Thanks.

    The Lounge csharp visual-studio help question

  • I need help disabling a hotkey
    D dlarkin77

    Hi, 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

    The Lounge csharp visual-studio help question

  • Tweaking Reflector output
    D dlarkin77

    Excellent. 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

    The Lounge help question csharp visual-studio winforms

  • Tweaking Reflector output
    D dlarkin77

    Yeah 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() and get_Count() But how can I use a regular expression to replace the get_ and the () for each match? Thanks.

    The Lounge help question csharp visual-studio winforms
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups