Nate Garvey's Q&A profile
SQL Server Using Xcopy to get the .mdf file of pubs database to the App_Data folder of a website of VWD Express project
Hi all, I have a stand-alone Windows XP Pro PC that has SQL Server Express (SSE) and Visual Web Developer Express (VWDE) programs. The Microsoft "pubs" Database is installed in the SQL Server Management Studio Express (SSMSE). I created a website in my VWDE program. I need the .mdf file of the pubs Database in the App_Data folder of website of my VWDE project. I think that User Instance in my SSE is established. I have studied Xcopy Deployment (SQL Server Express) and User Instance for a quite a while and I still do not know where and how to use Xcopy to get the mdf file of the pubs database into the App_Data folder of the website of my VWDE project. Please help and give me the detailed key steps/instructions about where and h ...Show All
Windows Forms adding multiple controls in DataGridViewColumn
Hi All, Ive trying to create a custom datagridview where one customized column could contain checkBox, textBox, or even listboxes. I know I would have to override the dataGridViewCell class, but how to I add a control to the cell i.e. If i want to create a customized DataGridviewCell where the cells contain checkboxes My code below show display checkboxes, but it doesnt.... Any help would be appreciated, Thanks Here's the paint method in my class: public class DataGridViewCustoomizedCell : DataGridViewCell{ protected override void Paint( Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates cellState, object value, ...Show All
Visual Studio Team System Can't get past the Error 1718 when loading VS2005 SP1 on Team Suite With Win2003 SP1
Hello All, I can't get past the error so I really need some help on this. I am trying to load the VS2005 SP1 on a Win2003 server system running Team Suite. I did try to change the Local Security Policy as suggested but it doesn't seem to help. Thanks in advance for any help :) Bob Hanson Same problem here, I'm running on Win2k3 R2 (in a Virtual Server image), I applied the changes suggested here ( http://support.microsoft.com/kb/925336 ) but this doesn't seem to work. Does anybody know a workaround for this Thanks Gabo PS: I've also noticed that the msp file doesn't get deleted from C:\Windows\Installer and my HD free space is reduced by ~500 MB after each try. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XBox 360 hard drive question for MS staff - semi off topic
With all the great new offerings out or coming soon for the 360: XBox Live Video Marketplace, XNA game creation, and the recently announced IPTV, the poor little 20GB hard drive's days look numbered. Is MS planning to release a larger hard drive for the 360 I'm pretty sure that many people (including myself) would be very interested in one. What I would most like to see in terms of additional storage is the ability to use a standard USB external hard drive. Similiar to DVR's. For instance, my Explorer 8300 DVR, made by Scientific Atlanta, does this very nicely. And it formats the drive in a way my PC does not understand, which reduces the risk of ripping content from it. ...Show All
Visual Studio 2008 (Pre-release) ToArray() / sub query / DLINQ possible bug.
Hi Guys, I'm using DLINQ to access my test Database. I get this error when evaluating the following query; Cannot assign sequence of LINQTest.MarineLocationKills to type LINQTest.MarineLocationKills[] var query = from m in marines select new { m.ID, m.Name, m.Age, m.Sex, Kills = ( from k in marineLocationKills where k.MarineID == m.ID select k). ToArray() }; var temp = query.ToList(); If I change .ToArray() ...Show All
Visual Studio Tools for Office Working with submenus in Outlook 2003
how to Create Command Meun with two childs there is what i need Send By: -email -SMS msdn was not clear for me and it was creating menu bar . and what i need is a command menu. t Yes, I'm sure. The New control is a split popup, which cannot be created programmatically. You can only create CommandBarButton, CommandBarPopup, and CommandBarComboBox as custom Outlook command bar controls. ...Show All
Windows Forms Problem with WindowHandle
Hello, I found the below code on the internet, I want to use this to hide my notepad, Well, the hide part works very well, but to restore it doesnt work.. Now i tried separate numbers but none of them worked. So i would like to ask, does somebody know a way to fix this Or do this otherwise using System.Runtime.InteropServices; using System.Diagnostics; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private const int SW_HIDE = 0; private const int SW_RESTORE = 9; private int hWnd; [ DllImport ( "User32" )] private static extern int ShowWindow( int hwnd, int nCmdShow); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Distribuion for End Users?
In the XNA Beta 2 documentation it is stated: "How do I distribute my game On Windows you direct users to install XNA Game Studio Express and you distribute the conents of you bin\release directory. Users will be able to run your program like any other application. " Does this mean that all end users will have to install Visual C# Express and XNA GSE in order to play the games with the XNA GSE RTM (Under Windows) Or do you just mean its a requirement for Beta 1 and Beta 2, and eventually the 360 deployment I was under the impression that a run time installer for XNA GSE PC would be available apon the RTM release. It seems stupid to force end users to install Visual C# Express and XNA GSE just to run a game under Wi ...Show All
Windows Forms Events and Delegates in Forms
I have a main form and a child form which I communicate through public methods. For example: frmMain ... frmChild frm = new frmChild(); ... frm.MoveNext(); The child window will obviously have a public method MoveNext. frmChild also implements an Interface class. What I now want to do is when data in the child window is saved to communicate this back to the parent, but I want to use an event. I can get events working and hooked-up in classes but I can't get them to work between forms, except when I am hooking up to form events like: parentForm.FormClosed += new Forms.FormClosedEventHandler(ParentForm_FormClosed); I want to do the above but with my own event in the parent called DataSaved. How can I do this ...Show All
Community Chat What version of vista are YOU getting?
So, out of all of the editions, Home Basic, Home Premium, Business, Enterprise, Starter and Ultimate , which are you getting I am going to get Home Premium because it seems like it has mostly everything I would need. Comes with mostly everything except backing up software which you can just download. So, what are you getting I got Vista Business (cause its the only one I could get through my MSDNAA subscription). But I wouldnt recommend using vista as a main OS yet, if you do id highly recommend backing up your system first. I first installed it and it booted up once fine, but then the next time I tried it wouldnt boot. Luckily I did it on a separate partition on my hdd so it didnt mess up a ...Show All
Visual C# minimize a System.Diagnostics.Process
I have a System.Diagnostics.Process which I started. I would like to minimize it. How can I do this in C# I found this post, but it is for VB, and it looks like it uses COM. Neither of which I like. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=611361&SiteID=1 If there is a pure C# .NET way to do this, that would be great. ~S If the process is already running...you will need the handle to send to ShowWindow API. [DllImport("user32.dll")] static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); ShowWindow(yourHandle, 2); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Plans for future XNA webcasts?
Just wondering if there were any official plans for webcasts One of the guys at the webcast that was done a couple weeks back said they'd like to do others. I guess we could see here what the community would like to see to determine what the interest would be. Hmm, can't seem to get that to play. Is that your mug on the first frame edit: downloading, we'll see what happens. edit2: OK, so that's not your mug. Have to watch all of it to see who it is. edit3: So George is famous now and I want the XNA Asteroids game that was shown! edit4: FONTS!!!!! YEA!!! edit5: OK, so the face was Major Nelson. Wow, that didn't look like him at all in the frame. Yeah, I'm sad, aren't I ...Show All
Software Development for Windows Vista question about the custom debugger on windows forms application
I've been using the custom debugger for windows forms posted here: http://wf.netfx3.com/files/folders/design_time/entry1929.aspx And it works great. Just a question. When a different view of a composite activity is being "debugged" (like the Faults View), I cannot make it to appear automatically, so if the activity being debugged is in that view, I have to change it manually (clicking on the views tab on the designer)... So, I would like to know how can I make the debugged view (in this case, the Fault View) to appear without user interaction when an activity that belongs to it is active. I've been trying the methods ActivityDesigner.EnsureVisible() and activityDesigner.Parent.EnsureVisibleContainedDesigner(activityDesigner) ...Show All
Windows Forms autoscroll in datagrid when selecting a not visible row
Hi, I've got I datagrid with more than 100 rows. There are only 10 visible. If you want to view the other 90 you have to scroll. It is possible to scan in my program and when the code is found in de db, the wright product is selected in the datagrid. Is it possible to autoscroll to the selected product Now the product is selected but you still have to search for the blue selected line :) Grtz Annihil8 When you go to the currentcell in the datagrid self instead of the view. It has the same effect as the currentcell in the datagridview. So that works. GridVScrolled did also worked. ...Show All
Windows Forms passing variables to NotifyIcon Text
hi all, i've got a little timer program that i'm working on. everything is working fine, just need a little help with some refinement issues... question #1: bascially i have some variables minRemain & secRemain that show via timer tick how much time is remaining until alarm will be sounded. i have a NotifyIcon set and the program minimizes to the system tray (whatever that's called- lower right of windows screen). you double click the icon to bring back the program yada yada... when the program in in the system tray and you hover over the icon is displays some text (the program name) as i've defined in the NotifyIcon Text property. so here's my question... how can i pass/display some variables in that hover ...Show All
