JosRyan's Q&A profile
Visual Studio Tools for Office Merged Word Menus are not accessible after creating new word project
Hi, I created a new word project from within the Visual Studio IDE. I noticed, that the merged word menus are not accesible, although most of the word functions are accessible via toolbar or context menu. Is this a bug or did i miss any settings Thanks, Klaus Are the menus not enabled even when the designer is selected Can you send a screen snapshot ...Show All
Visual C# Formating question
Hi, all. I have a wee problem with string.Format. I'd like to write something like int data = 10; string formatedData = string.Format("Data = {{0}}", data); Console.WriteLine(formatedData); and have it output Data = {10} It doesn't of course, because string.Format is getting confused by the nested braces. Instead it outputs Data = {0} How do I best achieve my desired formating Regards, Angus Hi! Console.WriteLine(string.Format("Value={{{0}}}", 10)); {{ will be treated as { {0} is place for data }} will output as } result: {10} ...Show All
SQL Server TransactionScope
Hi, I am trying to use transactions as below: using (System.Transactions.TransactionScope scope = new System.Transactions.TransactionScope()) { //some code here // Throw an exception to roll back the transaction. // Call the Complete method to commit the transaction } I can't seem to get it working though. Have trided several things like Security Configuration on the MSDTC tab, restarted “Distributed Transaction Coordinator” Service, iisreset, different constructors on the transactionscope etc. I haven't tried running it from the same domain since this won't work with the source safe. Is it really suppose to be this " ...Show All
SQL Server use SSIS to normalise data
Hi all. I have a SQL Server table which I need to normalise. To simply what I'm trying to achieve, here's an example table... Create Table Sample( Id Integer Identity(1,1) Not Null, Data VarChar(6000) ) Insert Into Sample( Data ) Values( 'This is the first line This is the second line' ) What I'm trying to achieve is to pass the entire table. Then split each line of the Data column into it's own row. Does anyone have any suggestions as to how I can accomplish this using SSIS I've managed to find a way around this problem. The solution for me is to perform the spit in SQL server, as ...Show All
Visual C++ Using the VS.NET debugger in C++
Hello all, When debugging my work in VS.NET and stepping through it one statement at a time (with F8), I often get taken into code that's not mine. I understand that this is the code that I invoke with methods such as new and delete and what not, but is there anyway at all I can keep the debugger tracing my code only Thanks. NF Perfect. Thank you. I was assuming "Step Over" meant to skip the code and not run it altogether. Thanks again. ...Show All
Windows Forms DataGrid Enter events
Hello everybody I want to do an Enter event on the datagrid so when im selecting the current cell in the datagrid and by pressing the Enter key an event is lunched. the keypress or keyup or keydown events of the datagrid are fired when you are not selecting a cell in the datagrid. Thanks... ...Show All
Smart Device Development Background image on a panel in Compact Framework
Hi, I’m working on a PocketPC application in VB.Net on Compact Framework1.0. We are currently developing a tutorial module that reqires slide show type of presentation. Each slide contains a common panel and a label with several other controls like pictureboxes , buttons etc. The idea is to have a background image put on the panel so that the text in the labels (which are inherently transparent) will also “appear” to have the panel’s background image as its own background. Since panel does not have any “background image” property we were unable to get the desired effect. Please, suggest any alternatives t ...Show All
Visual Studio Express Editions Industrial/factory automation.....is vbnet the way to go?
I am looking to build a factory, that has 10-15 appliances which will be used in different processes. Essentially the software has to interact with the appliances, turning them on and off, monitoring temperatures, and moving parts. We have 2000 recipes (or processes) that need to be stored in memory that can be applied to our product. Our thoughts are that this would probably done with a micro-controller. Can vb be used in a microcontroller What operating system does microsoft have for microcontrollers HI There... I am Not answering the Question only Commenting... I Found the Question Interesting.. ...Show All
Windows Forms Re-Enable a DataGrid and scrollbar is gone?
I have a DataGrid with several columns exceeding the viewport of the grid. When I first disable the grid and later re-enable it, the horizontal scrollbar appears but looks like there is nothing to scroll Any solutions / workarounds for this problem Please help. Actually ended up making it a bit simpler. Every place I refer to DataGrid1.Enabled =& ...Show All
Visual Studio 2008 (Pre-release) Menu items disabled when setting a command
When I change this: <MenuItem InputGestureText="Ctrl+N"> <MenuItem.Header> <AccessText>_New</AccessText> </MenuItem.Header> </MenuItem> into this: <MenuItem Command="New" InputGestureText="Ctrl+N"> <MenuItem.Header> &nbs ...Show All
Visual Studio SolutionDir macro in post build event
Hi, I have a project with a post build event that looks like: copy $(SolutionDir)$(ProjectName)\$(OutDir)*.dll $(SolutionDir)DestFolder My MSBuild file lookes like: <Project DefaultTargets="Build" xmlns=http://schemas.microsoft.com/developer/msbuild/2003> <PropertyGroup> <SolutionFile>MSBuildIssue.sln</SolutionFile> </PropertyGroup> <Target Name="Build"> <!-- Clean, then rebuild entire solution --> ...Show All
.NET Development COMException when using System.Management,ManagementobjectSearcher
When I use System.Management to read processor serial number in Windows 98 then it throws exception of COMException class. It tells that Class is not registerd. Problem occurs only in Windows98, In Windows 2000,XP it works well. So Please can u help me or can throw some light of hope Thanks Regards, Nilesh COMException (Class not registered) Error Code is 0x8004100f Which class are you using Win32_Processor Can get the query working in 98 by using WBEMTEST Next, do you have a processor serial # for that machine Can query other classes on the Win98 box Have you checked the FAQ http://www.microsoft.com/technet/scriptcenter/resource ...Show All
SQL Server date format according to regional setting
hi all, is it possible to format a datetime value in report to display according to the shortdate format set in pc's regional setting i manage to get the parameters to display according to the format in regional setting but is it possible for fields in report to follow shortdate format btw, i can't seem to find the setting for report language under report tab in vs. i could find language under Tools -> Options -> International Settings -> Language. is it the same thing cos i've been reading other related posts and seems like the setting can be found under report tab.. Thanks! ...Show All
Visual Studio Express Editions ListView sorting question
Hi I have a ListView control called HSlist on a form which has 3 columns. The adding data seems to work OK, but the sorting is weird to say the least. Initially, I thought that the list would be sorted on the contents in the first column, so I added to the ListView with the Item containing the data that I wanted the list to be sorted on (numerical). Then I found that the list was being sorted on the second column (strings), so I swapped the adding routine so that the numerical data was now in the second column - the list now was being sorted on the first column (strings). What I want, is either to be able to dictate which column the ...Show All
Smart Device Development Can I use Visual Studio 2005 to develop Compaq iPAQ (H3600 series) applications?
Hi (a newbie question) Can I use Visual Studio 2005 to develop Compaq iPAQ (H3600 series - Model=3660) applications I have not used the iPAQ for over a year or two. If this is possible what are the main tasks I'd have to do e.g. Q1) Is the current verion of the iPAQ o/s pocket pc 2002 ok Or do I need to upgrade this to a later view If so I assume I would look on the compaq site (i.e. I guess I fishing for any constaints that may exist re my iPAQ being too old a model) Q2) I assume I'll need the VS2005 compact framework on the device itself So reading through the VS2005 doco should give me ...Show All
