|
Hi,
I need to send email but the requirement is to send it without smtp server. Please tell me which control to use in order to do this.
Thanks
|
|
|
|
|
You must have an SMTP server _somewhere_ if you are mailing to the internet in general; internet mail requires it. [There are some localized mail systems that don't use SMTP.]
However, you don't need a _local_ server. If you can access internet sites directly, you can do the send from a local process to the remote site directly. To do this properly you _MUST_ understand the relevant internet standards. Basically, however, you need one of the many .NET components that can send mail using MX lookup, rather than only forwarding it to a proper SMTP server.
HTH, Ruth
|
|
|
|
|
Hi Group!
I need to write an application that will allow me to connect and check the current Antivirus Update both local and remote.
Any ideas, how to go about this;
Thanks.
|
|
|
|
|
You better check with Symantec first before you go plodding thru their servers with code that isn't theirs! Don't want to crash their stuff now do we? While your at it, you could also ask them if they would be willing to give you documentation on what the process is.
RageInTheMachine9532
|
|
|
|
|
here is the problem; i am looking for a solution.
On a button click; i want to open a rich text editor or WordPad; and want to copy the text typed there to my own text field, once user clicks exit/cut Button.
can i do this?
is there any control available to use worpad in our application? like msword.olb for MSWord programming.
i am using vb.net with asp.net; had to do this on a aspx web page.
Looking for Help
ASIM
Asim
|
|
|
|
|
Wordpad doesn't have an object library like Word or Excel does. WordPad is nothing but a user interface wrapped around a Rich Text Box control. For Windows Forms apps, it's simple.
But, there is no Rich Text Box control that comes with VS.NET that works on Web pages. Here, your going to have to search the sites, like www.asp.net or download.com or whatever, to find a 3rd party control to do what you want. I found a few out there, but they weren't free!
RageInTheMachine9532
|
|
|
|
|
Hi
Does anyone knows how to control .Net Windows from VB script or Javascript? What I m trying to do is in my application, web browser control is embbeded on a Form and when a user click on to the link on the html page in web browser control, another form must be open up in the main application.
I have try sevral way such as writing another com object to read process name.
Dim localAll As System.Diagnostics.Process() = system.Diagnostics.Process.GetProcessesByName("myprogram ")
by referencing localall(0).mainwindowtitle will return myprogram.title. How can I call methods from "myprogram"(main application).If i can call methods from main application, then i would be able to open a form in main application.
Pls help me asap.
Thanks in advance.
|
|
|
|
|
Hi,
I'm having problems trying to figure out how the new VS.NET macros work.
In VS6 you could add a file to a project by using this statement:
Application.Projects(1).AddFile("test.cpp")
They changed the object module, so this no longer works. I tried to figure out what the equivilant statement is, without any success.
Can any one help?
thanks,
Ed
|
|
|
|
|
Hi I want to access the windows address book and display the info of contacts in vb. can anyone plz help me
sajeed
|
|
|
|
|
Hello, I am working on a program for my workplace that requires sending information from a Form to an excel spreadsheet that is shared to certain users. I can create a spreadsheet through VB but I am not sure how to add to it. I would typically use Access but that is not available at my workplace. This is a scheduling application and gets added to on a daily basis so the program would have to determine the next empty cell in excel on its own. Is this possible? Any suggestions? My experience level is beginner-ish.
|
|
|
|
|
I am trying to develop a user page, where I show the number of days taken for a task completion using a text control. In the background (i.e., the text should be in the front) I need a control (something like a grid) which can show the weeks or days (timescale) in vertical columns. Which control should I use and how? Any help in this regard will be greatly appreciated.
|
|
|
|
|
How do you create a string with 3 substrings to validate a telephone number. I know I can use the MaskEdit tool but I can't in this program. I have to use the IsNumeric function to determine is the textbox has the correct data. The telephone number is in the format of 999-999-9999, where 9 is represented by any number. I have to create 3 substrings for each part of the number. Also when I click on my button to exe the IsNumeric function I get my error message I created "Please enter a numeric value" because the dashes are not a number, how do I stop the error message without removing the IsNumeric function. HELP PLEASE ASAP
Thanks in advance
|
|
|
|
|
myString.Split('-')
will return an array of strings. In the case of a valid phone number it will be three strings. You can then do your IsNumeric test on each of the three strings.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
|
|
|
|
|
How do you create the string and substrings for a valid entry?
|
|
|
|
|
This is the code I have but I'm not getting the output correct. What am I doing wrong?
Dim MyString As String
Dim intLen As Integer
MyString = (999 - 999 - 9999)
MyString.Substring(0, 2)
MyString.Substring(4, 6)
MyString.Substring(8, 11)
intLen = Len(MyString)
If IsNumeric(MyString.Substring(0, 2)) = False Then
txtTel.Text = Nothing
txtTel.Focus()
MsgBox("Please enter a numeric value")
End If
If IsNumeric(MyString.Substring(4, 6)) = False Then
txtTel.Text = Nothing
txtTel.Focus()
MsgBox("Please enter a numeric value")
End If
If IsNumeric(MyString.Substring(8, 11)) = False Then
txtTel.Text = Nothing
txtTel.Focus()
MsgBox("Please enter a numeric value")
End If
What am I not doing right?
|
|
|
|
|
justmeTW wrote:
I'm not getting the output correct. What am I doing wrong?
What output are you getting?
justmeTW wrote:
MyString = (999 - 999 - 9999)
I'm guessing that the quotes are missing here, but are actually there in the real code.
justmeTW wrote:
MyString.Substring(0, 2)
MyString.Substring(4, 6)
MyString.Substring(8, 11)
This doesn't do anything useful. It wastes processor time because the substring operation is carried out, but the result is thrown away as you don't assign it to any variable.
I'm assuming that Substring() takes the start and end index. I'm also assuming that IsNumeric() takes a string and not an individual character. Can you confirm these assumptions?
justmeTW wrote:
txtTel.Text = Nothing
txtTel.Focus()
If the user gets it wrong, by all means, focus on the control, but don't delete the text - What if the user just mistyped one character? Do they want to have to type it all in again, or just correct the erroneous character?
These should help debug your code.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
|
|
|
|
|
String handling is one of the most basic parts of programming. Either you need more time to learn the basics i.e. sit down with a book that will take you step-by-step through each basic aspect of programming.
Or, if do know how to program already, then you need to phrase your question better because I have no idea what you mean.
--Colin Mackay--
"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown)
|
|
|
|
|
I'm in a Programming class that is suppose to be step-by-step, but it's not, that is why I am having so much difficulty.
Colin wrote:What output are you getting?
When I type in a letter char I'm suppose to get a error message, if I just use the following code it works:
If IsNumeric(txtTel.Text) = False then
txtTel.Text = Nothing
txtTel.Focus
msgbox("Please enter a numeric value")
end if
Is works as long as I don't have the dashes in the text box. What my assignment calls for is to create a string for the phone number 999-999-9999 then create 3 substrings for each part of the orginal string (999-999-9999). The first substring should be "999", second substring "999" and third substring "9999" but my book doesnt explain how to create the substrings. I have search throught the VB help and every other resource I have found, but still don't understand how to create the substrings and then use them for the IsNumeric function.
Colin wrote: If the user gets it wrong, by all means, focus on the control, but don't delete the text - What if the user just mistyped one character? Do they want to have to type it all in again, or just correct the erroneous character.
If the input is not valid I am to clear the textbox and set focus back to it and have then re-enter the phone number. That is why I did it that way, it's part of the assignment. I know there is a way to have the error part to be selected instead of the whole thing but right now I am just trying to get the required part done and understand how to do it. My main problem is with creating the substrings and how to get the IsNumeric function to skip the dashes and only read the numbers.
|
|
|
|
|
Colin wrote: If the user gets it wrong, by all means, focus on the control, but don't delete the text - What if the user just mistyped one character? Do they want to have to type it all in again, or just correct the erroneous character.
If the input is not valid I am to clear the textbox and set focus back to it and have then re-enter the phone number. That is why I did it that way, it's part of the assignment. I know there is a way to have the error part to be selected instead of the whole thing but right now I am just trying to get the required part done and understand how to do it. My main problem is with creating the substrings and how to get the IsNumeric function to skip the dashes and only read the numbers.
I forgot to add that it only clears the box if the txtTel.Text is a letter char, if it is a number is won't clear it.
|
|
|
|
|
language : visual basic .net
overview : TreeView control is composed by nodes collection which is the TreeNode object. every TreeNode object have some property(ex: Tag Property). these property can be use in the tree view event like Treeview_AfterSelect event(ex: e.node.tag)
Wanted : make the second Tag property.
i have already try to make a class which inherits from the treenode class and add a property (say : Tag2 property) but when i use the Treeview_afterSelect event, i can't find my Tag2 property using the e.node.(property).
i assume this is because the e variable in this event is define as System.Windows.Forms.TreeViewEventArgs (as indicated in the event declaration : Private Sub TV_AfterSelect(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TV.AfterSelect) which don't have the Tag2 property
Question : how can i make the tag2 property which can be accessed in the TreeView Events just like the Tag property does.
(please give the detail step by step)
Thanks.
|
|
|
|
|
You need to cast thee treenode object that comes in e.node to your object.
e.g.
Dim vExtendedNode as MyNode
vExtendedNode=CType(e.node,MyNode)
Hope this helps...
Free your mind...
|
|
|
|
|
I'm wondering if there's an escape character for " when using it as below?
getFieldValues = Replace(getFieldValues, """, "'")
I'm looking to replace all "'s in a string so that I can copy and paste it directly into query analyser as a SQL string.
Thanks
Look at the world about you and trust to your own convictions. - Ansel Adams
Meg's World - Blog
Photography - The product of my passion
|
|
|
|
|
The proper format is to double the quotes, e.g.:
getFieldValues = Replace(getFieldValues, """", "'")
denimined
|
|
|
|
|
Hi Folks
A simple project is done to use access database from visual basic.. While the program works perfectly. Then it is packaged and sent for distribution (using package an deployment tool of vb). At the client's place while doing the setup it is giving the following error(s).
Can somebody help me out please
Database : Access
Front End: VB 6.0
OS: Win-XP (Home edition)
*** ERROR: The file 'C:\DOCUME~1\ADMINI~1.NII\LOCALS~1\Temp\msftqws.pdw\$(DLLSelfRegisterEx)' could not be registered because it was not found.
*** ERROR: (User Responded with 'OK')
Thanks in advance
Sam
Sampath K.S
Bangkok
|
|
|
|
|
Wat os ur using..
Shanmuga Sundar.V
|
|
|
|