james_m's Q&A profile
.NET Development Debugging a windows service in VS 2005
HI All, I am having problems when debugging a windows in VS 2005 . Basically i created a simple widows service by adding a timer control to the service designer setting enabled to true and interval to 10 secs. On the timer tick event it just intializes variables etc. Added an installer , and altered the settings of the ServiceProcessInstaller1 to localsytem. Complied the .vbproj and through the VS 2005 Command prompt inserting the command installutil "path of windows service.exe" to install the service. Started the service from the server explorer and placed a breakpoint at the the timer1_tick event. The problem is that the event is never triggered. I also created a windows service in VS 2003 and all worked fi ...Show All
Visual Studio Container Shape
Hi, I used the Container Shape customization in my DSL. Unfortunately it does not work anymore with V1. Does the customization not work anymore What do I have to change to get it working again. Thanks in advance Alexander Hi Alexander, The method of producing nested shapes has changed a bit in version 1. You can see a full example in the Components sample. Open the Visual Studio SDK samples browser (should be under you Start menu somewhere) and filter on DSL Tools, then open Example.Components. You'll see the code in the Custom folder in the Dsl project. The comments in the code explain what's going on. Let us know if you have any problems. Alan ...Show All
Visual Studio Team System WSS & SSL
I am fighting with the TFS setup for the fourth day in a row. I am making progress, but now I hit a brick wall. In IIS I added a SSL binding to the Default Web Site that hosts the WSS stuff by setting SecureBindings to ":443:www.tfs.fnu.mycompany.com" That worked and I can now access the WSS stuff via the https protocoll on port 443. I then updated the TFS registration info with tfsreg, in particular for the WSS stuff I changed the ServiceInterface for BaseServerUrl and BaseSiteUrl to the new https DNS name. I can browse projects just fine, all over port 443 and SSL. But project creation doesn't work. I narrowed it down to the following problem. Team Explorer seems to call the /_vti_adm/admin.asmx on the WSS administr ...Show All
Visual Studio Express Editions Registering Visual Studio?
When registering visual studio (C++, C#, Basic) I am prompted for a "Portal Code". I have no idea what a portal code is and I have no idea how I'd acquire one. And yes, I am using Visual Studio Express. Thank you for your time in reading this brief query Microsoft. Thanks for fixing the typo. Maybe in the future you could include zip code in paranthesis following postal code to eliminate any change of confusion :) ...Show All
SQL Server Authentication issue
Hello I'm using RS 2000 and although Windows Authentication has been selected on the website and the "Reports" virtual directory, when I browse to localhost/reports I get the report manager with only Home on it and a very limited menu bar whixh exists of home, my subcriptions and help. I can't see any folders. What am I missing Thanks! Are you connected to some corporate network or it is stand alone PC Are you in the Admin group on that machne if not add yourself to the Admintrators group it should solve the problem. ...Show All
Smart Device Development Serial Port
Hi all, I'm trying to write an application for my Pocket PC. The only thing I need to do, for the time being, is to read data from a Bluetooth GPS connected on COM7 of my Pocket PC (Dell Axim X50V). I've got some experience in C# programming (mostly for Microcontrollers) but I know very little about Visual C#. Looking at some samples in this forum I've managed to create an application that reads data from the Serial Port every time I press a button. It can also send data. What I haven't been able to do is to figure out how to use the DataReceived event. I just cannot make the event to trigger. I would like to use it so I only read data when it is actually received. Bellow you can find the code I'm using. Could anyone tell me wh ...Show All
SQL Server KeepTogether header does not work correctly.
I selected "Repeat Group Header" in my grouping properties. This is working fine; however, if a group is to start as the last line in a page, the header prints on that last line and then the header is printed once more in the next page. Consequently I end up with two consecutive headers with no detail lines in between. How do I prevent the printing of two consecutive headers for the same group I want to get rid of the one that occurs as the last line on the page. For all the textboxes in the group header, select hide duplicates and select that group in the dropdown below that. It's just a suggestion which may or may not work. Shyam ...Show All
Visual Basic Binding Combobox to Data Class - .Text or Lookup?
Hi Everyone, I have 2 combo boxes on my form, which are made visible when the user needs to select (text) values for “Category” and “Location” fields. These values are actually stored in the database as foreign keys. Because the available Categories and Locations rarely change, I populate the combos when the form loads. This saves me running back to the database every time they need to be captured or altered. I have bound each combo box’s “text” property to the corresponding data property in my data class. The class properties handle the resolution between the text value and the foreign key value via private data tables (i.e. lookup tables), which are populated when the class is initialised. (This makes the code in my class more readable ...Show All
Visual C# My DataSet Doesn't Work :S
Hi, In my project I have one DataSet ('Step') from this I have two tables ('Students' and 'PostCode'). I have set them up in both the same way. I can successfully call Step.Students.FindBy(PK) and the function will return either null or not null depending on the results it finds, which is what it should do. However my second table I call Step.PostCode.FindBy(PK) and it always returns null no matter what is in the database. It actually returns null for everything, select, count etc. It looks to me like the dataset isn't actually connecting, even though my GridView successfully shows the content of the table I originally thought the changes weren't being committed but even when I use AcceptChanges() it still doesn't work. One thought I have ...Show All
Windows Forms VB .NET DataSet adding unknown number of DataTables
I am trying to load from another class unknown number of datatables into one dataset. VB .NET dim dsTmpSet as dataset for i = 0 to count -1 Dim dtTmp as datatable = new datatable(i) dtTmp = a data table returned by another class dsTmpSet.tables.add(i) next This just crashes the for loop. What would be correct way to read my tables to the dataset. Two points - I noticed this in your first example, but was unneccessary for solution. The table variable is being instantiated as a new datatable, and is then be overwritten. There is not need to instantiate a new table. Main error that I have noticed now is the Dataset is not instantiated. This is a working example - Private Sub Form4_Load( B ...Show All
Software Development for Windows Vista Control Media Player from DAW usb device
I doubt it works OOTB, but wouldn't it be cool if you could use a device like this http://www.frontierdesign.com/Products/TranzPort To control Media Player. It works with iTunes so how can we make it work with Media player (add-in) We discussed this at one point in the development cycle, and it would be cool. Unfortunately we decided not to make the necessary changes as there are other options for Windows Media Player (HID controls on the keyboard, etc.) and Media Center has it's own remote control. I think that exposing those transport controls in a future version so that other hardware controllers could be used would be interesting, and I'll make the suggestion to the appropriate team(s). ...Show All
Visual Studio Team System Multiple DataSources
Greetings, I need help in designing a web test that does the following: Connect to Web Server 1 Create Employer 1 Create Employer 2 Connect to Web Server 2 Create Employer 1 Create Employer 2 I have not had success, I created web test with two data sources: Datasource 1 has the Web Server Info Datasource 2 has the Employer Info My web test configuration is set to run 1 test per datasource row. This is what I am getting when I run the test: Connects to Web Server 1 Creates Employer 1 Connects to Web Server 2 Creates Employer 2 Whats the recommended path to get the results I seek Thanks in advance. -BMonzon To solve your above problem, use DataSource1 with Access ...Show All
Visual C# Get window handle
Hi All, Is there any possibility of getting the handles of all windows which are present in the taskbar. I need to track down which window is being closed and display a message stating the file name of the closed window. You want to get all the system processes and iterate through them checking the Process.MainWindowTitle if the string is empty then the process *probably* doesn't have a visible window. This code will fill a List of all the handles: Process [] processes = Process .GetProcesses(); List < IntPtr > windowHandles = new List < IntPtr >(); foreach ( Process process in processes) { if (process.MainWindowTitle != string .Empty) { windowHandles.Add(process.H ...Show All
Community Chat I lost My Pictures
Hi there, I wonder if anyone is kind enough to lend me a hand. When I was rearranging My Documents, I carelessly deleted the My Pictures folder. Since then the My Documents folder has no more the My Pictures folder. I wonder how can I do to regain the My Pictures folder in the My Documents folder. Many thanks Michael Thanks a lot, spotty. Unfortunately, I had already removed the My Pictures folder from the Recycle Bin. Do you have another idea about that. Thanks again!!! ...Show All
Visual Studio 2008 (Pre-release) Setting up tracing in wpf application
Using the project type "Windows Application (WPF)" in VS 2005 I cannot make use of the app.config to setup my tracing like the following example, since it (the app.config file) is just not created anymore. app.config: ... <system.diagnostics> <switches> <!-- definitions... --> </switches> <trace> <listeners> <!-- definitions... --> </listeners> </trace> </system.diagnostics> ... What would be the best way to setup tracing in a similar manner in a WPF application. Suggestions greatly appreciated. Just add an App.Config file Right Click on Project, Add->New Item->Application Configuration File Regards Neil ...Show All
