gurvinder_gill's Q&A profile
Visual C++ Visual Studio 2005 Service Pack 1 Beta
As part of the continuing effort, Microsoft is announcing that Visual Studio 2005 Service Pack 1 (SP1) Beta will be released the week of September 25, 2006 For more details, please check out the below links: http://connect.microsoft.com/VisualStudio http://connect.microsoft.com/VisualStudio/content/content.aspx ContentID=3311 https://connect.microsoft.com/programdetails.aspx ProgramDetailsID=857&wa=wsignin1.0&wa=wsignin1.0 Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C# Errors while creating mmc snap-in with VS 2005
Hi, I'm new to mmc development with vs 2005. My dev env is VS 2005., Win XP SP2 I'm trying to run the following code: (sample from microsoft) using Microsoft.ManagementConsole; using System.ComponentModel; using System; using System.Security.Permissions; [assembly: PermissionSetAttribute(SecurityAction.RequestMinimum, Unrestricted = true)] namespace Microsoft.ManagementConsole.Samples { /// <summary> /// The RunInstaller attribute allows the .Net framework to install the assembly. /// </summary> [RunInstaller(true)] public class InstallUtilSupport : SnapInInstaller { } /// <summary> /// The main entry point for the creation of the snap-in. /// </summary> [SnapInSettings( ...Show All
Visual Basic comunicate using hyperterminal
Not doing this tommorrow, so dont bang your head to hard hear. Many years ago I started to interface with an old system we use for things(cant go into details) I fiqured out how to communicate with the old unit, it was through a hyper terminal through ms works 3 i believe. I could import the data in raw format, I tried text delimiter and got a bunch of data that was wrong(has got to do with how the data is pooled from the server. Its not consistant from start to finish). Any how, has anyone seen a article about a good way/or know from first hand of dealing with communications that could be deployed through VBE. I know what settings to use to communicate with the server, but I will have to fiqure out how to deal with the data an ...Show All
Windows Forms discarding user actions on a form while in busy state
Hi, I can't seem to figure out a decent way to do this. I have a small window, and I need to discard user input while performing some lenghty task. For example, if the user wants to sync the app with a server, and this takes time. The proper behavior would be to change the cursor to a busy cursor, and prevent the user from touching any control on the form. Of course, painting should still be done, and the form should be able to move and resize (user actions like move, resize, maximize, minimize). When the job is done, the cursor changes back to the default one, and the user is able to interact with the received data. I've seen various sugestions: - disable the controls (or the whole form): not good, as the appearance of the c ...Show All
Smart Device Development Call Creation in windows mobile 5.0 in mfc or c++ using ORTP or WinRTP
Hi, Can any one tell me how to make call in windows mobile 5.0 in mfc or c++ using the ortp or winrtp library and How to build these libraries in windows mobile 5.0 framework . If any one having its documentation then provide it. Thanks Anant ...Show All
Visual Studio 2008 (Pre-release) TabItems & Binding at runtime
I am attempting to create tabs based on how many records are returned by an ObservableCollection. When I set a break point I can see the ObjectInstances of AssetTabitems with the correct data within myTabData. The problem is I don't know the correct way to access those instances, here is what I am attempting in the red highlighted area. public void PopulateAssetTabs(string TabName) { ObjectDataProvider myTabData = new ObjectDataProvider (); myTabData.ObjectType = Type.GetType("Asset_Manager.AppData.TabListDB" ); myTabData.ConstructorParameters.Add(TabName); Binding bind2obj = new Binding (); bind2obj.Source = myTabData; foreach (AssetTabItems myItems in myTabData.Data) { // Cre ...Show All
Visual Studio Express Editions ListBox
I am creating a movie database program and am trying to create it so that the movie titles are displayed in a listbox on the right and the rest of the info in boxes on the left. I connected up the listbox to a databinding source and selected the displayMember and valueMember accordingly, everything worked. But when I went to add movie titles in the database in a field on the left, save, then go to another movie title, the data was changed to a number. Can anyone help the listbox and the rest of the fields retain the info. I am a complete newbie, so could you explain what to do step-by-step. Thankyou for all your help! Elliott the DataTable does have a default view. where is your source of data held how are you reading th ...Show All
SQL Server Setting Up replication on SQL Server 2000 using Distributor running on SQL Server 2005
Hi I have a setup where I need to replicate the database which is actually subscribing from another database. The current setup is all in SQL Server 2000. I need to now setup a Distrbutor on a SQL server 2005 and publish the database using this distributor to another server on SQL server 2000. Has anybody done this before. If yes what will I need to check. Can you please let me know :- 1) SQL Server 2000 which SP should be installed to support this enviroment. 2) SQL Server 2005 which SP should be installed to support this environment. 3) Any thing that I need to look out for. Thanks for any inputs on this. Regards If you are running Win2K3 on your publisher and i ...Show All
SQL Server Can a Stored Procedure called from an Inline Table-Valued Function
Hi, I'm trying to call a Stored Procedure from a Inline Table-Valued Function. Is it possible If so can someone please tell me how And also I would like to call this function from a view. Can it be possible Any help is highly appreciated. Thanks Thanks for the reply guys I really appreciate that. But I was just wondering if there is a way I can access the stored proc results from a view. ...Show All
SQL Server select values from multi-value parameter
Is it possible to pass values from UI to a multi-value parameter in a report and from this report, select values from this multi-value parameter to finally display data Thanks! Follow up question please. When I get values for a multi-value parameter from SP, values are displayed with checkbox on their leftside, thus, allowing me to select from values. But when I supply values from UI using ReportParameter[] class, values displayed in report do not have checkbox beside them, and thus, not allowing me to select from those. I'd like to display values with checkbox please. Thank you. ...Show All
Windows Forms How do i bring my application to foreground
I am facing problem when my application icon is clicked in the taskbar then it does not come into foreground as any other windows application does.Even though i have written code for window activate method.This is on c#. I'm having the same problem as above. My app listens out globally for a particular key press (Win+P) and is supposed to get focus / activate when the keys are pressed. This is my current code: if (this.WindowState == FormWindowState.Minimized) { this.WindowState = FormWindowState.Normal; } Activate(); When I press my keys I can see the app activating: it's taskbar item flashes and a text box inside of it gets a blinking cursor, but the the app will remain behind other windows and will not be focused. To make thi ...Show All
Visual C# Need advise in programming C#.
Hi, I am wondering if anyone can help me or point me to the right direction. Currently, I can program applications in C#. What I am lacking is the know how to setup a proper application structure. Right now when I create a project/application, everything goes in one *.CS file (with form) which works but not professional looking when you peek behind the scenes. I need advise on properly setting up a project so I can, maybe, create other *.CS file to move out procedures/functions, database related stuff, etc. Any books that can help me Can anyone help. Thanks, Rick.. You can divide your application into different layers as per your need. You can use Microsoft Enterprise Library/Application Bloc ...Show All
Windows Forms Datagridview formatting inside a tab control
I've been trying to figure this out for some time. I've searched for answers for people doing similar things but I am having no luck. I havegot a datagridView, populated from a database, inside of a tab control. It's 4 tabs in. I wrote some code to change the formatting of rows that contain a certain value in a certain column. This code puts a strikethough and changes the font to red. If I use this code on a form outside of a tab control, I have no problem just executing it in the Load event of the form and then on the sort event of the control. I can't get the control to format properly when inside the tab control. I've already tried adding the code to every event I can think of including form load, TabPage Enter, Tab Page Leave, go ...Show All
Visual C++ pointer help
Hello, I have a confusing beginner question. If I pass a pointer as an argument and then the original variable loses scope, but the pointer retains scope, since the pointer points to a variable that no longer exists, is there a chance the memory the variable occupied could get written over, therefore making the pointer point to something else I hope this makes since. Thank you! As you get used to the language, you will learn to avoid a myriad such ways to corrupt pointers. Things that I have encoutered included taking a pointer to an item on the stack then storing it in a global variable, returning a pointer (or reference) to a local variable. Deleting something on the heap, but not realizing you had ...Show All
Visual Studio Express Editions Visual Basic 2005 Express Edition Data Binding is not updating the database
Hi Microsoft Community, I'm a new visual basic developer and am using the visual basic 2005 express edition with sql server 2005 express edition. I've been going through some lessons and have encountered a situation that I'm hoping someone can identify what the issue is. When creating a form with listbox and textbox components, I first request data from a table called customer. I'm using a table adapter to manage the connection, request and response from my sql server express database called mycompany. Upon the return of the data, my intermediate dataset is populated with the requested data. I'm sure the data has been retrieved because by utiizing the binding navigator component, I can view the data. I have t ...Show All
