Yatharth Gupta's Q&A profile
Smart Device Development Trouble with Anchor
I am programming VS 2005 for window mobile 2005 w/ the vga smart phone emulator. I dynamically create a Label l. I add it to an Array of Label ls, and the controls collection of the form. If, I anchor it Left it displays on the form, but if I anchor it to the right it is moved off the display area. If I do not anchor it, the right side list box displays fine. Is this a bug If I comment out the bold line below it displays fine. But it is ...Show All
Visual C# Finding Object types and Properties at runtime
I've declared a class Shape with 4 Properties all of type String and named them FirstSide, SecondSide, ThirdSide, and FourthSide. I also have a static helper class with a method: Public static void Populate(Object inputObject) This method can take different classes as arguments at runtime and then set each of the Properties of the underlying class. So I pass: Shape myShape = New Shape; Helper.Populate(myShape); Within the Helpe ...Show All
Visual Basic Visual Studio 2005 Express Edition
Today I installed Visual Studio 2005 Express Edition on my work PC and when I went to launch it the program appeared briefly (I saw the shell of the program), and then it closed a split second later. Is this because I have Visual Basic 2003 Standard installed Am I wise to explore Visual Studio 2005 Express Edition Will it have features that blow away Visual Basic 2003 Thanks! Hi, No, ...Show All
Visual Studio Team System IdentifiersShouldDifferByMoreThanCase
have run FxCop on a project below is a section of the code from that project that FxCop picks upon: protected string reportName = ""; protected string reportDescription = ""; protected int reportGroupID = 0; p ...Show All
Windows Forms How to get the textbox of a combobox control?
I have a need to operate on the textbox of a combobox control. I looked thru MSDN doc but could not find a way. I wonder if it is totally possible... This is not possible. Contrary to popular belief (and common sense), the combo box does not contain a textbox control within it; the entire combobox is implemented by the operating system as a single control, not a combination of other controls. The only methods available to operating on the ...Show All
SQL Server Is SSIS slower than DTS????!!!!!!
I am new to SSIS and probably doing some mistake while transferring data from oracle source to oracle destination. Please guide me.. In our project we need to transfer nearly 80 GB data from old system (Oracle 9i) to new system (Oracle 10 G Release 2). To do this exercise we are testing and comparing performance and cost effectiveness between different tools like SSIS, DTS and SQL * Loader (oracle built in tool). ...Show All
Visual C# How in the world?
I have a text file that I am reading that looks like this: "2002", "1", "500", "2003", "1", "501", "2001", "1", "500", "2000", "1", "503", "2001", "2", "500", "2000", "2", "540", "2003", "2", "550", "2002", "2", "523", The first column is 'year', the second is 'internal/external (1 means internal, 2 means external)', and the third is 'amount'. I want to use these numbers to make a report that looks like the following: Year: &nbs ...Show All
Windows Forms DateTime in Datagrid
Hi there, i fill a datatable with a stored procedure and one of the fileds is a datetime datatype. But when the datatable is linked with the datagrid only the date (01-02-2005) is displayed. I want the time also in the datagrid. It is&nbs ...Show All
.NET Development Binding to a datagrid
Can anyone help with this one Have a form with a listbox and 5 textboxes, by clicking the different customer id's in the listbox this then displays the relevant info in the textboxes which is first name, last name, city, state and zip code, this works fine but I'm trying to display at the same time the order details for each selected order id in a datagrid but can't get it to work The order details to be displayed in the datagrid from the databa ...Show All
Windows Forms OwnerDrawFixed TabPage in .NET 2.0
Hi, I'm wanting to use a bold font on some of my tabpage headers (the tabs themselved). Having searched the forums there is code that showns how to draw a disabled tabpage by using DrawMode = OwnerDrawFixed. I thought I could adapt this code but because my app is using XP visual styles I'm finding it hard to mimic the XP style tabs. Does anyone now of a way to change just the font in .NET 2.0 tabpages Thanks for your help Graham ...Show All
Smart Device Development how to remove "+" before a tree node
hi, My project is built on windows mobile 5.0 pocket pc,vs2005.I use the following code insert a tree node: TVINSERTSTRUCT InsertStruct; InsertStruct.hParent = hParent; InsertStruct.hInsertAfter = TVI_LAST; InsertStruct.item.mask = TVIF_TEXT |TVIF_IMAGE |TVIF_CHILDREN; &n ...Show All
SQL Server Excel XP - Cannot connect to OLAP 9 - Analysis Services 2005
MS Excel XP on Windows 2000 fails to connect to OLAP 2005 Cube with the OLAP 9 Provider. Excel gives the error: <initialisering datasource failed>. The same error appears when I try to connect to OLAP 8 cubes. Before I could access OLap 8 cube, I had to reinstall Office XP. Windows XP with Office 2003 works fine. It can access both OLAP 8.0 and OLAP 9.0 cubes. Does the new OLAP 9.0 provider only works&nbs ...Show All
Visual Basic vb6 convertion
I am porting a project from vb6 to vb.net 2005 and I cannot figure out one convertion. 'This Function gets the text of the window Private Function GetText(Get_hWnd As Long) As String Dim lenTxt As Long, retText As String lenTxt = GetWindowTextLength(Get_hWnd) + 1 retText = String$ (lenTxt, " ") GetWindowText Get_hWnd, retText, lenTxt GetText = retText End Function The bold function is what I cannot figure out. I kn ...Show All
.NET Development Single .NET executable - linkers
The guys at http://thinstall.com/ claim that with their product, you can create a single .NET executable, and run it directly off a CD-ROM, or just copy it to any location, whether the .NET framework is installed or not. Any experiences Thanks, Eyvind. I think the legal implications must have been handled by now -- this product has been out a while. Security is an issue, but it has always been the same wi ...Show All
Visual C# Checking if a Form is running
Hi. Could some1 explain to me how to check if an instance of a form is still running...I am doing a program with a lot of timers, and I want to check if one of the forms is running, if it is not I dont't want to open a new instance... Hello By using the following code, you can loop thorugh the instances of the currently opened forms FormCollection fc = Application .OpenForms; ...Show All
