Esterill's Q&A profile
Visual Basic EMAIL
I am using this code in vb.net 2005 to sent an email but an error FAILURE SENDING MAIL is allways appearing. Can someone show me where I am duing wrong. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send("glennzarb@gmail.com", "glenn_zarb@hotmail.com", "Test", "hi") MsgBox("sent") Catch ex As Exception MsgBox("Send failure:" & ex.Message) End Try I haven't installed any other programs or smpt's I kept it like this SmtpClient.Host = "localhost" and it is still telli ...Show All
Windows Forms Calculated fields in dataset
Hi, I need to add custom calculated fields to DataTable of Dataset in following scenario (simplified): There is in-memory cached data as Dictionary<Guid, string>. There is DataTable with columns Id (Guid) and Name (string). Id is being filled by DataAdapter. I need Name field to be calculated (taken from Dictionary object). Is there any way to accomplish that I created DataSet object with DataAdapter. DataTable's OnRowChanging/OnRowChanged are overriden already, so I can't override them in partial DataTable declaration. I can use OnChange event created by DataSet, but doing so I'd have to provide method that creates DataSet, attaches event handler and returns it to the caller. This makes DataSet object inconsistent - ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Hosting Souce Code
Does anyone know a website where i can host the source code for my game . contact@learnXNA.com I are really looking components and other thing to help the community. But I can also host some games. ...Show All
Visual Studio Express Editions Learn about dlls
I would really love to learn what a dll is, how it is used and in what kind of circumstanses I would need to use one. Here is what I do know about them 1) dll = dynamic link library and that's it (and I am not really sure if that is correct) Does anyone have a test dll that I can look at or at least a reference to where I can learn more aobut them. Thanks in advanced. So, if I understand you correctly, a dll is the same as a module, but it can be used in mulitple different applications. For instance, if I have a function that I have created that I want to use, and I know that it would apply in multiple different then I could create a class library to use that function in the different applications ...Show All
Software Development for Windows Vista Exception on raising an event
Hello, I'm developing an example project very similar to expense reporting (lab01), with two event handlers. I can fire the first one (submitted event) without any problems, but when I try to raise the second event (reviewed event) I get an exception that sais: "EventDeliveryFailedException was unhandled" and the message is "Event "RevisatCOF" on interface type "WorkflowValidacio.Interficie" for instance id "ef46e5fa-64c7-4343-9d3c-c62b829f9c37" cannot be delivered." I followed exactly the example in expense reporting, so I have the event declared in my interface and in the implementation class, and I raise the event like this: RevisatCOFEventArgs e = new RevisatCOFEven ...Show All
Visual Basic Editing Listview subitem contents
Hi all, Hope someone can help me with this. I have a Listview (details view) with 5 columns. It looks like I can only edit the first column text (with labeledit=true) as the listview control won't let me select the text in the other columns. Is this a limitation in Listview or am I missing something Should I use the DataGridView control instead Thanks in advance. I just did a quick test and changed the column names right in the IDE: (Maybe I missed what you were asking..) Part of the InitializeComponent: Private Sub InitializeComponent() Me .ListView1 = New System.Windows.Forms.ListView Me .ColumnH ...Show All
SQL Server No checkboxes on the Server Roles page for Logins
Hi, There are no checkboxes when I view the Server Roles page under Security --> Login properties. The page does work. If I highlight a role and click OK, the role is granted. I have uninstalled and re-installed SQL Server 2005 Developer Edition, but there was no change. Any help would be appreciated. Thank you. Hi, Thank you for replying. We do not have approval to load the service pack and hot fixes, so I am running 9.0.1399. This is a problem on the workstations where the standard edition was installed for testing purposes and then removed. Then the developer edition was installed. Workstations that did not initially have the standard edition installed d ...Show All
Windows Forms auto check a checkboxlist from a query result
I have a checkbox list that has 75+ items in it that is filled by a query. I then have query that brings back a list of items (lets say 20 items) how would i loop through that list and check off my checkboxlist with those 20 items thanks Hi, While adding the other 20 items in the checkedlistbox, please go through the below code. I havent tested this but it should work i guess. Dim I As Integer For I = 0 To CheckedListBox1.Items.Count - 1 If CheckedListBox1.Items(I).IndexOf("Whatever You Are Looking For") <> -1 Then CheckedListBox1.SetItemChecked(I, True) End If Next thank you, bhanu. ...Show All
Visual Basic Crystal Report And Similar Tool For Printing Document
May i know is there any tutorial on Crystal Report, i want to retrieve some data from database, format it and print it out. Apart from Crystal Report, what other tools is suitable for this Thank you. I have already solved the previous problem. I am really a beginner to crystal report and have no idea on its working principle, is there anyone can provide some information or web tutorial which can guide me from the ground I need to know the basic like how to bound the data to the report and display it properly, how to format the report and do the query to display particular data in the report. Thank you. ...Show All
Windows Forms lose TreeView events after placing on SplitterContainer Panel
If I drop a treeview control onto a Windows.Forms.UserControl, when I click on a node, it fires the AfterSelect event. But after cutting it from the primary surface and pasting it into a SplitContainer control (Panel1), the treeview gets populated with nodes but the AfterSelect handler doesn't work. Why is that Is this an object hierachy problem with the controls Or is the panel within a splittercontainer not really a container to host a control. Seems like I have had to actually drop a panel control into the splitcontainer before to host a control, but it doesn't seem like I should have to. Thanks, -Greg When you are cutting and pasting the control from one container to another t ...Show All
Visual C# How-to: Read Image from database into pictureBox control using a bindingSource.
Hi all, I am a noobie to C# and have been trying to write an application using sqlce and C# for a Windows Mobile 5.0 device. After much searching, I have not been able to find any examples to assist me. I have a form that is using a BindingSource bound to a table from a SQLCE database. One of the columns in my table is of type Image. I would like to read/write an image to this column and show it in a pictureBox on the form. I understand that the Image is stored as a byte[] in the database and needs to be converted to and from this format, however, I have not been able to find any samples of how to do this with a BindingSource object. For example, I have a table Options that contains the following columns Options { optionId int, companyName ...Show All
Windows Live Developer Forums Longitude, latitude problem
I have been using the virtual earth control and have a couple of questions. I would like the map to initially focus over Turkey in Europe. I would then like to place a push pin over the city of Instanbul. My question is how do I find the longitude and latitude of this country and city so I can use the map control Or is there another way of doing it without knowing the longitude and latitude Thanks Danny Thanks for the reply. How did you get that And can that be used to set the virtual earth map control Thanks Danny ...Show All
Software Development for Windows Vista Problem with custom AllocatorPresenter
hi there! i'm using vmr7 with a customized allocator presenter. my allocator presenter basically just works as a proxy for the default component, only that i'm doing some drawing in the before i forward Calls to PresentImage(..). Everything works fine, but auf the user hits ctrl+alt+del and comes back to the desktop the video image is not showing anymore. In the sample application (directshow/vmr/renderless) after leaving the ctrl+alt+del screen the ChangeDDrawDevice gets called - with my allocator presenter it doesnt. seems like im forgetting something or am not really understanding the mechanisms.. how am i notified of the user leaving the ctr+alt+del screen thanks in advance for your help ...Show All
Silverlight (formerly WPF/E) Z-Index
From what I've seen there's not currently support for Z-Index on UIElements. Am I missing something though Is there a way to set the Z-Index of an element out of my experience, you have the ZIndex propery for <panel> element and grid element. panel.ZIndex is intelisenced grid.ZIndex is not, but works fine. mugile ...Show All
Visual Studio Sharing Files with Sourcesafe 6.0
Can files that have been checked out exclusively by someone still be shared. When I go to share a particular file through vb.net 2005 I can't see the file. When I go into sourcesafe its there. Not sure why Any ideas Thanks. jb ...Show All
