Leandro Mussi's Q&A profile
Visual Basic Sending email in vb2005
Does anyone have a barebones example of how to send email using vb 2005 I keep having problems assigning a recipient address. I have a question about the smpthost. First off what is it can it be an IP Thank you ...Show All
.NET Development One-bit-alteration problem in the using of serial port
Hi Im using the serial port in my application through the SerialPort class and everything goes fine apparently. I open the serial port in one computer and this computer send an array of 26 bytes whose last 2 bytes are: 0x5E and 0xF9. Ok when the other computer receives the data it receives all of the bytes ok except the last one which,instead of having the 0xF9 value ,has the 0x79 value and i dont know why is this happening. I have r ...Show All
SQL Server Error in Creating Stored Procedure from VS 2005
When I create a stored procedure in VS 2005 using C# and deploy it to the server I can't execute it there and here is the error message: Msg 6522, Level 16, State 1, Procedure GetAll, Line 0 A .NET Framework error occurred during execution of user defined routine or aggregate 'GetAll': System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral ...Show All
Visual Studio 2008 (Pre-release) "yield enumerate"...
(Slightly off-topic, but it at least deals with enumerations.) Lately, I've found myself using the following pattern: public IEnumerable<T> Foo(IEnumerable<T> values, IEnumerable<T> moreValues) { foreach (T t in values) { yield return t; } foreach (T t in moreValues) { &nb ...Show All
Microsoft ISV Community Center Forums Unpredictable (as yet) problem with DateAdd
Can anyone provide some insight into this date problem I have a Date/Time field called AppointmentDate in a table. I have a form that is based on the table with a bound text-box called AppointmentDate (I let the wizard add it to the form and bind it). I also have a button on the form that, when clicked, tries to figure out the day after the one in the AppointmentDate field. As far as I see it, the following should work. Dim tmro as Date ...Show All
Windows Forms Making a scrollable panel scroll with mousewheel just by hovering mouse
Hi, I have a particular problem with a possible solution and I am interested in hearing peoples opinions if it is the right way to go about it (or not ) Some applications I have come across, such as Firefox, will allow the user to scroll the document window just by hovering the mouse over the display area and using the mouse wheel. You don't have to focus / select the display area first. With Firefox, the address bar can have the foc ...Show All
SQL Server a fatal error of sqlserver2005
I find many errors these days in my sqlserver 2005. description is : SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is config ...Show All
SQL Server System::InteractiveMode is FALSE from dtexecui?
In a script task, I prompt the user for some parameters. I use the System::InteractiveMode variable to tell me if the package was launched via user interaction or from an automated process such as a file watcher. I display the prompts only if System::InteractiveMode is true. When I run from VS 2005 then I get the prompts, and when the package runs automated (dtexec) the prompts are not shown, so all is OK. However, when the package is run from d ...Show All
SQL Server AdventureWorks db for 101 Samples
I'm not sure if this should be asked here. If it's the wrong place, let me know and I'll correct. I've just downloaded 101 Samples for Visual Studio 2005 . But the data access samples require AdventureWorks database which is not included in the C# sample. Who know where I can get this database It is a SQL 2005 database, I think. Thanks! gaile- Thanks for your quick response. Specifically, from CreatingMaster ...Show All
Visual Studio Team System Hierarchicaly linked work items
Hi, We know that two work items can be linked togeteher. But say we link work item A with work item B, then there is automatically a link from B to A. But our requirement is to create work items which are hierarchical in nature. Say Requirement 1 is divided into Requirement 2, 3, 4 and these may be divided into further requirements and/or tasks. Now if we create that kind of scheduling in MPP, we want to publish it in VSTS but w/o double s ...Show All
Visual Basic Displaying a list of values
Another newbie, so please be patient with me ! I have 7 variables which are all set to store 20 numbers, what would be the easiest way to display these numbers on screen in 7 columns I've tried looking at ListView, added 7 columns Columns under Behavior in Properties but it just doesn't show any columns ! I'm using VB 2005. Thanks Simon Chances are the View property of your ListView i ...Show All
Windows Forms Synchronize scrolling in 2 richTextBoxes in C#
Dear All , I have 02 richTextBoxes in a form and there is a correspondance in the content of one RTB to another. So I need to synchronize the scrolling of these 02 RTB s. Hope anyone of you all may know a way to do this in C#. Thanking in advance. Hi! I tried both versions, each of them has a drawback. The first version includes scrolling with mouse wheel, but (you have said) the confinement is ...Show All
SQL Server Data Driven Subscriptions unavailable, please help
I'm running sql2000 Standard with SP4 applied. I also have Reporting Services 2000 with service packs running on the same machine. I'm trying to get a data-driven subscription, but the button to access is unavailable. I've assigned the account I'm working under the Publisher role and have modified this role to have all permissions (including managing subscriptions). I have stored credentials with my data source as well. I can c ...Show All
Windows Forms Form, Panel or UserControl
Hi Fellows, Could someone please tell me the differences between using a Form, Panel or a UserControl. I am working on a .NET application; this application will have several windows docked on a single Form. I could create these docked windows by usi ...Show All
Visual C# Image Transparency & Image Files
I am attempting to create a pong remake. I am using graphics i made for the images. The images are surrounded by black. I would like to make it so black in an image shows up transparent. In game speak this is called "Sprite Transparency". I would like to make it so the pictureimage control loads the images from disk instead of "binding" it to the executable. That way my players can simply replace the files with their own to create d ...Show All
