XO's Q&A profile
Visual Studio Team System How to determine solution workspace?
G'day, Let's say I have two workspaces in my workstation. I have opened solution 1 in Visual Studio by using "Open from SC" in workspace1, worked with it some, then switched to solution 2 I have worked with previously, which happens to be in workspace 2. When working with version control solely through the Solution Explorer, one has no problems. However, in the TFS Source Code Explorer you have workspace selector combo box. Now, I have been working with solution 2, closed it, and opened solution 1. The solution 2 is in different workspace, but workspace selector in Source Code Explorer aint reflecting the workspace of curren ...Show All
Windows Forms How undo delete in BindingNavigator ?
Hi! I am using C# and VS 2005. When a user deletes a row using BindingNavigator, it's too late to ask "Are you sure " So, how do I undo the last "delete" Can you show me a code example of allowing "Are you sure " and either performing the delete on true or rolling back the last delete on false Thx, Jess Sorry for bothering everyone, If found this solution at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=148907&SiteID=1 and adapted it to C# after adding my own button to the toolstrip: private void deleteToolStripButton_Click ( object sender, EventArgs e ) { if (Validate() &&a ...Show All
Windows Forms How to Add ListBox in DataGridView Like CommandButton (VB.Net Windows From)
Can any one tell me how can i add Listbox in DataGridView as we add Combobox or CommandButton ...Show All
Visual Basic Windows API in VB.Net
Dear All, Q1) In VB6, there are Win32API viewer for helping us to writing Windows API application. In VB.Net, I can't find that tools now. If I want to write some program with WinAPI, how should I do Q2) After installed Platform SDK, I can use the new and platform api in VC++ program. I want to know How to use them in VB.Net Thanks, Kevin Tang. http://visualbasic.about.com/od/usevb6/l/aa103002a.htm ...Show All
Visual Basic Image Quality ... Help me Please
hi when i use the code picturebox1.image.save to save image as Jpeg .. the quality of image which will be saved is low and i want to be the quality of image will be saved is high so how can i do this thank You have to specify the codec (jepg in this case) and the necessary parameter for image quality. You can see an example here: http://vbforums.com/showthread.php p=2038488#post2038488 ...Show All
Visual Studio Tools for Office TrackChanges Issue
Hi, We are working on word customization using VSTO 2005. We binded a XML Schema. When user switching between XML Tags we are disabling track changes in the intension of any background operation is done on Word would not be reflected in Track changes by giving like this, this.TrackRevisions = false Once the background operation is finished we are enabling track changes again. this.TrackRevisions = false But the track changes whatever being done in the background operation are displayed as track changes, though we are disabling the track changes before the operation. Thanks in advance for the pointers. Regards, Je ...Show All
Smart Device Development RESET POCKETPC
hi ; i have a problem : i must to make a soft reset of the my device in csharp; how can i make it thanks alessandro Not to count robotic arm which would grab the device and push reset button, there's no other way. If you're not running anything on device, why do you need to reset it in a first place May be there’s a way to do that without reset. ...Show All
Windows Forms How to create a DropDownList/ContextMenu style window?
I need a popup window(no border) to input some text. But it should be something like the drop down list of a combobox which doesn't make the owner form inactive. Making it a child window does that but it will be clipped by the owner form, while drop down list won't be clipped. I've tried changing the CreateParams to use different set of flags, but not successful. And I've been googling the whole afternoon... I saw someone says not to make that popup window active by SW_SHOWNA, but if the window is not active, then it cannot receive keyboard input. Does anybody know how DropDownList/ContextMenu achieve that ...Show All
.NET Development Disabling Command Window - System.Diagnostics.Process
Using the class System.Diagnostics.Process proc.StartInfo.CreateNoWindow = true ; proc is a process that runs a batch file. This "CreateNoWIndow" command DOES NOT actively disable the command shell window. Is it possible to run a batch file process in the background without having the Command Window from being displayed Using .NET, how can I run batch commands in a hidden mode without it reporting status or errors to the stdout or the command shell window Thanks! This worked for me: Dim proc As New Process proc.StartInfo.CreateNoWindow = True proc.St ...Show All
Visual C# How to get total memory of computer
How to get total memory of computer by using C#. Can you instruct me, thank you very much. Reece Williams wrote: Is "Environment.WorkingSet" what you're looking for No, Environment.WorkingSet contains the number of bytes of meomory that are mapped to the process. You can use WMI, here is a working example and article. ...Show All
Visual Basic print large pricturebox or form in vb6
Hi friend, I need to print picturebox or form in vb6, which contain other controls & user controls. I used several methods like capture screen or printform method but the form size which i m using is large and during printing visible area of the screen print ok but the form area which is invisible showing in black. can u suggest some ideas for the same. If u get any soln plz mail me at kishoremungel@yahoo.com regards kishor These forums are for VB.NET and there are better places to find answers for older versions of VB. Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vb ...Show All
Visual Studio VS2005 July CTP under Virtual PC - shortcutCLTDbg32.txt can't be read
I've been trying to install the July CTP of VS2005 Professional under Virtual PC SP1 which is running Windows Server 2003 SP1 and it invariably fails towards the end of the main install trying to read D:\VS\Program Files\Microsoft Visual Studio 8\SDK\v2.0\GuiDebug\shortcutCLRDbg32.txt telling me the file was not found and offering me the choice of Retry (which loops failing with the same message) or Cancel (which does a rollback). That file is on the disk and appears to be a multi-stream file. It can be opened in Notepad in the host operating system (Windows XP SP2) ie outside the VPC with no problems. Notepad displays its content ...Show All
SQL Server Very Simple MDX Question
Well, I have not had the time to dedicate to learning MDX, so I will have to ask... I am trying to the top 5 clients for each state based on unit count. I have tried using top count, but it seems to give me the top 5 clients, including ALL, etc. Any help would be greatly appreciated! BobP This might help... Without knowing what all your dimensions, hierarchies, levels and measures are called its a little bit hard to give you an exact answer but it basically needs to look like this: TOPCOUNT(DESCENDANTS(<dim_name>.<hierarchy_name>.<member>, <client_level_name>), 5, <measure_name>) The ...Show All
Visual Studio Tools for Office Globals.ThisWorkbook disappear?
I'm still facing the problem as stated at this thread , and now I can't use the basic VSTO object and the partial class of "Globals.ThisWorkbook...." Error 2 The type or namespace name 'ThisWorkbook' does not exist in the namespace 'xxx' (are you missing an assembly reference ) Help. Hey Peter Peter, From the other thread it appears that your solutuion is in a bad state, you should not be able to have multiple sheets with the same dispaly name (sheet2) in the solution explorer. Can you send me more details When did the solution start showing the same display name Was the solution under s ...Show All
SQL Server Dynamic loading of a file
I've been told by Kirk that it is possible to load a file whose metadata is unknown at design-time by using bulk insert along with a file (not a flat file) connection. He didn't elaborate though. Can anyone explain -Jamie Jamie, Bulk loading to several different tables with known metadata is simple. I don't know how one could load to a table with completely unknown metadata. The file connection works fine with the bulk insert task. If I remember this discussion, you were asking how to put a load into a foreach loop. If you had flat files with several different schema, you could name them accordingly and load into the table with the ap ...Show All
