PhilippG's Q&A profile
.NET Development creating new Socket with IPEndPoint
Hi buddies, I am trying with a function which can send message to an ip and port using socket while running this application i am getting an exception as - "{"Only one usage of each socket address (protocol/network address/port)\r\nis normally permitted" }" Please help ... regards, Vinu the code like this, String IP will be like this - 192.168.1.6:5763 public void SendToIp( string IP, string Message) { try { string add = IP.Substring(0,IP.IndexOf(":")); int port = int .Parse(IP.Substring(IP.IndexOf(":")+1,IP.Length-IP.IndexOf(":")-1)); IPAddress ipad = IPAddress.Parse(add); Socket sk = new Socket(AddressFam ...Show All
SQL Server Join tables Count problems
Help, I have 2 tables one called ProjectHeader and the other called ProjectSuppliers. There is a one to many relationships. I’m trying to get a count of the total number of projects for a certain supplier where the Date Entered is less then 5/1/2206 with the Bid Date greater than 3/31/2206. When I run the query below the count comes back wrong. I know it’s because the ProjectSupplier table can have multiply entries of the supplier under the same Projectid. For example, the query below gives me a count of 206 projects for Miller in Tampa. Where he really only has 169 projects entered. I know y ...Show All
.NET Development Insertcommand property
I just started learning ASP.NET, and I am using the Visual Web Developer Express program to make my website. I am trying to create a form where people can insert information into an Access database that I already created. I used the Formview option, and when I went to test the website, I clicked "insert" and then an error message came up about the Inputcommand property. Again, I am a BEGINNER, and I am not really sure how to make this work. Any advice would be greatly appreciated. thanks! I recommend going through the ASP.NET QuickStart Tutorials, which have several good and beginner-type examples ...Show All
Windows Forms How to debug a Setup Project?
I made an installer class which do some stuff at the AfterInstall event and want to debug it now. But when running install (right click on the Setup project) there is no debugging (breakpoints, Console.WriteLine, ...), but I'm in the Debug mode. Is there a possibility to debug my code ...Show All
Windows Forms Drag & Drip File From Explorer
Does anyone have an example of draging & droping a file from Windoew Explorer onto a DataGrid -- all I want to do from there is capture the file name into one of the grid cells Yipppppeeeee it finaly works -- I was confident after seing your second post that you would help me get this right (thank you) You were very righ ...Show All
Visual Studio Team System Controling where documents open
I was wondering if there was a way to control where documents open in the Team Foundation Server client. On my installation, most documents open in their native application, e.g. a Word document opens in a new instance of MS Word when I open the document, however, some documents open in the web browser in the main window, such as Visio documents. Some of our other users are experiencing all documents opening in the main browser window. This is making working with the files cumbersom. Is there a way to configure the TFS Explorer to open the documents using their native editors Hi Jim what I noticed so far is that it makes a dif ...Show All
Visual Studio Team System Performance degradation after the conversion of windows app from .net 1.1 to .net 2.0
I could see that there is significant performance degradation after the conversion of our windows application from .net 1.1 to .net 2.0. It was running fine in .net 1.1 and VS2003, but after the migration to .net 2.0 and VS2005 many screens are loading very slowly. I could not figure out the actual reasons for this performance degradation. We can also see that the application runs little faster if it runs out side VS2005. I am using Visual studio 2005 team suite for the development. pl share your ideas and suggession if you have faces such kind of issues. Thanks Have you used the Red Gat Ants profiler . This is a very e ...Show All
Windows Forms Adventure Works for SQL Server 2000
Anybody seen an Adventure Works Sample DB download for SQL Server 2000 I downloaded the VB2005 samples and they use SQL Express which I do not have intstalled. If I could get a back up file or .mdf for SQL Server 2000 I could tweak the sample code to use that server. TIA It is available from the Microsoft Download Center via the following link. http://www.microsoft.com/downloads/details.aspx FamilyID=487C9C23-2356-436E-94A8-2BFB66F0ABDC&displaylang=en ...Show All
Software Development for Windows Vista How fast WF ? Sutable for UI hadling?
I want to use WF not for intercomputer WorkFlows but for handling events in WinForms GUI, but I'm in doubt - will or will not WF make GUI reaction visible slower If will, to on which degree thanks you. The answer ultimately (as with any perf question) is "it depends." I would encourage you to work up a quick prototype that matches close to the scenario you are envisioning and see if the performance does or does not exceed your needs. We just posted a sample today taht shows how you can use the Rules Engine to validate and perform some logic on a Windows Forms app, this may be a place to look i ...Show All
Windows Forms flickering form on resize with a background image.
Hi, I have a background image to the form. The form is divided into two horizontal split containers the top container is fixed and both the containers are made transperent. i have a listview docked to fill in the container. when i resize the form i have a flickering issue and i see that the background image of form is being displayed during the time duration when the listview gets to the resized position of form resulting in a flickering. I have already applied the double buffering and set the styles as follows: SetStyle(ControlStyles.UserPaint, True ) SetStyle(ControlStyles.AllPaintingInWmPaint, True ) SetStyle(ControlStyles.Double ...Show All
Windows Forms problem restoring focus to main window
hi, i have a panel with 2 radiobuttons, besides the radiobuttons i'm controlling the keyboard input for the arrows to change other parameters in the panel such as a counter, the problem is that if i click the radiobuttons and then hit an arrow i cannot control my counter anymore but i switch between the radiobuttons, i've thought of simply calling this.Focus(); on the CheckedChanged Event of the RadioButtons but that doesn't seem to restore the focus on the main form, also, tryed calling Invoke with a delegate wich is bound to a method that calls invoke, as well as doing this last approach on the gotfocus event of the radiobuttons., wich ult ...Show All
SQL Server The AcquireConnection method call failed with error code 0xC0202009.
I have a SQL Server Agent job with a step to execute an SSIS package. The package has as one of it's connection managers the Connection Manager For Excel Files. When I run the job it fails every time. I have implemented logging and in the OnError event it states "The AcquireConnection method call to the connection manager "LOBMappingExcel" failed with error code 0xC0202009". Note that if I execute this package via dtexecui or dtexec it runs successfully. Only when I have the SQL server Agent Job run the package does this occur. What am I missing (I wasn't sure if this is the correct forum to post this so ...Show All
Windows Forms how to print a rich text box
how do you print a rich textbox Hi, check this page: http://support.microsoft.com/default.aspx scid=kb;en-us;812425 ...Show All
.NET Development Dll loading during p/invoke
Hi, Do you have a reference to an article which explains how ddls are loaded in .net I'm particulary interested in finding out how a dll and its dependents are loaded during a pinvoke call. Thanks ! Bart The following article may be helpful: http://msdn.net/msdnmag/issues/1000/metadata/ Hope that helps, Stephen Fisher ...Show All
Visual Studio Team System Item Version
Hello, I was able with the VSS object model to get my hands on and item, get the items latest version, test for the existance of a label on that latest version and then retrieve the label. How would I do this with the TFSOM. Thank you, James Start with this example: http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx VersionControlServer.QueryLabels() has an overload that lets you filter by server path and/or version. ...Show All
