Software Development Network Logo
  • IE Development
  • Windows Forms
  • Visual Studio
  • Windows Vista
  • Audio and Video
  • Visual C#
  • Game Technologies
  • SharePoint Products
  • .NET Development
  • VS Team System
  • Microsoft ISV
  • Visual FoxPro
  • Visual Basic
  • Smart Devicet
  • SQL Server

Software Development Network >> Gurpreet Singh Sawhney's Q&A profile

Gurpreet Singh Sawhney

Member List

SQLScott
KarlZheng
tronix
arthurmnev
SknkWrkngGrp
Ather.
Nathaniel Chan
Pontius
Pascal Mignot
cohnerap
hemo
ICP-Fan
LightTamer
ttme
Robin101
Balu Vasudev
Jamie Thomson
NyaRuRu
Charles Tam
JPC16
Only Title

Gurpreet Singh Sawhney's Q&A profile

  • Windows Forms Uninstall, leave config files

    Not sure if I should stick it here but a separate forum for deployment issues seems to fail. A deployment project I've created for my application removes and reinstalls a config file from the setup files. As I'm developing server applications that need some tweaking in the app's config file it is a pain to manually backup a config file after a redeployment of a next release. Is there a way to prevent the config file from being deleted upon uninstall and overwritten on reinstall The File Systems folder in my deployment project does not show the config file(s), therefor I cannot specify selective settings for the config file. I thought of using the machine.config file but these settings really belong in a seperate config file with the applic ...Show All

  • Visual Basic Putting a function into another function

    I can't find a clear answer to this problem. What am I doing wrong I am having problems writing this piece of code. it is supposed to be a customized function that has within it another function. It is supposed to see if content is Non Numeric. If it is non numeric, a messagebox is displayed, if it is not the message box is not activated, and the software continues to the next argument. Here is a sample of the code: Function TextIsNotNumeric( ByVal txtBox As TextBox) As String If Not IsNumeric(txtBox) Then MessageBox.Show( "input is Not Numeric - Re enter" ) End If End Function 'and this part is where I call the code in the main program Private ...Show All

  • Visual Studio Express Editions .dll help

    hello. I will explain my problem I have an application, in that is a webbrowser and I want it to switch to an url on a user specifiet time. but now. I want the code (which I already made) in a remote .dll file (or another one, if you can recommend one) with all the url's it should go to. Example: Select Case timername Case 0 WebBrowser1.Navigate( "URL" ) timername = 1 Case 1 WebBrowser1.Navigate( "URL" ) timername = 2 End Select Why do I want it in a remote So the application can update it when I have an update for the url's and not have to update the whole application. So how do I do that (I don't want it in the resources but in a folder on the hardisk (C)) Note: this application has a use! Umm... y ...Show All

  • Visual Studio Express Editions Does Express support the EnvDTE COM interfaces

    Using Professional Edition of Visual Studio 8 I use the following interfaces: EnvDTE80::DTE2 EnvDTE::Window EnvDTE::_Solution EnvDTE::Project EnvDTE::Properties EnvDTE::Debugger EnvDTE::Events EnvDTE::_DTEEvents EnvDTE::Breakpoints EnvDTE::Documents EnvDTE::Document Accessed via VisualStudio.DTE.8.0 and imported thru: // EnvDTE #import "libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2" version("8.0") lcid("0") raw_interfaces_only // EnvDTE80 #import "libid:1A31287A-4D7D-413e-8E32-3B374931BD89" version("8.0") lcid("0") raw_interfaces_only Are these available with the Express Edition Thanx In a Webcast about Visual Studio extensibilit ...Show All

  • Visual Studio Team System I need help in implementing this rules in my FxCop project

    Hi, In my FxCop project I need to implement the following rules, a. All Classes should be static. b. Initializing of Empty dataset should be avoided can anyone help me in implementing this rule. Thanks in advance Venki for point a, I tried the following public override ProblemCollection Check( TypeNode typeNode) { if (!typeNode.IsStatic) { //class is not static but this always returns true. For testing I used a class for e.g like public class MyTestClass { public void RunMe() { } } regards Venki ...Show All

  • Windows Forms DataTable parameters from textbox on Windows Form

    Hello, if i want to perform an SQL query from an access database file, and then populate the data on a DataGridView, how will i set a DataTable parameter value to be equall to the value of a specific textbox Thank you. Hi, I'm assuming VS2005. Create a new Dataset in your project. Open it with the Dataset designer. On the design surface, right-click and chose "Add TableAdapter". Follow the wizard instructions to connect to your Access database and create a SELECT query that will define the structure of the DataTable. Once you have this setup, right-click on the newly created TableAdapter, and select "Add query". Now you enter a new SELECT query, but you specify a ...Show All

  • Smart Device Development Regarding IMessageFilter problem

    hi, I m trying to use IMessageFilter in .net 2.0.I got it from OpenNetCF. But its giving error. Can any help me in this Thanx in advance I m getting following error:: Error 1 'DeviceApplication2.MessageFilterClass' does not implement interface member 'OpenNETCF.Windows.Forms.IMessageFilter.PreFilterMessage(ref Microsoft.WindowsCE.Forms.Message)' 31 D:\WM_Projects\DeviceApplication2\DeviceApplication2\Form1.cs 18 DeviceApplication2 plz help needed. Wht i want to do is: Whenever user starts any application else than mine, when he presses the Enter or Return key, I want to handle this event from my application. Infact can u plz tell me How can i have value for WM_KEYUP and RETURN key Thanx in adva ...Show All

  • Internet Explorer Development IE 7.0.5700.6 problems

    We use an F5 Firepass appliance for remote SSL VPN connections. After installing IE 7 we are no longer able to connect to the VPN. The F5 ActiveX components in the browser do not appear to run correctly on the new browser. Does anyone else use an F5 and have the same problem the best place to ask your question would be here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.internetexplorer.general&cat=en_us_28cca3eb-7037-4d4f-bde1-d8efee1f1420&lang=en&cr=us ...Show All

  • .NET Development Error in installation of dotnetfx3setup.exe

    Hello, I ran the vs_uninst_winfx.exe tool. When I tried to run the dotnetfx3xsetup tool, I got the following error in the file dd_dotnetfx3error.txt in the user temp folder. Please direct me to the correct forum for this question. As always, we need this resolved as soon as you can. Thanks Jay Fischer UNO Software Development Department of Health and Hospitals for Louisiana [10/02/06,10:40:49] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation. " [10/02/06,10:40:49] WIC Installer: [2] Setup Failed on component WIC Installer [10/02/06,10:40:55] WapUI: [2] DepCheck indicates WIC Installer is not installed. [10/02/06,10:40:55] WapUI: [2] DepCheck indicates Microsoft .N ...Show All

  • Visual Basic Combo box (again)

    Hi guys I am having a few problems with combo boxes, i have inherited a combo box to add some more features, i also provide a data view as the datasource, this side is working well. I have the dropdown style to dropdown and the autocomplete mode to suggest append. If the box has focus and i hold alt + arrow down then the list displayes. If i type for example 'a' whilst the list is dropped down a further list is displyed with my selection, if i highlight my choice and then press enter then the box is empty. If i use tab then my selection is displayed. is this correct or am i doing something wrong here i have experimented with different autocomplete modes. Regards Steve My apologies Spotty, thank y ...Show All

  • Windows Live Developer Forums Music Identification

    Hello, I'm new here. I was wondering if anyone knew how the MSN Music Identification process worked. I downloaded the msnMessengerActivityKit SDK and took a look at the 'documentation' but found nothing on the topic, maybe I looked in the wrong place I am curious as to how MSN knows what song is playing in Windows Media Player, is it a registry key Thanks. Ah I see, now the problem will be looking for them, nevermind I guess I can use something like Spy++ or Winspector. Thanks, I'll have to see how to listen to windows messages from C#. ...Show All

  • .NET Development Optimizing performance when enqueuing and dequeuing data

    In an application I have the need to enqueue data from one thread while simultaneously dequeuing it from another thread. I have already implemented it using the Collections::Queue class but I am experiencing performance problems, which I believe are caused by the constant allocation of memory on the managed heap (when enqueueing) and deallocation by the garbage collector (occasionally when dequeuing). I currently have around 1200 enqueues and dequeues per second (around 6 of each every 5 ms) but I sometimes see glitches of up to 20-30 milliseconds between enqueues (and that's with an asymmetric process - the dequeues are of lower priority than the enqueues). My current approach is as expected - I allocate an object, store data in it, an ...Show All

  • SQL Server Multiple column update statement

    Hi, I'm new to SQL Server but not new to SQL because I used it with Oracle. I wonder if it is possible to do this kind of statement on SQL Server: UPDATE TableX M SET (M.column1, M.column2, M.column3)= (SELECT T.column1, T.column2, G.column3) FROM Table_Y T, Table_Z G WHERE join condition)) WHERE EXISTS (join condition for TableX) Basically, I'd like to update multiple columns in one statement but for some reason I can not get it to work. What would be the equivalent on SQL Server Thanks for the help, Laszlo M Hi Laszlo, UPDATE TableX SET column1 = T.column1, column2 = T.column2, column3 = G.column3 FROM TableX M INNER JOIN (TableY T INNER JOIN TableZ G ON T.column4 = G.column1) ON M.c ...Show All

  • Windows Forms Limit bound fields in custom databound business object.

    I have created a base class to inherit from to create simple business layer objects that can be bound to a grid. I do this by inheriting ObjectModel.KeyedCollection( Of keyType, itemType) for the container object, and implementing ComponentModel.ICustomTypeDescriptor on the item object. This all works fine, but I would like to figure out a way to exlude some of the properties on the item object from being bound to the grid. It would seem that simply excluding the properties to be hidden from the PropertyDescriptorCollection would do the trick, but no, this simply causes an error, "A field or property with the name 'FirstExludedProperty' was not found on the selected data source". Any help would be greatly appreciated. ...Show All

  • .NET Development Setting CPU priority of controls

    This feels like it should be easy but I can't find how to do it... I want to set the priority of several controls on a form to give one control all the cpu bandwidth it needs and the others get what's left. I'm picturing something like mycontrol1.priority = high mycontrol2.priority = low And the high one gets the bulk of the CPU time. Any way to do this easily Specifically, I have a windows media player control playing back specific video clips in response to events coming in from some other controls. The other controls use a lot of CPU power (about 60%), making playback jerky. I basically want to give the WMP priority when its playing over the other controls so it plays back smoothly and the other controls get reduced proc ...Show All

©2008 Software Development Network