Software Development Network Logo
  • SQL Server
  • Windows Live
  • Microsoft ISV
  • Visual Studio
  • VS Express Editions
  • Windows Forms
  • Architecture
  • Smart Device
  • Windows Vista
  • Visual C#
  • .NET Development
  • Game Technologies
  • Visual J#
  • Visual Basic
  • VS Team System

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

Mohit Gupta

Member List

PhilipD
WinFormer
AllanJ
Billy Feng
Andrew Lisogor
Alias_aix_13
DjP6
hegazy
Juan Carlos Velez
Meltdown61
Baz Star
M.KhoshZaban
Sashidhar Kokku
Robotsrcool
Gary Mason
borba777
SMang
vanaj
homerun
Plop69
Only Title

Mohit Gupta's Q&A profile

  • Windows Forms Client App using IE Browser control

    I've been pulled into a project that is being developed for a device that will have no web server on it, but (for reasons beyond my control) the central part of the content is hosted within the IE browser control. I have been tasked with creating controls to be loaded within the browser.  I've been reading about how to host Windows Forms cont ...Show All

  • Windows Forms .Net: Using VB to bind controls to a dataset row/column

    I am creating a VB form for which I use the control name to identify the table and column of a single row dataset. I bind the controls when the form is loaded and the data is correctly displayed as I expect.  However when I update the control (say a Textbox) the change is not reflected in the dataset.  This has been confirmed by stepping through the statements in debug mode.  I was wondering if I had missed something in my configuration or if there was an additional activity I need to perform to get the changed control property (Text) back to the recordset.  I have tried assigning a BindingManager but have had no success. ...Show All

  • Windows Forms Adding a new "blank" record to edit

    I have a bunch of controls bound to a dataset. When I bring up existing data and make edits, all is well. But I'm missing the boat completely when it comes to adding a new blank record to be filled in.  I try adding a new row, but just get DBNull exceptions. Where am I going wrong You're probably having the "two different&n ...Show All

  • Windows Forms How To Use The Tab Key In ListView

    Is there any way to use the Tab key to cycle thru the records in a ListView I tried this Private Sub ListView1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ListView1.KeyUp     If e.KeyCode = Keys.Tab Then       MessageBox.Show("Tab Key")     End If But the Tab key is not even recognized and the next item in the Tab order gets the focus I would like to be able to stay on the ListView and use the Tab or Shift + Tab to move up and down the rows You're welcome! Glad I could help. At first I was going ...Show All

  • Windows Forms How to handle Ctrl-Drag on design surface?

    Hi, We've got a custom designer working, we can drag items from our toolbox onto the design surface without any problem. However, we want to handle dragging while holding down control - this should create a copy of the control. When ctrl-dragging, the icon changes to a + to indicate that this is what it's going to do, but on releasing the mouse, nothing happens! The MSDN magazine example from March 2006 has the same 'feature'. What do we have to do to enable the creation of the new control Many thanks, Gary Hi, A drag and ctrl-drag off the toolbox should be handled the same way. It doesn't really make sense to m ...Show All

  • SQL Server SQL Low performance

    Dears, I am connection to SQL SERVER 2005 using an ODBC connection through ASP. I have a database with about 2 million records. When I run a huge query from a client all other clients can not work during mentioned huge query return results. Sometimes the time will goes far an all other connections will drop due to Time Out problem. Any suggestion Check indexes first. If you do a serach in a data or join tables and do not have proper indexes on a joined/searched fields, it will work very slow. Also check if your query locks records. If it does, it is also possible that other users will not be able to ...Show All

  • Visual Studio Crystal Report using ADO.NET Dataset

    I have tables which are given below Customers : custId, custName Orders : ordID, ordName, amount, custID I want to generate a report using these two tables which should look like custID - xxxx custName - xxxx OrderID OrderName 1 aaa 2 bbb 3 ccc can anyone suggest me a sample code which can generate crystal report that displays data from multiple tables of a dataset. Hi. If you are using SQL Server, you could create a stored procedure and then set your datasource to the stored procedure name. For examp ...Show All

  • .NET Development How to transfer an object between two .net app?

    I've two app that have been written in .net (server and client). I wana send a command to server via client and in response server returns an object ( e.g. OleDbDataReader). Is there any way There are just about million ways of doing this. You could use system.Net.socksts, tcpclient, web services, remoting, etc. look at msdn.microsoft.com ...Show All

  • Visual C++ Excel Chart in MFC Dialog

    I have been researching this for some time without much luck, so I am hoping to find someone to point me in the right direction! I have a program that displays outputs as graphs in MFC dialogs. Right now, I write the code to draw the graphs, but I think it would be much better if I could display it as an excel chart. I have found ways to automate Excel, but I don't want the user to need to have Excel running when they use my program. What I want is the user to begin my program. Select the dialog they want from a menu, and have that show the corresponding Excel chart in the MFC dialog. Any ideas Thanks in advance for your help! ...Show All

  • Visual Studio Express Editions LNK1104: cannot open file 'c:\Program.obj'

    I am converting 3 different projects to C++ Express. Each time I started with "New" -> "Project" - after correcting my errors, setting Includes, adding Libraries, I always get the error LNK1104: cannot open file 'c:\Program.obj' Can anyone tell me what's causing this problem From what you said I take it you are not upgrading the project. Well, the only thing I can think of which is causing this is if you have c:\program.obj in the additional includes setting for the linker. One question though which may help answer this though, do you have a source file program.cpp o ...Show All

  • Visual Studio Express Editions I have an XML encoding problem in C# express

    I have created an application for generating XML files for korean friends of mine. The end files need to be encoded iin EUC-KR, but my files seem to be encoded in utf-8, there doesn't seem to be an option to use korean encoding :( I will appreciate any help that anyone could offer. Jason D. Hi. I hope, I am not too late :) anyway, you need to use System.Text.Encoding.GetEncoding(949); to Get Korean "euc-kr" Encoding class. after that, I am sure you know what to do. anyway, 949 is the code page for euc-kr bye!!! - heejae ...Show All

  • Windows Forms VB.NET multiple selections in DataGrid

    I have a DataGrid.  I'd like the user to be able to select multiple rows in the Grid, then click a Button to indicate they are finished.  I'll then do some calculations based on the rows they selected.  I know the rows can be selected by holding down CTRL while clicking the mouse.  How can I tell which rows have been selected&n ...Show All

  • Visual Studio Team System Checking in a "checkout" lock on a branch?

    Wow this strikes me as odd.  If I want to "lock" a branch, say a checkout lock, I then have to "checkin" that checkout lock.  That's a tad confusing.  I would have guessed that applying a lock was an immediate action like applying a label. I think we (if I may lump Keith in with myself) already do think of lock as a status on a file, which is exactly why showing a lock as a "pending checkin" is confusing. Every other SCC system I've used shows a "Status" column instead of a "Pending Change" column (current state versus future-state).  In the case of VSTF, you're showing the future state in ...Show All

  • Visual Basic sending a char

    hello how can i send in visual basic a char i want to design a form with multiple textboxes and want the users to enter their text with some buttons. now i don't know how i can add the chars to the active textbox. greetings chris In the button click event set the textbox .text property Example  in the Button1 click event Textbox1.text = "foo" will set the contents of a textbox of that form called textbox1 to display foo   Now id tou want to add it to the Active text box then you need to determine which textbox is active - I would creare a variable that contains an i ...Show All

  • SQL Server Access Permissions on server scoped objects for login

    We are having problems with the response times from UPS WorldShip after switching from SQL Server 2000 to 2005. I think that the problem can be fixed from the database end by setting the permissions correctly for the user/role/schema that is being used by WorldShip to connect to the server but, I'm not sure how to do it. The Setup Client UPS WorldShip 8.0 running on XP Pro SP2 Connecting via Sql Native Client via SQL Server Login Connection is over a T1 via VPN Server - SQL Server Standard Edition on Windows Server 2003 2x3ghz Xeon processors w/ 4gb ram The user that is being used to connect runs under it's own schema and role ...Show All

©2008 Software Development Network