Jason.Sutherland's Q&A profile
Visual Basic Calculation
I have a problem calcualting the tax for sale and the number of gallond of gas a person put in. Here is the code so far i have. Public Class Form1 Dim price As Single Private Sub btnCalculate_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click Dim subtotal As Single subtotal = 0 subtotal = price Dim txtNumberGallons As Double txtNumberGallons = txtNumberGallons * price Dim txtTaxRate As Double Dim TaxAmount As Single txtTaxRate = txtTaxRate / 100 TaxAmount = price * txtTaxRate price = price + TaxAmount ...Show All
SQL Server Installation error in SQL Server Evaluation Edition
I downloaded the SQL Server Evaluation Edition from Microsoft.com in ISO form and burned a CD using Nero 7. I have tried to install the program, but I keep getting the error: "the procedure entry point_create_locale could not be located in the dynamic link library MSVCR80.dll" I have tried to reinstall Native Client and Setup Support Files with no effect... I have .NET 2.0 installed along with VB Express 2005 and VWB Express 2005... I am running on Windows XP Home SP2. If anyone could help me, I would greatly appreciate it... I am stuck and can't get any work done until I get this program installed... ...Show All
.NET Development Importing RegExp into VB CLR Stored Procedure
I'm pulling my hair out trying to figure out which class library to import for RexExp I'm referring to Microsoft VBScript Regular Expressions 5.5 library. Thanks, -David After looking for like an hour, I had to search using Google to find the page on Microsoft. Duhhhhhh Imports System.Text.RegularExpressions ...Show All
Visual Studio WHAT'S THE STATUS OF THE BUG IN THE CLASS DESIGNER?
The class details window is no longer accessible after you set it's autohide property. The workaround you proposed, as far as I know, is: DO NOT SET THE AUTOHIDE PROPERTY. This was reported to you many months ago during the BETA cycle, and now the bug persists in the RTM. This is very annoying because I've become accustomed to the convenience of setting the autohide properties of most windows except the code and form designer. But when I inadvertently do this to the class details window, the only way I figured out to get it back is to delete my VSsetting file. This, unfortunately, removes my entire personal configurati ...Show All
Visual Studio 2008 (Pre-release) Accessing default styles
I have a very simple question with a seemingly undocumented answer. Where are the default styles stored, and how do I access them The ToolBar class has static members, ButtonStyleKey, CheckBoxStyleKey, ComboBoxStyleKey, etc. Each of these are keys to style objects, but which ResourceDictionary are they in I want to be able to make a button outside a toolbar look like it's in a toolbar. So I though applying this style would work, but I can't seem to find where to get it. Any ideas You can do that in Expression Interactive Designer (Sparkle). Open EID > create a control instance on the page from the ...Show All
Visual Basic Arranging Pictures On Win Forms a la Win Desktop
All, I'm trying to create an app that uses a form like the Win desktop where you can arrange icons. Instead of icons I'll be using picture box controls. I understand how to use the drag and drop events, but can't figure out how to drop the picture box and make it stay exactly where it's dropped on the form. Do I need to use a different container control than the form itself I'll also need to figure out how to auto-arrange the picture boxes if they're dragged on top of or too close to existing picture boxes. All suggestions would be appreciated. Thanks in advance! You'll have trouble doing that because ...Show All
Windows Forms Windows Service on Windows XP.
I have a Windows Service running on the Windows XP Professional machine with local system account ,developed using C#,.Net Framework 1.1 using VS.net 2003. When the windows service trying to creating a file in mapped drive which is having access to all users with all rights then i am getting a error message as "Could not find part of ...Show All
Visual C# how to share a function call with thread?
Which is the best way to check if a function is running or not. I have a function of type void. it's called between 2 threads. i wanna make sure that the other thread is finished with it before my main thread use that same function. Hi, You are refering to thread sync. You should check the AutoResetEvent and the ManualResetEvent. You can use them to sync the threads. Check out this link: http://www.csharphelp.com/archives2/archive409.html ...Show All
.NET Development Custom DataTable Attributes
Hi there, I have a Business Entity which inherits from DataTable. It has some custom properties like BaseLanguage. My Business Process returns the filtered rows fine to the ObjectDataSource and binds to the new ASPDataList and using Eval and Bind displays my data. The issue is this: Why cant I bind to other properties of my BusinessEntity other than the Data Rows I have tried putting them in ExtendedProperties and having them as simple Properties of my class. I dont get an error thrown when I bind to <%# Eval("BaseLAN") %> but I also dont get to see the value. Any clues Is it simply the Bind or Eval syntax on ASP.NET that I am mi ...Show All
Visual Studio Team System Attempted to perform an unauthorized operation while publishing
When trying to publish the results from a webtest to source control I get the message of "Attempted to perform an unauthorized operation". I get this message in the Test Results window under the Error Message column. We can not find a problem with permissions on the server side and hoping that someone here might have a suggestion. Thanks I have solved my problem. I don't know the exact details but it was a permissions issue with active directory. ...Show All
Visual Studio Express Editions Starting visual basic
I just got out of college and I understand visual basic, but we only used it in the .net stuff so how do I just write regular visual basic and how do I save it. say to make a macro or such can someone give me a heads up on how that works Hi Jeff, Bring up vbexpress and create a New Windows Project. Activate the Solution Explorer with the View Menu At the top of the Solution Explorer you will see a Icons. Select the one that shows you code in the editor. You should see Public Class Form1 End Class In the upper left Editor window select form events. In the right Window Select Load. That will insert the load ...Show All
Visual Studio Undoing checkout
Hi everybody, I'm trying to implement a continuous integration process here, and I'm using the following article as a baseline: http://dougrohm.com/cs/articles/56.aspx There's one thing there that's giving me problems, though. In one of the steps on the process described on the article, a "version.txt" file gets checked out, modified, and then checked in when the process is done. If there's a problem and the build process fails, the file never gets checked back in. Then say the problem with the build got fixed. In theory, the next build should succeed. However, it's failing because it can't check the version.txt file out, ...Show All
Visual C# How to add Name to Row in DataTable
Is there a way to have a name show up in the RowHeader of a DataGridViewer A little more info if needed: I have a dataTable with I have added 15 DataColumn objects to. I then add thirty DataRow objects to that dataTable. I have a DataGridViewer on a form and I set the dataSource of that viewer to my dataTable object. Bam . . . my table is pretty and visible. I already set the name of the column when I create each DataColumn object, but there is no equivelent function for a row I see that DataGridViewer has spot, the RowHeader, where I should be able to add a label or name. How do I do this Thanks. -Eric ...Show All
Visual C# Corrupting Visual Studio.NET
When I place a button on form, compile and run the program it goes fine but after compilation if I change the name of the button and then recompile the programe I get runtime error message "Unhandled Exception System.Drawing", after this if I try to run the previously compiled file I get the same error, the only solution is to reinstall the Visual Studio. Hi, Could you post the code snippet on where the error points to Just tried it and it works just as expected. Also specify as on what VS version you are using... cheers, Paul June A. Domag ...Show All
.NET Development Writing an report defintion file with XMLWriter
I want to be able to write the following XML during a run: < xml version = " 1.0 " encoding = " utf-8 " > < Report xmlns = " http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition " xmlns:rd = http://schemas.microsoft.com/SQLServer/reporting/reportdesigner > < Width > 6.5in </ Width > etc.... What I am doing is creating .rdlc (report definition) files during runtime so that I can manipulate reports the way that the project requires. Well I'm new to using XML and I'm using the following lines so far: '#2: Create the XmlWriter object Dim writer As XmlWriter ...Show All
