sjnaughton's Q&A profile
Windows Forms 'ping' automatically
hi, I have a 'ping' program in .net 2003, and also a timer source code in .net 2003. When the program is running, i want it to 'ping' the ip address automatically for every 2 minutes. But I don't know how to write it in code. Can someone please help me Thank You Add a timer to your form.(say timer1) timer1.Interval = 120000;(120*1000 ms) and then subscribe to the Tick event of the timer where you call the ping code. Le ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct Input Keyboard Error
I'm having a problem using Direct Input to read the state of the keyboard. I am getting an "Object reference not set to an instance of an object" error. Here is a code snipet: first i set up the device: /* Create DirectInput Devices for mouse/keyboard */ this.kb ...Show All
Windows Forms Need to know when the Name property is set inside a winforms usercontrol
I have a usercontrol, and the name property isnt set in New, as the owning forms InitializeComponent method creates the control then sets its name property a few liens later. I need the value of Name to do some custom binding stuff and I cant find out how to tell it has been set (from within the control itself) I did think of creating a New that takes a name as a param, but of course this wouldnt be compatible with the initializecomponent co ...Show All
.NET Development WSE 2.0 Problem
I download "Web Services Enhancements 2.0 Hands On Lab - Security" from microsoft.com. url: http://www.microsoft.com/downloads/details.aspx FamilyID=a6b7de77-5a16-482c-8b84-75df0a2e09c4&DisplayLang=en After install, I can't run the example. when I try Exercises A(in the Task 7), it shout not work. Error message is "There was an error loading the microsoft.web.service2configuration section. -->syste.configuration.configurationexc ...Show All
Visual Studio 2008 (Pre-release) Will I face any problem if I upgrade my Windows millenium to windows XP
Will I face any problem if I upgrade my Windows millenium to windows XP.... While installing windows XP in my laptop which was windows millenium, i was getting message showing file can not read retry, skip, canel. Will I be able to complete this installation or Not. Appreciate experitse advise. Thanks in advance Alex, this is probably not the right place to ask this question. If you need help finding the right forum, pleas ...Show All
Windows Forms Ctrl + Enter with a MenuStrip
Hi, I was following a tutorial to try to make my own browser interface. I tried to implement the Ctrl+Enter in a Textbox to make like Internet Explorer to complete the address, eg. google => http:// www.google.com . The problem is that I cannot take the Ctrl+Enter keys event while I enable my MenuStrip (eg. File, Options, Help,....) as it makes the focus on the MenuStrip! When I "un-enable" or delete my MenuStrip, it works well. W ...Show All
Visual Basic .application File cannot be found
Hello, I have a very simple application that I am trying to publish to a Windows 2005 server. During my testing, I sucessfully published my application using ClickOnce to my local IIS. I noticed two things that VS2005 did during the publishing process: 1. It created a folder with my current version of the application & four files (publish.htm, setup.exe, MyApp.application , and MyApp_1_0_0_0.application). 2. It cre ...Show All
Smart Device Development How to build Visual Studio 2005 Smart Device CAB files?
Most of my apps are written in VB.NET. I have been convert all my apps over to VS 2005 from VS 2003. I have a lot of Smart Device Programs I have also converted over. Now this is my issue in VS 2003 under the build menu you had Build CAB Files. This would very fast and easy create all your CAB files. In VS 2005 I no longer see that option so how do I do this in this new version I've been using 4.0 for a while. Not really tried it wit ...Show All
SQL Server Split txt file into multiple
How can I split this incoming file into separate txts. I want to cut out each Header/detail row section into a new txt. What I mean by header/detail row: incoming txt file: http: / / www. webfound. net/ split. txt basically want to cut out each section like this: http://www.webfound.net/what_to_cut.txt http: / / www. webfound. net/rows.jpg and a kicker...each new txt name must use a certain fi ...Show All
.NET Development ilgen.Emit can't get methodinfo
Hi, I'm trying to get Form.Dispose(boolean) methodinfo but it seem always return null. Here is my code: 'formDispose is always nothing Dim formDispose As MethodInfo = GetType(System.Windows.Forms.Form).GetMethod("Dispose", New Type() {GetType(Boolean)}) Is there something wrong with my code the strange thing is, if I'm iterating all the System.Windows.Forms.Form methods Form.Dispose(boolean) is not there. 'Form.Dispose ...Show All
Visual C# Web browser Instance is not Killed
Hi am using a web browser control axWebBrowser1.Navigate(Application.StartupPath+ \\Results. Doc,ref Optional,ref Optional,ref Optional,ref Optional); now a word document will be opened in browser (word.exe is also opened in background) now when u close the browser the word.exe is still running background. pls tell me how to solve so that i am not able to modify the word document . it says its being used by other process" i have k ...Show All
Windows Forms Databinding child relations
I have a serious problem that I can't for the life of me figure out. I have made countless Master-Detail forms with a master(parent) datagrid and a detail(child) datagrid. I am trying to do this but it for some reason is not working. I am at the end of my rope and have no clue as to why. Here is the scenario. The parent table shows up fine in its datagrid. The child values don't show up at all. I ...Show All
Visual C++ Finally
I'd move your post for you, but currently moderators don't have that ability... you get off with a warning. :-) Steven Zhao wrote: I am new here, I now use php to create web app, A good language which not choose or based on Ms.NET It is first step...! Phalanger: PHP .NET compiler http://channel9.msdn.com/ShowPost.aspx PostID=48906 Our integration introduces the PHP language into the VS.NET in a specific project type su ...Show All
SQL Server Sql Sever 2000 Reporting Services
Hi, I wanted to know if there was any way of setting the SMTPAuthenticate in the RSReportServer.config file, so i could connect to a remote SMTP with username and password thanks in advance kered In order to send emails you need some SMTP server that you have permission to send email to. If you currently have RS set up to use the SMTPServer setting then you can make your local SMTP server re ...Show All
Visual C++ PostQuitMessage Issue
Hi, I have tried to automate my application through a small VB program. This program runs fine except for when you press the quit button. This button succesfully navigates to the designated function in my C++ code for my application but at this point it fails. All that is in this function is PostQuitMessage(0);. It is on this call that the application locks up, as well as the VB app locking up. I have looked at the ...Show All
