ThomasC22's Q&A profile
.NET Development How to specify DNS nameserver during GetHostEntry
I am performing the following code in a try/catch block to perform a DNS lookup using IP: -------------------------------- IPAddress hostIPAddress = IPAddress .Parse(sISPIPAddress); IPHostEntry hostInfo = Dns .GetHostEntry(hostIPAddress); sHostName = hostInfo.HostName; ------------------------------ Can I specify what DNS server to use in the lookup (i.e. nslookup 10.2.1.1 10.1.1.1) where 10.1.1.1 is an authoritative D ...Show All
Visual C# if
I am brand new to c#. I am wanting to make a really bad program where it says, What is 1 + 1 and then there is a text box and you type in 2. I want to make it where if someone typed in something different than 2 it would say sorry your wrong. And make it where if they type in 2 it says yay you did it! Please help! http://www.microsoft.com/MSPress/books/7655.asp ...Show All
Visual Studio 2008 (Pre-release) Trust Not Granted
Hi, I've just installed WinFX Runtime Components - February CTP on my Windows Server 2003. Why I'm getting "Trust Not Granted" message when trying to execute sample xaml files Germans Can you tell me a bit about your machine What version of IE are you running Thanks, Karen ...Show All
Windows Forms Dynamic ContextMenuStrip problem
I am dynamically adding ToolStripMenuItems to a context menu during the Opening event and those menu items are coming from the main menu. The problem is that the first time the right-click event occurs and the opening event is called nothing shows up. Repeated right-clicks after that work but until the main menu is activated again. To rebuild the menus during load, I have an array that stores all the menu items needed and use t ...Show All
Visual Studio Express Editions bug? comments moved to different method on add new handler
Line comments following a method's closing brace are moved to the closing brace of a method inserted beneath the first. Steps to reproduce: 1 Create a new Windows Application project 2 Add a control to the form 3 Add a new handler to the control 4 After the new handler's closing brace, add a commen ...Show All
Visual Studio Tools for Office how to turn off outlook security warning dialog box using C#
Hi, How can one get rid off the Security Warning dialog box which pops up when you try to access a property of ContactItem in Outlook 2003 I'm using Visual Studio Team Suite Beta 2, Microsoft Outlook 11.0 Object Library, Outlook 2003. I've written a webform to get the list of contacts and display it in a listbox. But everytime the webform loads, an outlook security dialog box pops up. I'm not sure if this is the right forum but ...Show All
Windows Forms to cgraus
Hi, I'm trying to write a splash screen for my application and I'm using the sample splash screen code provided by MSDN with the link http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/casoast.asp but the splash screen form runs maximized which makes it cover the whole screen. I disabled that and also added this.ClientSize = bmpSplashSize; also made it centered on the screen by this.StartPosition = For ...Show All
Visual Studio How to logon to a database programmatically. vs2005
I have a web report (without a datasource) with two different subreports. The subreports are each based on a different stored procedure. When I run the report I always have to logon to the database, although I set the connectionInfo programmatically. The code is from the cr tutorialsamples. Is it because I use a stored procedure instead of tables (the sample uses: CrystalDecisions.CrystalReports.Engine. Table) Regards, Goos. <code> ...Show All
.NET Development Update???
cString = "Update tblWatchInstance SET 'EstimateApprovedBy' = txtApprovedBy.Text WHERE tblWatchInstance.WatchID LIKE '%" + txtWatchID.Text + "%'" conn = New SqlConnection(ConnectionString) conn.Open() CMconn = New SqlCommand(cString, conn) CMconn.ExecuteNonQuery() I am trying to update my table...but there seems to be some sort of system error exception that i get can anyone look at my code sampl ...Show All
Windows Forms Data change not being saved if control not exited before clicking Save button
How do I get my form to update a record if I only edit data in one control (say a textbox), then click the Save button that I added to the BindingNavigator As I haven't tabbed out of the textbox, the validation event doesn't fire and so the BindingSource doesn’t pass on the changes I made. If I tab out of the control first and then click Save it works fine. My code is: Private Sub UspWorkOrderBindingNavigatorSaveItem_Click(ByVal se ...Show All
Visual C# Partial Class For a Form Problem
Hello! When I create a partial class for my form the "View Designer" button is shown for my partial class. For the MyForm.Designer.cs partial class it isn't shown and that's the kind of behaviour I want and what I expected, especially as the "View Designer" button show another form, not the form that my partial class extends, but at the same time it overwrites entries in the MyForm.Designer.cs file, destroying my original Form. I looked in ...Show All
Software Development for Windows Vista hiya my first post and just got invited to the beta from technet =)
hiya I was wondering can I dual boot Windows Vista and Xp on a single hd cause I have a 1 year old hornet pro with a 250gb hd ATI Radeon X1600PRO 512mb agp version, 1gb of ram, ATI HDTV Tuner will that tuner work with vista as well with their tv software if the beta comes with it and my cpu is a p4 2.8ghz 800fsb and I did a beta scan and it says my system can run it =) please lemme know if I can dual boot without having to format the whole if I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. October 2005 DirectX SDK is available!
The DirectXR Team is pleased to announce the release of the DirectX 9.0 SDK October 2005 Update! The October Update includes the first public release of the XInput SDK. This SDK will allow game developers to fully support Xbox 360 Controller for Windows. To download or learn more about this release please visit http://msdn.com/directx/sdk . Features added in the October 2005 DirectX SDK update - XInput XInput is an API that ...Show All
Visual Studio Express Editions Working on both VB 2005 Express & Visual Studio 2003 ?
Hi! I'm learning programming (VB .net) as a beginner and downloaded Visual Basic 2005 Express edition at home. However, we use Visual Studio 2003 in School and will present our project there and then I wonder if it is possible to work at home (with 2005) and get it working on 2003. Shortly: is it possible to either make visual basic 2005 express to save the project or convert it some way so that 2003 will be able to open it or to lim ...Show All
Visual Studio Team System TFS Dual Server Deployment Licensing Question
One doc I read on TFS licensing said that you need a license for every server you install TFS on. That sounds reasonable but what does that mean in a dual server (separate App/Data tier) deployment Does that mean you need to buy two TFS licenses for a dual server deployment I mean it's a single "logical" server, right Mike, someone from product management will reply to you directly. Thanks. ...Show All
