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

Software Development Network >> Raj Gupta's Q&A profile

Raj Gupta

Member List

EdenZa
DavidThi808
Jon Watte
programmer127
Kimball
mabrouk
tasawer abbas
RedCoat999
vsarowatz
Daikoku
Han Duong
Landon Parks
supagu
outcast1881
Rune Gulbrandsen
Mikey The Pikey
wadnerk
Chris Lively
jte
Taylor Meek
Only Title

Raj Gupta's Q&A profile

  • Windows Forms Form.Load????

    I have a Form that load with some default data that comes from an object....when i change the default code my information does not change even though i have the functionality for changing in the Form.Load method.....Would there be any reason the form.Load would be called if the form is closed and re-opened from a parent form this .cboStartingPoint.SelectedValue = this ._VendorDetail.StartID; this .cboEndingPoint.SelectedValue = this ._VendorDetail.EndID; if i change the value of the selectedvalue on the underlying object my information in this form does not change....it only changes when i open the form for the first time.....can anyone help out with this Right my form.Load is not being called the 2nd time her ...Show All

  • Visual Studio 'Add New Item' Wizards fail without a project?

    When trying to use an "Add New Item" Wizard template from VS 2003 when no project is open we're getting an "Invalid Parameters" error. The same wizard works when adding a new project item, works in VS2005, and works in VS2003 when invoking it via DTE.LaunchWizard. Is this a bug in VS2003 Are there any workarounds This is a known bug in VS 2003 where the solution node does not properly support the necessary interface to add items to the solution. To make this work, you need to create the Misc Files project folder, and add the item to that folder. The problem is, there is no way to automatically create the folder node, it must exist before you try to add the item. This has been fixed in ...Show All

  • Windows Forms bind a datagrid to xml (Dataset)

    Hi I have a winform application which contains a datagrid. In this grid I want to show the data from a xml-file: Here I put the xml-content in a dataset: private void fnDataReadingFromXMLFile() { string filename = "D:\\VisualStudio Projects\\SMS\\SLSMSTool\\xmlContacts.xml"; //check if the file exists if (File.Exists(filename)) { //clear the DataSet contents this.datasetCustomer.Clear(); MessageBox.Show("Data reading from " + filename + " -file"); this.datasetCustomer.ReadXml(filename); } //if else { MessageBox.Show(filename + " does NOT exist; Please click" + " first the button 'CopyToXML' ", ...Show All

  • Visual C++ vc++ app fails in AfxWinMain after moving from VC6 to VC8

    Hi, I have this VC++ application (used to visualize finite element meshes) and it worked fine in VC6. I ported it to VC8 (changing all the necessary code) and got it to finally compile and build. but when i start up the application, it crashes in int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, __in LPTSTR lpCmdLine, int nCmdShow) in winmain.cpp in the following block of code // Perform specific initializations if (!pThread->InitInstance()) { if (pThread->m_pMainWnd != NULL) // <-------------- at this line and goes to InitFailure { TRACE(traceAppMsg, 0, "Warning: Destroying non-NULL m_pMainWnd\n"); pThread->m_pMainWnd->DestroyWindow(); } nReturnCode = pThread->ExitInstance() ...Show All

  • SQL Server Intermittent Connection Problems with Sql Server

    I am experiencing intermittent connection problems with the Northwind database and sql server express. The most frequent error message indicates that I am already logged in and will not allow another user. The odd thing is that even when I am locked out I can access a Northwind database from another connection on Server Explorer. I ran code to demonstrate simple binding for two text boxes, no problem. I added a project to show complex binding using the datagrid view tool, but could not get past selecting the database. I tried the same simple binding project on another computer running a beta version of VS 2005 Pro and could not connect to Northwind on that computer also. (Two different Northwind databases, different computers) ...Show All

  • Visual Studio 2008 (Pre-release) Problems with textMessageEncoding

    Hey I'm having some trouble adding a textMessageEncoding to my custom transport. After adding the encoding to my binding, something like < customBinding > < binding name ="myBinding "> < textMessageEncoding messageVersion ="Soap12WSAddressing10" writeEncoding ="utf-8 " /> < myTransport /> </ binding > </ customBinding > I get an exception thrown from Proxy.Open() "Some BindingElements were not consumed when building factory. The following BindingElements were not consumed: TexMessageEncodingElement. This might be because the elements are not in the right order... ( and a list of what order to put the elements in, which my code does ...Show All

  • Software Development for Windows Vista .xoml File

    I'm wondering how to make the .xoml file from a workflow. I see in some of the examples the .xoml file is included in a non-workflow project, but it appears to be different than just using the code seperated from workflow. Some examples are the ASPNETXomlActivationExample and the SharedPersistanceandTracking examples that Tom Lake has posted. If anyone could help me out, that would be appreciated. Thanks, Nichole In both examples the .xoml file is just a content file on the website. I am using XAML activation which reads the file using an XmlReader. You should not be editing a xoml file outside of a workflow project. The difference between the xoml file in the code separated workflow ...Show All

  • Windows Forms NotifyIcon poping up a micro-window

    Hi everyone... I was looking in the forum some issues about NotifyIcon tool, but I can't find some helpful about this little windows displayed by some programs like messenger when a new mail is in the inbox and something like that... I'm not sure if anyone else has asked for something similar... but: How can I send throw a NotifyIcon messages in a little window like a new mail or a new contact, like msn and others does Thank you very much..!! This one appears simple to use: http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp I've got it bookmarked because I'll need it towards the end of my current project. I haven't incorporated it yet though. I've looked at several and this is the one that seemed written the best and had all ...Show All

  • SQL Server Calling SSIS packages from ASP.NET - Packages with file system tasks end abruptly

    I've run into a problem with SSIS packages wherein tasks that write or copy files, or create or delete directories, quit execution without any hint of an error nor a failure message, when called from an ASP.NET 2.0 application running on any other machine than the one where the package was created from. By all indications it appeared to be an identity/permissions problem. Our application involves a separate web server and database server. Both have SQL Server 2005 installed, but the application server originally only had Integration services. The packages are file system-deployed on the application server, and are called using Microsoft.SqlServer.Dts.Runtime methods. For all packages that involve file system tasks, the above problem occurs ...Show All

  • SQL Server SSIS but want to remain on sqlserver 2000

    Hi All, Pretty unorthodox query. We would like to use SSIS for doing the ETL but the source and target (staging & Reporting) area will remain to be SQL server 2000. Do you think its possible Please let us know if its possible. Thanks in advance. As long as you have one server that's running 2005 (for development and to actually run the SSIS package), I think you'll be fine. I believe you'd simply have to set up your source and destination as OLEDB connections within your SSIS package. ...Show All

  • Smart Device Development How to use PlaySound API to play sound from a Resource?

    Hi. I'm developing a Smartphone app using VB.Net 2005 and the Compact Framework v2. I want to play a sound that is in a resource of my EXE, using the PlaySound API. Declare Function PlaySound Lib "coredll.dll" ( ByVal pszSound As String , ByVal hMod As IntPtr, ByVal fdwSound As Integer ) As Integer To do so, according to the PlaySound documentation, the second parameter of the API - hMod - needs to be the "Handle to the executable file that contains the resource to be loaded." But I can't find a way to get the handle of my EXE. Any help is appreciated. Tony Ilya, If you take the time to fully read the bug report (feedback) you'll see that... ...Show All

  • Visual Basic Storing the Contents of a textbox control to a text file

    I have a Form1 that has 4-controls textbox1 and tbox2 botton1 botton2 I want to enter text info on the textbox and send it to a textfile.txt file I am getting six declaration errors on fs and sw, Why ***************Here is my Code************************************************** Imports System Imports System.IO '\\ Create a Form2 add two buttons and two textboxes '\\ Name one button Save the other Recall ' Storing the Contents of a textbox control to a text file Public Class Form2 Dim sw As StreamWriter Dim fs As FileStream fs= new FileStream("c:\textdata.txt", Filemode.Create) sw= new StreamWriter (FS) Sw.write (TextBox1.text) Sw.write (TextBox2.text) Sw.close() fs.close() End Class Thanks Guys, Fernando Pen ...Show All

  • Visual Studio Team System 'Merging' new solution

    This is probably a bit of a n00b question, but here we go: We have three branches, a Production (trunk) branch, a QA (testing) branch, and a Development branch for day to day work. When the time comes to merge changes up to the QA branch, if I just want to merge my one new solution, how do I do it without merging the whole base folder For example, I add a solution that has the .sln file in $/Project/AppName, one project sitting in $/Project/AppName/src/MyNewSolution, and another project in $/Project/AppName/test/MyNewSolutionTest. In the above example, I can't merge the solution file and then the new folders (MyNewSolution & MyNewSolutionTest) as they do not have branch links to QA. Does this mean I have to branch the solution ...Show All

  • Visual Studio Team System This tool could be dangerous

    I am not a 24/7 database admin. I am project manager / development lead here and I am also responsible for several mid sized production, test and development databases. What I am trying to say, is that I am not necessarily the top expert in database administration. Because of this, and because I feel that VSTSDBP is actually aimed more at me / us than the 24/7 administrator I am concerned that this tool increases the danger of inadvertantly doing serious damage. This would be the case when a schema compare is run and one too quickly does an update. Since it is normal (I hope / think so anyway) that each instance could have different users, roles, permissions and role memberships defined (I do that to prevent the developers from havin ...Show All

  • Visual Studio Tools for Office string.contains method optimization

    Hi, In my Word customization it's necessary for me to use the string.contains method to do a line by line, word by word comparison -- .equals and the other reference check methods are not enough. String.contains is very accurate however it's a bit slow. I wanted to know if there's a way to optimize .contains' performance Thanks. String.Contains just searches string for a substring and it is doing it as fast as possible. Possibly you do have a bottleneck in some other logic of your program. I will close this thread for now, but if you have more details please re-active and someone might jump in and help. ...Show All

©2008 Software Development Network