vegasrockstar's Q&A profile
.NET Development Sent EMail Good to a Domain That Cannot Be Looked up on DNS - How is that possible?
I am writing an .NET e-mail client program. I am checking the e-mail address's domain name via a DNS lookup before I send an e-mail. Consider: person@att.net While I can sent e-mail to person@att.net , "att.net" does not exist on the domain name server. What concept am I missing How can any program find a computer by name "att.net" without going through DNS Brian Hmm... How are you using the DNS lookup You may be looking for a host record (type A) but you should look for a mail exchanger record (type MX). ...Show All
Windows Forms Forms and Threads - Multiple Access to Controls
Hi, I have a simple form with a richtextbox on it. The code behind this form can fire up to 500 threads (code placed in a different class) in a second, and every thread should access the same Richtextbox on the form and calls its "AppendText()" Method. The Code for the Threads are also in a different Class (I'm working with VB.NET). I& ...Show All
Windows Forms datareader
hello is there is a method to count the number of rows in the datareader thank you for the time You know, with limited experence with ADO.Net you might be better off just using a data adapter instead of a datareader. Basicly to do it it with a reader you will have to take these steps Create a data table with the same schema  ...Show All
Visual Studio Express Editions Show me the Money
Hello All, I think I asked this before... I return a result from a query, say $1.35 to a textbox. I want to show that number in a different textbox and be able to add $1.00 in $1.00 increments up to a $50 dollar limit. I also want to subtract $1.00 amounts from it. I've tried several ways, but cannot get it to work. Thanks, Elgee... Here's one of the methods I tried: TextBox_farevalue.Text = x x = x + 1 TextBox_farevalue.Text = x If x + 1 > 50 Then x = 50 If x + 1 < 0 Then x = 0 TextBox_farevalue.Text = FormatCurrency(x, 2) hi, Is your proble ...Show All
Visual Studio Team System baseline utility: how to define CODE_ANALYSIS_BASELINE in a web project?
Hi, If I elect to transfer FxCop excluded messages via the baseline.exe utility, how can I define CODE_ANALYSIS_BASELINE in a web site/project in order to ensure the resulting SuppressMessage attributes are processed Thanks...paul Edit: corrected the flag name, sorry. This information is written out to the local web cache settings on the client, unfortunately. This is an artifact of the way that WSP projects are handled in VS (WSP wasn't designed to have a complete VS project system and code model). In the future, we are recommending that users move to WAP for web projects that are suited for code analysis: http://m ...Show All
SQL Server Basing Report on a Procedure with Cursor
I need some advice on how to design a report using cursors. Is it possible to base a report on a cursor I would think that I would have to put the cursor into a stored procedure and call that procedure. But if I do use the cursor in the procedure, will the looped variables automatically populate the report or will I need to insert them into a table that populates the report Thanks, cj If the data source type is "Oracle" and you want to call a Oracle stored procedure, please search for related threads on this forum regarding Oracle stored procedures (e.g. http://forums.microsoft.com/MSDN/ShowPos ...Show All
SQL Server Attached DB and SQL Express: Now you see it, Now you don't!!!
After installing SQL Express 2005, I attached a DB of mine, with success. I can see it from the lagacy enterprise manager, and if I launch the query analyzer fromm within SQL Ent. Manager that DB appear in the DB pane list ans THAT IS FINE. Now when I launch the Query Analyzer directly from Windows, the attached DB doesn't appear. Same when I try to create an ODBC DataSource pointing to that DB: Is DOESN'T APPEAR and THAT IS NOT FINE!!! Anybody have a clue Thanks in advance Can you still use the database in Query Analyzer or osql (What I'm trying to understand if this is a UI issue or something else). Do you ...Show All
Visual Studio Team System Can I run a query as a data source to a SQL Server database?
Hi, all. Is it possible to run a query in the data source rather than connect it to a table I have a SQL Server database that I would like to run a query on rather than select from a specific table. Thank you. Yulia, I beleive you are asking about Data Driven Unit Tests. It is not possible to specify a query but you can create a view or stored procedure on your SQL server and specify the name of the view as data table name for the test. Thank you, Michael Koltachev VSTS ...Show All
SQL Server Debugging pure T-SQ stored procedures
I understand that there has been some dscussion on the subject of debugging T-SQL stored procedures. Can you point me to this information I am not interested in how to debug CLR stored procedures as that is well documented. Thanks Bill Zack We used to be able to "Step Into Stored Procedure" from within the Business Intelligence Studio, but are now getting the following error: "Unable to start T-SQL Debugging. Could not attach to SQL Server process on '<server name>'. Click Help for more information." After searching on Help, it yields no result. Does anyone have an idea why this may ...Show All
SQL Server Why do all packages in the project open when running one in debug mode?
Does anyone know why this happens When I run one of the packages in my project (by hitting the play button in the designer), all of the other packages in that project open before it starts running Thank you. To add more info ... this didn't happen before I copied the project files to a different computer and changed the security settings to "don't save sensitive", modifed the packages, then changed back to "encrypt with user key". But even after I did that, the original issue above didn't start happening right away. That indicates to me this is not the cause. Any ideas ...Show All
Visual C# Disable double click on control
hi, i recently remember to saw an option something like AllowDoubleClick and was a boolean, the thing is that i need a control to be disabled the double click option, becasue i want that the click event works on every click, so when u double click fast it makes the action twice, if u dont know what im talking about create a form with a panel. and a label.. then create the event on click for the panel, and change the text of the label on click of panel,, u will se that when u double click it just work once, this is why i need to find this property , does anybody knows how thx mig16 Dear mig 16, i got two ...Show All
Windows Forms Form Resize incorrectly
I have a problem with Form Resize: Make a Form (autoscalemode DPI), place one button in the lower right part of the form(Autosize false - Anchoring None). When I then resize the form, either in design or run mode, the button does not keep its location. Not even if you consider it is the top left corner that should be in the same relative position. The button disapears out of the right corner when the form is made smaller. It looks as if the resizing is only doing half of the resizing it should do. I have now written a Form_Resize event which works, but I don't understand why the resizing in VB.NET does not work correctly. Anybody knows the t ...Show All
Visual Basic Searching for Values in a SortedList
Hi I have a Generic SortedList of my class Product, with a unique identifier as the key. Each product has an itemcode property which may not be unique for each product (this is essentially just a part of the Key field). I would like to be able to search the SortedList and retrieve the index of the first matching product. I have implemented IComparable on the Product class however I am always getting -1 returned when using the IndexOfValue method - what am I doing wrong here Also, will this method of retrieval be efficient if there are a large number of products in the sortedlist, say 10,000 I will also need to be able to do a wildcard sear ...Show All
Windows Forms Can't update database with a non-admin account
Hi All, Thanks in advance for any help. I'm writing a simple c# application for my home pc that writes to an Access database on Windows XP Pro. The Access database is stored in the "CommonApplicationData" location (c:\documents and settings\all users\application data"). Last night I noticed if I switched to my wife's account, which has its permission level  ...Show All
SQL Server Service Pack 1 Database Services Installation Failure
Hi - using SQL Server Standard Edition (64Bit). All of items of the service pack will install execpt for the Database Services. The Details are: "Unable to install Windows Installer MSP file" Log Details Below 05/04/2006 08:18:42.327 ================================================================================ 05/04/2006 08:18:42.327 Hotfix package launched 05/04/2006 08:18:43.827 Product discovery successfully completed during the install process for MSSQLSERVER 05/04/2006 08:18:43.827 SP Level check successfully completed during the install process for MSSQLSERVER 05/04/2006 08:18:43.827 Product language check ...Show All
