PapaLazarou's Q&A profile
.NET Development StreamWriter - get time from server
I am connection to a server via port 13. Yes, 13! I can connect via 80 and read simple pages easily. Now I want to connect and just get the time off the server. Having a little trouble with the line below that has the comment next to it. Have a few tries but not listed here. TcpClient connection = new TcpClient (" www.isp.com ", 13); NetworkStream stream = connection.GetStream(); StreamWriter sw = ...Show All
Windows Forms Trigger fill dataset from other form
Hellow, This is the situation: I have one form (form1) and another form (form2). Form1 is the standard form that opens on application run. In form1, there's one datagrid, bound to a dataset (members of form1). When I click on a button "new row" in&n ...Show All
Windows Forms Making child controls of UserControl editable
I have a UserControl subclass, CompanyInfo, with various controls (Labels and Textboxes) on it. When I'm designing this class, I can edit the controls, move them around etc., which is fine. However, when I build CompanyInfo into a DLL, then add it to the Toolbox and drop it onto a form in the Designer, I can no longer edit and move the various controls that CompanyInfo encapsulates. I have tried setting these controls to public access, but that ...Show All
.NET Development BeforeXxx/AfterXxx - Event Naming Guidelines
Hi learning Event Naming Guidelines in details I found Microsoft dosn't recomend using BeforeXxx/AfterXxx event naming. I see Before/After describes well events call sequence and a lot of companies use such convention too. What is the reason for that Even MS does not follow this guideline, check the TreeView. There are 5 events that start with Before/After. I think guidelines are there to guide you ...Show All
Visual Studio Can you build a guidance package in VB?
Hi and thanks for any help in advance, Is it possible to build a guidance package in VB I have had a crack at it but cannot seem to register the package. It is a very simple Hello world with one unbound reference to vb assets in the project and then an action that raise a message box. This works perfectly in C#. If I install the *.msi it does appear in vs. I also have tried having the "guidance package development" package enabl ...Show All
.NET Development How to add index in DataTable so .Select() command will run faster?
Is there anyway (not brute force) to add index in DataTable I have a big very table that I need to select some rows fast and those fields that I need to query are not primary key. Thank you!! Do dt.Select( null, "yourcolumn" ); // query with null filter and see if subsequent queries improve their perf. --VV [MS] vascov@microsoft.com ...Show All
Visual Studio 2008 (Pre-release) Unni's Throbbing Items Control and xml updates? (databinding)
i've been playing around with Unni Ravindranathan Throbbing Items Control (can be found here: http://blogs.msdn.com/unnir/archive/2006/01/23/516606.aspx) cheers to Unni for the nice control, but i'm still having one problem: when the application is running and i edit my xml file, i don't see any changes in my application untill i restart it. my conclusion: WPF reads the xml file once during the lifespan of the application.. but the application i ...Show All
.NET Development special PID's
Hi, Does the system idle process always has the PID 0 and System has 4 is there any other special PID's Thanks alot, Hisham Yes, idle has PID 0 and system has PID 4 but they aren't really processes. The other processes have random PIDs. ...Show All
.NET Development Invoke event of a control virtually
How to Invoke the event of a control suppose like button's click event can be Invoked using "new Button1().PerformClick()" method . suppose if I want to raise an event of a control by other means how it is possible.. ya I can call the function directly . But Idon't want that . I want to trigger the event virtually like PerformClck()..Is it possible through P-Invoke Please any one help me :) Hi Michael Blome, Thank yo ...Show All
Visual Basic Excel: formula in chart
Actually, I want to do it in VBA. I don't want to create a new column because there are already about 200 and also because the number and rank of columns is important. Please repost in the VBA forum . ...Show All
SQL Server Server Registration
TITLE: Microsoft SQL Server Management Studio Express ------------------------------ 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: 41 - Cannot open a Shared Memory connection to a remote SQL server) (Microsoft SQL Server, ...Show All
Visual Studio Express Editions A way to swap variables?
Does VB provide an easy way to swap the contents of 2 variables without having to use an intermediate variable Thanks... No, not that I know of, you'll need to write a simple function to do that. ...Show All
Visual Studio Tools for Office Button is not getting removed after uninstalling the Word add-in
Hi All, I'm creating and installing a Word Add-in. The add-in creates a button on standard toolbar. When I uninstall the add-in the button is not getting removed. The add-in is the basic add-in from the link http://support.microsoft.com/default.aspx scid=kb;en-us;Q302901 as it is. The code in OnBeginShutdown is as follows: public void OnBeginShutdown(ref System.Array custom) { object omissing = System.Reflection.Missing.Value ; System.Wi ...Show All
Visual Studio Tools for Office Exchange
I want to be able to access Exchange public folders usig VB.net. I want to be able to add content, create and delete folders. How do I go about doing this For Exchange related issues, please post your question on the Exchange Development newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.exchange2000.development&lang=en&cr=US Thanks! Mike Hernandez Community Program Mana ...Show All
Windows Forms Validating a user control when closing a form with the 'X' button
Hello World. I'm trying to use validation with user controls. Everything works fine except the following problem. Let's have a user control containing two text boxes. Each text box uses the Validating event to check its content and keep the focus if the content is invalid. The Validating event of the user control uses the Validate() method to check the content of the current textbox. This user control is contained on a form together with another ...Show All
