tkunohim's Q&A profile
Smart Device Development SerialPort Component IOException issue
I have a Ipaq Pocket PC. It connects to a bluetooth GPS Receiver (COM6). Whenever I try to open this COM Port using the SerialPort component I get an IOException. I have even tried listing all COM ports on the PPC, and opening each one inturn. Some work and some throw an IOException. Does anyone have a suggestion I think you will find that even though an IOExeption is raised, the serialPort is still open. put a try catch block around the open method, and do nothing. after opening the port, try reading/writing to it. Cheers ...Show All
SQL Server SSIS Conditional Flow?
Hi, In the new SSIS how can i implement a conditional workflow without having a base task Imagine i have a FOREACH Loop based on a resultset and if a certain column have True i want to execute a certain task inside the loop and if is false i want to execute another one... How can i achieve this Best Regards, Luis Simoes Hi Guys, I too have struck this issue and have used the dummy sequence to facilitate conditional workflow. However, this really is a kludge, and is this going to be addressed in future versions of SSIS Michael Morrissey. ...Show All
SQL Server Printing
Hi I created a report in MSRS and i am able to preview the same, but i dont have any options to print the same. Is there any line of code / buttons to add for enabling the same. Thanks This is an option in the IE security setting. Your users must accept to install the Activex once , then it would be transparent to them. ...Show All
Windows Forms jagged arrays don't serialise correctly as properties in the visual studio designer
Hi! I have a problem when using jagged arrays as properties. I'm using c# visual studio 2005 .NET 2.0. When I declare a propety as a jagged array, visual studio's designer seems to obmit a pair of square brackets when saving the property in the xxx.designer.cs file. Example: //my declaration public int [][] MyProperty2; //my initialisation MyProperty2 = new int [] [] { new int [] { 25 } }; //the designers serialisation MyProperty2 = new ...Show All
Visual C# How add row to dataset
I have a WinForm with a grid on it. I would like to add 2 rows to the grid using the dataset. I would like to have this happen when I click a button. Upon adding each row I would like to put a value in a column called InvNum. My dataset is called DSInvoices and the table I am intersted in in this dataset is called Hours. The instance of the dataset on my form is called dSInvoices. Could someone tell me what code do I need in the click event of this button to make this happen Thank you you should you similar code depending on your dataset name NorthwindDataSet.CustomersRow newCustomersR ...Show All
Windows Forms retrieve data from datagridview by doubleclick event
i have a table shown in a datagridview and need to be able to get the data from column 1 CustomerID in the currentrow by using the doubleclick event on the currentrow is this posible and how cheers steve ...Show All
Visual C++ How to use Microsoft Active Accessibility ?
Dear Sir, I want to get the handle of Textbox present in the web page. I came to know that it can be accessed using Microsoft Active Accessibility. I want to know that, Microsoft Active Accessibility programs can be written in C language. If possible please give me web Address. I am using NT 4.0 it is possible to write the Microsoft Active Accessiblity or what platform i have to write the programs. Please let me know any other information u required As Fiaz suggested, check out the msdn links at http://search.microsoft.com/search/results.aspx qu=active+accessibility+&View=msdn&st=b&c=0&s=1&swc=0 . Th ...Show All
Visual Basic Determining the leters in a string
Hi, am fairly new to VB and have been searching like crazy trying to figure this out with little success, was hoping someone could help. What i want to do is determine which charactes are present in a string entered by a user I have just a simple textbox in which the user enters a single word and the contents are saved to a string variable. How can I tell what the first letter of the word is and then what the second, third, etc words are Any help would be much appreciated. Thanks! Doc strVar.substring(startindex,length) so strVar.substring(0,1) gives you the first letter, strVar.substring(1,1) 2n ...Show All
Visual Basic How to change a controls padding or margin at runtime
When trying to change a button control's padding or margin at runtime, i.e. Button1.Margin.Top = 10 The design enviroment indicates the error - Expression is a value and therefore cannot be the target of an assignment. Intellisense shows the property to be read/write. Is this a bug or am I missing something basic Thanks for any help. Instead of setting the top margin directly, create a padding structure and assign that to the margin. ...Show All
Windows Forms picturebox overlaying
I was wondering if anyone knows how to add a .bmp to a picturebox, and then take a textfile, and overlay the text in the textfile on top of the picturebox. From there I would like to save the contents of the picturebox (background image and text) into a single file...such as ExampleFile.bmp. Thanks for any help. Dennis Ok...I've figured&nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Updating Your MechCommander2.proj
The MechCommander2.proj file included as part of the March 2006 CTP release is missing an item group which, although the build script executes successfully, causes the game to appear without textures, and forces you to exit because of missing data. This issue affects only the MechCommander2.proj file, that is, the XML file that is used with MSBuild. The MechCommander2.xnaproj file, which is used with the XNA Build Designer, does not have this issue and will execute normally. Outlined below is a manual process for fixing the file. 1. Using Visual Studio (any edition) or your favorite text editor, open MechC ...Show All
Visual C# Right-clicking on a WinForm class in Class View causes VC# 2005 to become unresponsive
I have a C# project created in VS2005 Standard RTM. When I right-click the WinForm class, the IDE becomes unresponsive. Task manager still thinks the app is still running but the IDE windows no longer paint properly. Anyone see this -harrier Harrier - Are you still seeing this problem Do you only see it when you're right-clicking the WinForms class (I'm assuming from the solution explorer) Can you send me a mail at karenliu@microsoft.com describing your project if you're still seeing this Thanks, Karen ...Show All
SQL Server Unable to retrieve Column information when using Ole Db Provider for sybase
Hi All, I am in process of transfering data from Sybase to Sql Server using SSIS 2005 have taken a Data Flow Task in Control Flow tab In Data flow tab, I have taken one Ole DB Source and One OLe DB Destination For the source, I am using Sybase Adaptive Server Anywhere Provider 8.0 For Destination, I am using Sql Server 2005 database In Ole Db Source Editor , For OLe Db Connection Manager, I choose Sybase Connection For Data access mode, I choose Table or View For Name of the table or the view, I choose a table by name Table1( it lists all the tables from Sybase database) When i click on preview button or Columns link ...Show All
Smart Device Development Today Screen Bottom Row Options (Notification, Contacts)??
Hello Again, I was wondering if someone new where/how to change the options which appear in the bottom left and right of the Today screen. I notice on the VS Studio 2005 Beta version of the DE, the options are "Notifications" and "Contacts". On the DE 1.0 Preview Edition, there is one option, on the bottom left, "New". In DE 1.0, the "New" option appears to be configurable in the Settings-Personal-Menus option, however, the VS Studion 2005 Beta DE lacks the "New" configuration option. Are these items configurable in the VS 2005 Beta DE Thanks very much! ...Show All
Visual C# writing images from SQL in a table...
Hi, I would like to know if there is a way to print in a html page a table with 4 images, and it's description queryed from SQL Server... Like, I have already a page, and in the body, I have <% response.write(table) %> And in my .cs I insert all html....and together with this html I need to put the image !!! Thanks what you'll need to do is make additional http requests to another file that will retrieve the binary from SQL Server, and stream it back to the client. That's the way of the image rendering in web browsers. ...Show All
