Ayman Badawi's Q&A profile
Visual Studio Team System distributed development environment
Background: We have a distributed development environment and some development is outsourced. We have all the code in team foundation source control. The offshore team does not have access to the server due to firewalls. They ship us the code and we need to merge it into our source control. Question: What is the best way of merging their code into source control We tried the following but did not work: 1) Do a global checkout to my workspace 2) From windows explorer, overwrite all the files(source files as well as project files) 3) Do a checkin. I was hoping that I would be prompted for resolving the changes at s ...Show All
Windows Forms dataGridView; selecting cells
When the user presses the enter key, I want the next cell (in the same row) to be selected. How can I achieve this in a dataGridViewControl Instead of determining the next cell by hand, I found it more convenient to simply reuse the TAB-Key behaviour (basically I wanted to behave the Enter-Key the same as the Tab key): public class HorizontalDataGridView : DataGridView { protected override bool ProcessDataGridViewKey(KeyEventArgs e) { if (e.KeyCode == Keys.Enter && moveHorizontally) return ProcessTabKey(Keys.Tab); else return base.ProcessDataGridViewKey(e); } protected override bool Process ...Show All
Smart Device Development PocketPC SerialPort and turning off/on the device
Hi, Here a simple C# example that reads data from a GPS Device Assume two Buttons on the form and one Textbox. Further a SerialPort with the DataReceived Event handled in the form. public class Form1 : Form { public delegate void SetText ( string strPar); public SetText myDelegate; public Form1() { InitializeComponent(); } private void Form1_Load( object sender, EventArgs e) { myDelegate = new SetText (SetTheText); serialPort1.BaudRate = 4800; serialPort1.Handshake = System.IO.Ports. H ...Show All
Visual Basic Visual Basic 2005 Express Edition
I have installed VB 2005 EE from a MS cover disk. When I open File | New the Windows Application icon I expected to find is not present. How do I create this icon Malcolm Thank you for your reply. I do not have Microsoft Visual Studio 2005. I have Microsoft Visual Basic 2005 Express Edition Beta 2. According to a magazine screen shot there should be five icons in the New Project dialogue under the heading Templates: Visual Studio installed templates I have three icons at this location & they are: Class Library, My Movie Collection Starter Kit & Screen Saver Starter Kit. There are two missing icons namely: Windo ...Show All
Visual Studio Team System Team Suite not working -- Beta 2
I have the foxed VS 2005 Beta 2 with 3 DVDs. I installed 2 DVDs: VS2005 Team Suite, and SQL Server 2004 CTP. (The third, Team Foundation Server, required a W2K3 server that I do not have.) The Team Suite functionality, such as the Logical Designer, does not seem to be present. I even tried a fixup installation. This may be ignorance on my part. What does it take to access or activate the Logical Designer I don't believe that Team Foundation Server is required. Or is it I want to use the plain vanilla Visual Source Safe for source control, rather than Change Management from TFS. Ye ...Show All
Visual C# CS0184 should be a compile error
C# "is" operator may return inconsistet result with CLR specifications. So I think warning CS0184 should be a compile error. CLR allows to cast a DayOfWeek[] object to int[] because the undertlying type of DayOfWeek is Int32. 2 4.3 castclass – cast an object to a class Description: The castclass instruction attempts to cast obj (an O) to the class. Class is a metadata token (a typeref or typedef), indicating the desired class. If the class of the object on the top of the stack does not implement class (if class is an interface), and is not a subclass of class (if class is a regular class), then an InvalidCastExce ...Show All
Windows Forms Running file from app
Can someone point me in the right direction as to how you can "run" a file from within my program. E.G. I want to use the default image viewer in windows to open a .jpg, or play a .mp3, etc. i.e. System.simulatedoubleclickingafile("pathtomyfile/myfile.mp3") Thanks for any help. Rune Hi, Is your problem solved Thank you, Bhanu. ...Show All
Smart Device Development Capture Image??
Hi everyone, I'm new in compact framework. For my graduation project I need capture still image from pocket pc's camera , later I'll make some operations (image processing). DO you know any package , plug-in , sdk etc.. for take image from pocket pc's camera in .NET(C#) Thanks.. how about windows mobile 2003 is there any api for mobile 2003 Thx ...Show All
Software Development for Windows Vista How to grant access to remote HKLM values without giving away the farm
What besides hive file permissions and key/value permissions limit a domain user from seeing values in a remote HKLM I am storing configuration information for a complex networked solution in values under Software under HKLM on one computer in the network. Microsoft.Win32 provides nice routines for remote registry access. Until recently everyone using the system has been a domain administrator. But now I have a few folks who are not domain admins and can not read the remote HKLM registry settings. I have tried going in with REGEDT32 to grant this one user various kinds of access to the keys, but still they can not read the r ...Show All
Visual Studio Express Editions Nobody can help me?
My problem is this: I can see old proyects but when I start a new proyect in visual basic express, proyect types, templates, name are blanks and with with no options and the OK button are unables. I tried to reinstall but its another error message. I tried to unninstall visual basic but appear the following message:"Setup is unable to determine a valid ordering for the installation. See the error log for further details.". But I can't find this log file. Please can somebody help me. hi, there is express edition installation forum you can ask this question there to get better answer :-) best regards ...Show All
Visual C# Event from a web browser
Is there a way to get an event from a web browser (which would be a user clicking on a link), to a running C# application There is a Navigating event which is fired just before the WebBrowser navigates to a new document. Realize this event fires anytime the location of the document displayed in the WebBrowser is changed, whether it be by clicking a link or programmatically. ...Show All
Windows Forms How do I skip a column using tab key in a datagridview
I have a entry system. If a user enter a itemcode in column1, then the description for that item is displayed in column2. So my next entry is in column3, but I have to press tab twice to get to column3, from column1. How can I move directly to column3 using the tab key Hi, Desperate, You can set the column for “read only” to keep people from typing into it (do this from the “columns” property on the datagridview), but AFAIK there’s no intrinsic way to skip over a column when tabbing. To do this programmatically, you’d really need to do something like track the KeyDown event on the datagrid view, see if th ...Show All
SQL Server Error encountered while installing SQL Server Express Edition
I encountered an error when attempting to install Visual Basic Express Edition RTM. During the setup, I selected MSDN Express Edition and SQL Server 2005 Express Edition. Specifically, the SQL Server 2005 EE part of the installation failed. Here's the error I received: Visual Basic 2005 Express Edition Setup Error occurred during setup Visual Basic 2005 Express Edition has been successfully installed. The following component failed to install: Microsoft SQL Server 2005 Express Edition x86 I had not installed any betas on this particular PC; however, I had already installed Visual Studio 2005 Pro and SQL Server 2005 Developer Edition. ...Show All
Visual Studio Tools for Office error in retrieving a .xls file.
Hi guys, im currently dev a prog that used asp.net to generate .xls reports. the report will actually use a template found in /template to generate the r eport. thereafter, will save to the destination /temp before being retrieved . im running it on microsoft server 2003. apparently, there is some problem with generating the report. it keeps returning me a System.IO.FileNotFoundException. i've checked the permission of excel, the templates but apparently, that is not the cause. Program wise, not possible because 1 out of 5 type of report is working fine . any advice also, i got this errors in the event log.. Detect ...Show All
Visual Studio Express Editions Visual C++ 2005 Express Edition trouble
I had the beta version and uninstalled it as directed on the site, seemingly without problems. I then installed the C++ Express Edition, again without problems. Though when I load it I get the error: Package Load Failure Package 'Visual Studio Explorers and Designers Package' has failed to load properly ( GUID = {8D8529D3-625D-4496-8354-3DAD630ECC1B} ). Please contact packe vendor for assistance. Applicaiton restart is recommended, due to possible environment corruption. Would you lie to disable loading this package in the future You may use 'VCExpress /resotskippkgs' to re-enable package loading. Then, I think due to this, I get the fo ...Show All
