Software Development Network Logo
  • SharePoint Products
  • IE Development
  • Smart Devicet
  • VS Team System
  • Game Technologies
  • Visual Studio
  • Audio and Video
  • Visual C#
  • Microsoft ISV
  • Visual Basic
  • SQL Server
  • Windows Forms
  • Windows Vista
  • Visual C++
  • .NET Development

Software Development Network >> Drew Marsh's Q&A profile

Drew Marsh

Member List

Fata1Attack
curtKauf
Nilesh Ingale
CKa
EA512
paraGOD
HowardCarr
JasonG271009
mcnamaragio
ruk_walled
wolf777
Alex Te.
GeeMann
XIAIX
Elad Saar
Waltari
maulikk
Nath_UTSA
AJ-VENNING
GPC44151
Only Title

Drew Marsh's Q&A profile

  • Visual Studio Express Editions treeview for main application menu / navigation

    im seriously considering using this control for the main menu and navigation for my small application. The top level will contain static options (i.e customers, system maintenance, reports etc) and i'll dynamically populate each option with data at runtime. i would like to know if you have used this control for this purpose, and what are the avantages or pitfalls you have found especially any appearance / look and feel issues. i would like and icon next to my top level options, and to change the font for child nodes etc.. thanks I don't think you can set the background color at design time: it will use the system wide highlight text color by default. If you wish to use a different color, you will ha ...Show All

  • SQL Server SQL 2005 sp2 Reports

    Were the reports removed from SSMS 2005 sp2 I don't seem to have the icon and report list anymore. No, the Management Studio reports are still available. They have just changed their location. You used to access them by clicking on the Reports drop-down on the Summary Page. In SQL Server 2005 Service Pack 2, you should right-click on a node in Object Explorer -> Reports -> Standard Reports -> [Report Name]. Paul A. Mestemaker II Program Manager Microsoft SQL Server Manageability http://blogs.msdn.com/sqlrem/ ...Show All

  • Visual Studio Express Editions Lern about webservices where?

    My website running PHP5 op to a MS SQL database and now i will use C# .NET 2.0 to crate a Webservices so i can make Programse to speak whit my website bot i dont know where i can read about it :) sombady can help mere to get me sombady stuff :) Hi NeoNmaN, First of all this might have been better off at http://forums.asp.net but still. You may also need to change from the express editions to at least a Standard Version of Visual Studio (don't quote me on that). Still try having a look through this lot, take it one step at a time though http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vboriwebserviceswalkthroughlist.asp Hope it helps Scott ...Show All

  • Visual Basic (VB)Updating row data in SQL

    Hey guys, I have a small issue doing the following. Before inserting rows into a table I need to make sure that the rows is not already there.. If they are, I want to update the rows, else insert new rows .. I have the inserting of new rows figured out, but can't figure out how to check if the row is already there .. This is where I need your help.. Thanks, Nilysg pseduo code Dim Dr As DataRow = DataTable . Rows . Find ( "PrimaryKeyValue" ) If IsNothing ( Dr ) Then InsertRow ( Dr ) Else UpdateItem ( Dr ) End If ...Show All

  • SQL Server extent fragmentation on system tables

    DBCC SHOWCONTIG scanning 'sysobjects' table... Table: 'sysobjects' (1); index ID: 1, database ID: 7 TABLE level scan performed. - Pages Scanned................................: 332 - Extents Scanned..............................: 48 - Extent Switches..............................: 331 - Avg. Pages per Extent........................: 6.9 - Scan Density [Best Count:Actual Count].......: 12.65% [42:332] - Logical Scan Fragmentation ..................: 49.10% - Extent Scan Fragmentation ...................: 95.83% - Avg. Bytes Free per Page.....................: 5760.4 - Avg. Page Density (full).....................: 28.83% DBCC execution completed. If DBCC printed error messages, contact your system administrator. DBCC SHOWCONTIG scanning ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Spritebatch.Draw() with an origin

    When you use SpriteBatch.Draw() with an origin specified, this moves where the sprite is drawn on-screen depending on the value of the origin vector. Is this supposed to happen from the helpit appears that the origin is only used in calculating a rotation, is this a bug (in which case I'll nip over to the bugs page) or is there something I'm missing here It's a bit counter-intuitive, For example if I wan to draw a rectangle in the upper left corner, with the origin set to the middle, i need to use Draw(tex, new Rectangle(50,50,100,100), .... , new Vector2 ( 50,50) ); Now those co-ordinates don't make sense, It appears theres a bug in using the origin which subtracts it from the position when it should add it. It also doesn't se ...Show All

  • Visual C# Regex to split a string

    Hi Guys, I am currently working on ripping some information from a text file. I am trying to use regex to split up some strings. I.e. text file has this line Serial Number .............................. ABC123456AB I need to just get the "ABC123456AB" part. So far I have not been able to work out the regex for it. I would like to search for " Serial Number .............................. " and return just the AB123456AB part. Cheers Wilson Hi, try it with the following regexp: text = "Serial Number .............................. ABC123456AB" ; Match match1 = Regex .Match(text, "( <=Serial Number\\s+\\.+\\s+).*" ); Andrej ...Show All

  • Visual Studio Express Editions "Cannot implicitly convert type 'int' to 'string"

    i have a my simple media player program and i want to load the last run file when the user restarts the app . Microsoft.Win32.RegistryKey key2; key2 = Microsoft.Win32.Registry.LocalMachine.CreateSubKey("SOFTWARE\\xyz\\VideoDesktop"); key2.GetValue("LastFile"); int LastRun = (int)key.GetValue("LastFile"); MediaPlayer.URL = LastRun; } I get I know how to deal with this when dealing with numbers but not with the registry any ideas MediaPlayer.URL is probably a string. LastRun is an integer. That is what is causing your error. You are trying to assign an integer (LastRun) into a string property (URL). ...Show All

  • Visual C++ compiling the "selected" project in dev studio 2005 - behavior change

    Hi, We are currently in the process of moving from VC6 to VC8. We have several projects with houndreds of cpp and h files. One of the biggest complaints we get from the developers is the issue of "build selection" button and F7: Our solution is built from several projects, most are static libraries for the main project (the main project having dependencies to these lib projects). When working on the code, developers generally changes a few cpp's without needing to know which one is related to which lib project and in the end they would always compile the main project by pressing F7 or pressing the build - these would automatically build the 'active' project which was always the main project. all relevant libs related cpp's that had changed ...Show All

  • Visual Studio 2008 (Pre-release) Code-Generated Base Entity Class

    Hey team, Is there a way to specify the base-class that the generated entities inherit when the code is generated I'm thinking of creating a base-class that contains common functionality, and want to have the generated classes derrive from that instead of System.Data.Objects.Entity. My base-class will of course extend System.Data.Objects.Entity. :) Thanks! Daniel Simmons - MSFT wrote: What I haven't tried is creating a base type that doesn't contribute any properties--only behaviors. I'm not sure that will work, but it's probably worth a try. Is there reason to belief this wont work ...Show All

  • Visual Studio Team System Cross Database References

    Upon compilation cross database references are being resolved against my local SQLServer Express installation (regardless of where my build is pointing). How can I get it my project to compile against the target server when resolving these references At design time we always validate against your local "sandbox" which by default is your SQL Server Express instance, that will not change. Besides that a database project reflects a single user database and we do not resolve cross database or server references. If you have a cross database reference, you can work around it to some degree by create a project for each database and host them in a single solution file, this way we can reso ...Show All

  • Visual C# How to return properly from an eventhandler (or do something approximating the same thing)

    Hi! In my code, I need to return from an eventhandler function (function for handling the click of a button), and I can't figure out how. I think this is impossible. I'm not sure. But either way I can't figure out how to redesign my code to work around that problem if that is indeed an issue. Here's the code in question: [code] private void BtnConnect_Click(object sender, EventArgs e) { Connect(); return; } private void Connect() { Socket = new NetFXSocket(false, "82.116.68.153", 1345); UserState = new StateObject(0, Socket.Listener, 1024); if (Socket.Connected == true) { LstConnectInfo.Items.Add("Successfully connected to login server!"); } else ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Laptop Computer Requirements - Simple DirectX games

    Compiler: Visual Studio.NET 2002 Hi All, I want to buy a new laptop computer to program basic DirectX games. I have only ever bought desktops before and am a bit suprised by the lower technology of the laptops (especially the motherboard). My present desktop is a 2.6GHz with a 256 MB Graphics card. (I need a laptop, as it is becoming more impractical for me to be in front of my desktop when I am able to do any programming.) I am programming simple(ish) DirectX games. The game I am working on is chess. I am using full Direct3D including textures. Obviously the AI is quite heavy. Sounds are basic. Due to the AI requirements I believe I need a minimum of a 2GHz motherboard. However this puts a bit of strain on the cost so I might ...Show All

  • Windows Forms Can't get progress bar to work

    Hello, I'm somewhat new to .NET and very new to Winforms and am trying to use a progress bar in my app to gauge the progress of a SQL 2005 merge replication process. I have a class that keeps the Syncronization code. The syncronization agent has an event handler that in turn calls a method to grab the status and percent completed of the current merge process: subscription.SynchronizationAgent.Status += new AgentCore.StatusEventHandler(SynchronizationAgent_Status); subscription.SynchronizationAgent.Synchronize(); Here is the method it calls: static void SynchronizationAgent_Status(object sender, StatusEventArgs e) { m_percentComplete = e.PercentCompleted; m_statusMessage = e.Message; } ...Show All

  • Visual Basic My.Settings Error 82 Reference to a non-shared member requires an object reference

    The specific error generated is "Error 82 Reference to a non-shared member requires an object reference." I was editing app.config to change values of my.settings for appropriate debugging, and now none of my settings can be referanced, and are completely messed up. I get a blue squiggly line calling me a retard at every referance I had to a setting before this. Any help in this matter is greatly appreciated. If you click on the "Show all files" button in solution explorer and navigate down into the My Project -> settings.settings -> settings.vb, what does the content of this file look like And were there *only* changes to the app.config file that caused this Best regards, Joha ...Show All

©2008 Software Development Network