charlie999's Q&A profile
Visual Basic Send mail in .NET
I'm new to .NET and i'm trying to send mail using VB.NET. Here is the code snippet. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send(" xxx@abc.com ", " yyy@abc.com " , "Test" , "hi" ) MsgBox( "sent" ) Catch ex As Exception MsgBox( "Send failure:" & ex.Message) End Try I get the following error "Failure sending mail". could anybody help Thanks in advance. some SMTP servers have a limit of 76 characters per line and the issue may happen because of this. Make sure you add your own breaklines (Environment.NewLine or VbCrLf) to see if it resolves the issue, or use an ...Show All
Windows Forms DataBound DateTimePicker/ComboBox Events
Events on Databound controls that have their Visible Property set to false at DesignTime do not fire events. I was told this was part of their design. I accept that fact. But controls that have Visible set to true at design time and then Visible gets set to false at runtime, will fire events even though Visible is false. Question 1: Why does having Visible = false at Runtime and Design time behave differently Question 2: What internal happenings occur that make the control start firing events and can I trigger this internal change (i.e Can I force a Control with Visible = false at Design fire its events or visa versa can I make a control with Visible = false at runtime not fire events) How to Repeat: I attached a simple ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Future ability to specify mouse coordinates?
I have done some searches on the topic and from what I can gather is that the current release of XNA does now allow programmers to specify the coordinates of the mouse pointer, only to retrieve them. I am currently in the procress of developing a first-person view type game in an organization in my university and to do so would require the ability to center the mouse pointer to the middle of the window each time the mouse is moved. As of now this isn't possible. I am wondering if in the near future or sometime later with perhaps another release of XNA beta or the final release if this will be a feature that is available Until then I was wondering if anyone has found a workaround to this situation so that I can use th ...Show All
Windows Forms Listbox to show options from a related table
On a Windows form, I have textboxes to show data rows of a main table. The main table has a foreign key to a minor table which is a list of status values ("Pending", "In Progress" and "Done"). The object is to display the status in a listbox or combobox. I want to know how to do this. Some notes: 1) The code to set up connections, DataAdapters, CommandBuilders, bindingsources, Datasets, etc works fine. 2) I would like to set up any constructs in code rather than with a wizard. 3) Unless I have to I want to avoid creating the relationship between the tables in the wizard. 4) I get the sense that one Dataset can access and update both tables, but I don't know how to tell the dataset about additional tables. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is the download?
It is 12:48 pm here (GMT + 1)... in Nuku'alofa (GMT + 13) it is tomorrow... So where the hell is my download link :-D It's just about 12:30 AM, my guess is you'll still have to wait several more hours, probably at least 8 and a half since the workday starts for most people in the US around 9 AM. Even then I don't expect to see it until later in the afternoon Pacific time. ...Show All
Visual Studio status of msclr templates: auto_handle, auto_gcroot, call_in_appdomain, et cetera
I just updated to the August 06 MSDN Library from the previous and the first thing that I did was try to follow something in one of my favorites to this information: http://msdn2.microsoft.com/en-us/library/ms177046.aspx but the link was unfollowable. So then I tried search for auto_handle, auto_gcroot and call_in_appdomain and I got zero hits. What gives Is Microsoft deciding to not support these templates after all Or is the new MSDN just dysfunctional Should I uninstall it and go back to the previous one -Bern McCarty I guess I can take this question to some documentation forum. A search on "stl" also gets zero hits. Useless. What a waste of a morning. Yes I have my search ...Show All
.NET Development Need of a fast timer
Hi, I was wondering if there were a faster timer than the control timer provided in the toolbox. I would like to take some value from a controller card at a rate of around 10-20 KHz. Or I was wondering if it is possible to have an infinite loop ( which stop when I press a buton), with a function which tells to do any events ( move mouse, paint, close...) that may appear Thank you for your answer, Eric hello dears, i need atimertick which repeat the process every 200 microsecond .what should i do i wrote my app with visual c#.net. plz help me very soon. i don't have enough time. ...Show All
Visual Studio 2008 (Pre-release) Repeating controls
Hello all, I was wondering if there was any way to repeat a row of controls Say I have 2 ListBoxes, 2 Radio buttons, and an Edit box in a row, and I need 6-7 such rows. Right now I create one such row, and copy paste it, and change the Name attributes. This really bloats the Xaml. I could use a ListBox and use that to repeat the rows by style-ing the ListBoxItem appropriately. But is that the way to do it Would there be such sort of native repeater control in WPF Something like the one in ASP.NET An alternative is to use procedural code - but I am consciously trying to avoid doing that. After all, Xaml wasn't introduced for nothing - might as well try and utilize its capabilities to the maximum, eh :-) Thanks in advance. ...Show All
.NET Development Strongly typed DS and DataView
For my work, I really like to use strongly typed DS and the functions generated for the relations. This makes it very easy to navigate through data, the code will look somthing like this for example: drCustomer.GetOrdersRows, returning an array of Order rows for the customer row I call it on - really easy to understand and use. However, sometimes you want the orders to be sorted - that requires a dataview... which cannot be set up the filtered rows array. So I end with setting up my view with .rowfilter = "id = number" and .sort = "Date"... Totally loosing the comfort of the strongly typed DS and the "column name safety" that the first method offers... So... what is the way to use strongly typing and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawIndexedPrimitives Problem
Hi.. I try to use vertexbuffer und indexbuffer to create a terrain. I use just the same Code in this link (please look at the bottom of the page): http://www.riemers.net/Tutorials/DirectX/Csharp/tut7.php Then I try to change the width and the height of the terrain (instead 4x3 I make for example 40x30). When I start my application, then my computer freeze. Can you please check the code and samy me what do I make false Thanks.. Hi Ralf.. Does it work when you change the WIDTH and HEIGHT variables I can create maximun a 4*4 terrain. I have a Radeon 7000 AGP 32MB grafic card. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Capabilities Viewer
If you come from DirectX to XNA you may know the CapsViewer that is part of the SDK. As the XNA framework is based on DirectX the caps are valid for XNA too. Naturally the DirectX version uses the DirectX names for everything. As many things like the surface formats are renamed for the XNA framework it could be hard to use the DirectX Caps Viewer for XNA. Therefore I have written a small viewer which shows the capabilities of your graphics adapter(s) using XNA identifiers. Download I will provide the source later (needs a little cleanup first). ...Show All
.NET Development ? 've got Microsoft.SharePoint.SoapServer.SoapServerException
hi.. write code and using "getlist and viewname method " for learning about some list names and view names for project server 2007 lists. but when start my project 've got Microsoft.SharePoint.SoapServer.SoapServerException how can fix it please help me m working on project server 2007 site . the application is working properly on the project server lists but when create a custom list my solutiuon gives Microsoft.SharePoint.SoapServer.SoapServerException . do you have any idea or workaround for this thanks in advance ...Show All
Visual Studio Express Editions Windows Mobile 5
Is it possible to code for Windows Mobile 5 with the Visual Basic Express edition, as I notice the SDK for WM5 does not mention express, and also there is no "Device" in the Tools>Options menu of Express If not, is there or will there be an Express version of some sort to code for WM5 MatthewGuy wrote: How would you be able to do it in notepad I used to code a lot in notepad before I could afford vb.net 2003 standard :> It was horrible! Basically you just create your classes etc. and throw them at vbc.exe (the visual basic.net compiler) which is shipped with the .NET SDK. I think this is the method that SharpDevelop uses, or maybe they wrote their own compile ...Show All
Smart Device Development textbox
i try to compare value in textbox, it doesnt return null when it i did not key in anything. what is wrong with my textbox Probably nothing, it just has empty string in it, not null. ...Show All
Visual Studio Express Editions Compiling Boost in VC++ 6.0
I would like to know how to compile Boost Library in VC++ as there are only header files(.h files) provided and no implementation files (.cpp files). As almost all of the Boost library is template based it is usually just defined in header files. So all you need to do is to just include the header file you need. Note: trying to use Boost with Visual C++ 6.0 can be a real pain as the support for templates in Visual C++ 6.0 is poor. If you wish to use Boost I would upgrade to at least Visual C++ .NET 2003. ...Show All
