Beto's Q&A profile
Visual C# simple calculations on decimal data from text boxes
Hi, I am making a calculator using text boxes. I need to perform a multiplication on two numbers fetched from two text boxes, and then display the result in a third text box. I tried parsing the arguments into 'float' or 'decimal' but this does not seem to work. Simpler example: MyTextBox.Text = ( Convert .ToDecimal(AnotherTextBox.Text)).ToString(); Even this does not display the information correctly, when i type in numbers like 9.7 ...Show All
Visual Basic date y/yyyy to dd/mm/yyyy
Hi, I want convert a date y/yyyy to yy/mm/yyyy. the Format function convert a date yy/mm/yyyy to y/yyyy but not y/yyyy to yy/mm/yyyy. exemple : 111/2006 --> 21/04/2006 example : 111/2006 --> 21/04/2006 1/2006 --> 01/01/2006 y/yyyy --> dd/mm/yyyy y = Day of the year (1-366) yyyy = year dd = day of the month mm = month of the year ...Show All
Visual C# searching the multiple words found in the text
hello genius guys, i am trying to search the multiple words found in a text file in a single loop. what i want to do is that: when i enter the words like: "am, words, to" etc.. then it should find those words in the text file or let me say in this message board. i am able to search them by using only the for loop by passing single word at a time. also, making my search style more complicated i need to find those words also ...Show All
Visual Basic trying to understand classes, module, subs, functions
I would like to know the differences between a class and a module, and the difference between a sub and a function. I know how to use them. I've been programming for years. But I would like to know the deep details of them so I know where and when to use them. So I can have the most efficient programs. Thanks sub and function is an artificial construct so that VB can avoid having a void return type. Ap ...Show All
Visual Studio Font in Search Results window too small and can not be changed
When I do a Search in Visual Studio 2005 Help, a Search results window appears. The font in that window is so small that I have a hard time reading it. (My eyes are 64 years old.) Ok, no problem, I thought, I'll just change the font size to a larger font. Oops, there seems to be no way of changing the font size in the search results window! (In Help windows displaying a help article, you can change the font size, ...Show All
Software Development for Windows Vista Sample Problems On Building - Actiivity 'workflow1' validation failed: Property 'DataObject' has invalid value. Field
Hi, WF Newbie Here. Have got VS2k5, WF Beta 2 I am trying to work my way through the samples in teh book Presenting Windows Workflow Foundation. The second example of a windows app talking to a workflow, won't build. The error(s) thrown are Activity 'waitForData1' validation failed: Property 'DataObject' has invalid value. Field 'data' does not exist. I have downloaded the code from the publishers and it still won't build. A ...Show All
Windows Forms Killing BeginInvoke Asynchronous Calls
How do I kill a thread I started with the BeginInvoke call IAsyncResult result = asyncBuilderDlgt.BeginInvoke(ModObj, new AsyncCallback(mBuilderCallback), asyncBuilderDlgt); if I click the cancel button, how do i kill this thread Please help guys... There isn't any exposed way to kill it since BeginInvoke uses the ThreadPool. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
.NET Development Managed e-mail server for .Net 2.0?
The namespace System.Net.Mail namespace only provide e-mail sending capabilities. I am seeking a .Net SDK to get a full control over an e-mail server. I would like to be able to do programmatically operations like: creating e-mail accounts, retrieving e-mails and storing them in a database, etc. Since .Net 2.0 does not seem to provide such feature, does anyone know where should I look at to find such features (possibly in third party products) ...Show All
Windows Forms Help for final application
Hi I wonder how can I develop a help for my application for example Micorosoft word has a very good help which can be pulled up by pressing F1, yet I don't know whether we can do make a help for our applicaiton using Vs.net 2003. ...Show All
.NET Development Who's using .Net?
I am just starting using VB.Net and loving it. But can anyone point to an example of an application created using .Net It seems as if Microsoft doesn't make many apps with it. I am trying to show coworkers some examples. Thanks, Chris Our company is building a humongous Web appliation that when deployed will be used around the world. I'v eseen several bank financial institutions use .NET There are thousan ...Show All
Smart Device Development I cannot find "Build cab"
when I deploy my application in .net cf in Vs2005, I selected "release", but I still cannot find the "Build cab" if the "build" menu. anyone can help me Thank you . There's no "Build CAB" anymore, but there's much more flexible device CAB project. Please see this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/deploy_cf2_apps_cab_msi.asp ...Show All
Windows Forms .NET Memory Consumption
Hi All Here's something interesting: Launch your Winforms app. Open task manager, look at the memory used on this app/process. Minimize the app, look at the memory. Restore the app, look at the memory! Why does it take SO much memory to "launch" ye ...Show All
.NET Development Randomly GNE "General Network Error" after upgrade MSDE 2000 to Sql2005 Express
I wish nice day, we have many, many bugs ( arround 10 errors messages from every user per week --- today 300 users using our application and up to end of May, 2006 we reinstal Sql 2000 MSDE -> 2005 Express next 750 users) from our application ( .NET 1.1, localDB on Sql2005 Express ) with exception bellow: ----------------------------------------------- General network error. Check your network documentation. -> ExecuteReader [.Net SqlCl ...Show All
SQL Server i created a login in SQL SERVER 2005 EXPRESS, but cant login...
create login dave with password='abc', default_database=tempdb when i use this account to login my sql2005, i got Msg 18452, Level 14, State 1, Server DAVID-398113F7C\SQLEXPRESS, Line 1 Login failed for user 'dave'. The user is not associated with a trusted SQL Serv er connection. why You have probably installed the server such that it only allows Windows Authentication, so you cannot connect with a SQL login. See the "How to: Change Serv ...Show All
Windows Forms How to set the setup info of SQL Server Express Prerequisite
In MSDE, I can edit the setup.ini to control the setup parameters like InstanceName, sa password..etc. How can I do this if I install SQL Server Express as a prerequisite in VS 2005 Thanks Hi there, If you need a list of all the arguments which can be passed to sql server express setup file, you need to extract the sqlexpress.exe file somewhere and in the root of the folder look for a file named template.ini :) Yo ...Show All
