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

Software Development Network >> Rohit_Ghatol's Q&A profile

Rohit_Ghatol

Member List

dd3
xu jiameng
ZmrAbdulla
Bart.NET
BostonBakedBean
JerseyGRL1970
Voldy
CRathjen-MSFT
Mark Anstice
Avi Raju
Bhavin Vyas
Adil Hussain
Alan Painter
Werner_001
purnil
Jon Liperi
techbuild
maddog0
RealmRPGer
RaoulDukey
Only Title

Rohit_Ghatol's Q&A profile

  • .NET Development Load Balancing Socket Connections

    Hi, I don't know if this is even possible but here is the scenario I have: I have a server/client application connected via TCP.  Lets say I have 5 clients applications.  I have 2 server applications running behind a load balancer.  Since it's TCP, lets say 2 of the clients make a socket connection to server 1 and 3 of the clients make a socket connection to server 2.  Can I have server 1 send a message over the socket connection to each of the clients   The clients make the connection to the server...so I can't just open another socket connection from the server to the clients... Make sense Is that possible ...Show All

  • Windows Forms Click once and trust license

    hi, In beta  you could programatically install trust licences (there was a .net function and even a sample called trustlicensedeployment.). In beta2 these functions seem to have been removed and the sample also. Can anyone tell me why and what is now the best way to deploy such a trusted license to all workstations Also is there a list of changes between beta1 and beta 2 thanks, Bruno Hi, TrustLicense Deployment feature is cut in Beta2 and going forward. While there are some advantages with trust license, like it allows delegation, there are other cons like complex model, poor tool support, no revoca ...Show All

  • .NET Development stopping connections

    Hi. I've done this before but for some reason I cannot figure where I am going wrong. When I start listening to a port, I want to stop listening to it, even if there are no connections. When listening, it is listening in another thread. I have 2 buttons, Start service, and stop service:   Start Service: Creates a new thread, and it runs the method to Listen to the communication Starts this thread   Stop Service: if the Socket Client is non null, then it stops the client tcp listener. null's the client socket. //this is where the exception is thrown straight away "A blocking operation was interrupted by ...Show All

  • Smart Device Development Error 10061

    Why I can't send messages to Pocket PC emulator application which has TCP listener binded to host adress:"127.0.0.1" from desktop application which has TCP client which try to connect to the same adress I' m receiving error 10061. I'm using VS2005. Error 10061 is Connection refused . it's mean no connection could be made because the target machine actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host (your machine in this case). maybe that the server application you're trying to contact isn't executing ...Show All

  • .NET Development Using consumer side SoapExtensionAttribute in Beta 2 consuming Java WebServices

    I have runnning and perfectly working SoapExtension project in the web application solution. The WebServices servers are a "BlackBox" to me. I'm trying to: 1. Add an attribute to the SoapExtension. 2. Set a few values in SoapHeader's elements catching them in the AfterSerialize context of the ProcessMessage override. 3. The XPath, value, key, token and operation are supoosed to be extracted from the attribute. I saw the article http://msdn2.microsoft.com/en-us/library/system.web.services.protocols.soapextensionattribute , which says that the attribute has to be applied to "a method in an XML Web service client ...Show All

  • SQL Server Overloaded Stored Procedure

    Hi I want to create two stored procedures with the same name but accepting different params. Lets say Procedure A can accept param1, Procedure A can also accept param1,param2. Is there any way SQL Server supports overloaded procedures with different sigantures. Regards Imtiaz No, but optional parameters are supported:   CREATE PROC YourProc     @Param1 INT,     @Param2 INT = 0 AS ...   -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 --     < ...Show All

  • Visual Studio Team System string.Empty and ""

    Hi One of our coding standards requires developers use string.Empty instead of "". Would a custom FxCop plugin be capable of detecting this problem Thanks Yes But I think that fxcop would recommend using "" (performence) since string.empty creates a new instance of string. ...Show All

  • Visual Basic Form Switching

    Hello all, I know this is a real n00b question, but I was wondering if someone could advise me as to a better way of doing my form switching without creating a new instance of a form each time. I know usually you can just go Dim F as new Form2 F.Show But that creates a new instance of Form2. What I'm trying to do is to have a permanently open version of Form2 that I can access at any time. The reason I want to do this is so that I can keep all the information stored on that form (text box contents, etc) available for use later if the form is closed and re-opened again. I found a method to do this, which was to create a module and ...Show All

  • Windows Forms Win Form & ASP.NET

    Hi, I have a question: how can I, if it's possible, add a winform to an asp.net page Hi greath78, you are missing something. You should write  "http:Test.dll#Test.Test". eg. <object id="MyTestCtl" classid="http:MyCustomControl.dll#MyCustomControl.MyCtl" height="800" width="800" VIEWASTEXT> </object> Regards, ...Show All

  • .NET Development get file creator in .NET

    How can you tell how created a file or who the file owner is. If I am running something on a server that check files other users put there, how can I tell how put each file Hi, It should be possible using System.Management. Here's some sample code: static string QueryFileSecurity( string fileName) { using ( ManagementObject o = new ManagementObject ( @"Win32_LogicalFileSecuritySetting.Path='" + fileName + "'" )) { string rval = "" ; ManagementBaseObject outP = o.InvokeMethod( "GetSecurityDescriptor" , null , null ); if ((( uint )(outP.Properties[ "ReturnValue" ].Value)) == 0) { Manageme ...Show All

  • Windows Forms list box tooltip?

    Hi. Is it possible on a WinForm C# application to have a tooltip appear under the mouse cursor when you hover over an item in a listbox I am using .NET 2.0 Yes you can but it requires a little bit more work than using something like a ListView.  You'll first need to drop a ToolTip component onto the parent form.  This gives your ListBox tool tip capability.  Then you'll need to trap the MouseMove event on your list box.  Whenever this event occurs you should get the index of the item at the current position of the mouse.  If you get an item then you can use whatever logic is appropriate to determine the tool t ...Show All

  • Visual C++ Question about C++ char Pointer

      When I use VC++ 6.0(with SP5.0) like this:   char temp[2];   memset(temp,0,sizeof(temp));   strcpy(temp,"This is a test\0");   MessageBox(0,temp,temp,MB_OK);   The result in temp[2] is "This is a test".There is only two bytes of memory,why can copy more than 2 bytes char Very thank you Chris.But both strcpy() and memcpy() have this problem,and I copy other char* after this operate,it have no problem,maybe my test app is tiny ...Show All

  • Visual Studio Express Editions SQL Server 2005 Express

    I am getting the following error when logging in using SQL Server Management Studio: Server Type: Database Engine ServerName: xxxx/SQLEXPRESS Athentication: Windows Authentication Error Message: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (.Net SqlClient Data Provider) This error normally occurs when using .NET 2005 (ASP .NET2) Server Explorer and trying t ...Show All

  • Visual Studio Team System VS 2005 cannot connect to the Windows SharePoint Services

    From within VS 2005, trying to create a new team project, I'm unable to connect to Windows SharePoint Services: -------------------------------------------------------- TF30177: Team Project Creation Failed -------------------------------------------------------- Error Unable to connect to the Windows SharePoint Services at HOST1 -------------------------------------------------------- In team project creation log: Task "VersionControlTask" from Group "VersionControl" completed with success | Completion time: 0.671875 seconds 1/27/2006 6:29:58 PM | Module: Engine | Thread: 8 | Running Task "&quo ...Show All

  • Visual C# Navigate DataSet

    Hi all, I had a datagridview which is bind to a dataset. I want to do some condition checking where by if certain field is empty, I will highlight the row of datagridview to some other colour. By doing this, am I right to say that I need to navigate through the dataset to check if the field is empty. If yes, may I know how to navigate the dataset Please help. Thanks Here's a snippet that you can use for Windows Forms GridView: DataGridViewRow row; for ( int index = 0; index < myGridView.Rows.Count; index++) {     row = myGridView.Rows[index];   ...Show All

©2008 Software Development Network