|
Hi
I know its a FAQ but i have searched google but nothing seems to be helpful for me.
In my application there is two part one is sending mail which i have done successfully n sencond is retriving mail.
I wanna know the best way to do it?
Thanks with anticipation
|
|
|
|
|
The answer is DON'T.
You are sending via SMTP right? This is no problem because ever mailserver in you buisness will have a virtual SMTP port or something similar - but normaly it won't have POP3 caps.
And writing your own POP3 server .... you won't like this.
So if you really want to receive eMail with your own code you might want to use the exchange-SDK or something similar to directly access the users-mail account - or (and this is much simpler) rewrite your software as an office-plugin.
|
|
|
|
|
I am upgrading VB6 to VB.Net
If App.PrevInstance Then<br />
MsgBox(gmsgString46, MsgBoxStyle.Critical, gmsgString34)
In that line of code
it complains
Name 'App' is not declared
how can i resolve the issue
|
|
|
|
|
I googled App.PrevInstance and this was the second hit:
http://www.thescripts.com/forum/thread389464.html[^]
I am going to bed soon, so you need to start looking up this stuff for yourself....
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks Graus
I am looking in to the link
gud night
|
|
|
|
|
Graus
It got resolved with the link u have given
replaced with
UBound(Diagnostics.Process.GetProcessesByName(
Diagnostics.Process.GetCurrentProcess.ProcessName)) > 0
thank u
|
|
|
|
|
hello,
I am developeing windows based application using .Net 2.0
can any one tell me how to give a vista like look to my windows forms
any hint ???
thankx in advance
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
What do you mean by 'Vista like'. Do you mean when on vista, or even on XP ? If the latter, if you want it to look like Vista on XP, then you need to create custom controls to get that look.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
prasaad
what exacly u wanna do?
if u develop any new project in .net2.0 and useing comman controls the app luks vista effect on vista, Xp effect on Xp
where is the problem?
post me if u have any queries
|
|
|
|
|
Hello frnds,
I mean i want to give vista effect to my window based project
how can i give ???
any API needed ??
thankx in advance
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
'UPGRADE_WARNING: TypeOf has a new behavior. Click for more: 'ms-help:
ElseIf TypeOf cnt Is System.Windows.Forms.Timer Then<br />
nType = 0 'UPGRADE_WARNING: TypeOf has a new behavior. Click for more: 'ms-help:
ElseIf TypeOf cnt Is System.Windows.Forms.ToolStripMenuItem Then <br />
nType = 0
after Upgradation to VB.Net it complains like this
Error 146 Expression of type 'System.Windows.Forms.Control' can never be of type 'System.Windows.Forms.Timer'. <br />
<br />
Error 147 Expression of type 'System.Windows.Forms.Control' can never be of type 'System.Windows.Forms.ToolStripMenuItem'.
how can i resolve those issues please help needed
|
|
|
|
|
A timer is not a control. You need to rewrite your code.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how can i re write the same code for the timer and toolstripmenuitem
please let me know
|
|
|
|
|
The code that uses a timer will need to be completely rewritten to use a .NET timer class. There's no simple way that I can see, a timer and a toolstripitem simply do not have a common base class in .NET.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
In my VB6 project
the declaration is like
Dim objDecrpt As New Encoder.cEncoder
when i upgrade it to VB.net
the
Dim objDecrpt As New Encoder.cEncoder
in VB.Net declaration says
" Type 'Encoder.cEncoder' is not defined" is not defined
how to resolve the problem please help me
|
|
|
|
|
Do you have any idea what you're doing ? Seriously, it seems like you're posting a question for every error you see, without trying anything to resolve them.
VB6 and VB.NET don't have much in common, no conversion is going to work 100%. You need to rewrite a lot of code.
The only hit I see on google is where you asked the same question on code guru. I'd suggest this means that the class is a custom class that has not been moved over to VB.NET.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Graus
actually I dont have any Idea what am i doing
I am VC++ programr but not VB this is first time am looking VB code
the thing is in our product i am changing the UI look and feel for Vista effect
my total product is in MFC, VC++ that i completed working now one small module ( its called import Utility)is developed in VB so to change the UI of that first i need to upgrade it ti VB.net and changing the UI
for that reason what ever i see as error i am posting in both placess in code guru and code project
since we dont have much time to finish, my first target is forums
sorry if i am behaving like a mad guy but i have to do
ok
u mean to say Encoder.cEncoder is not VB class?
|
|
|
|
|
sarat wrote: I am VC++ programr but not VB this is first time am looking VB code
In that case, welcome to hell Why did you draw the short straw ? Isn't there a VB6 team who has had to maintain this before ?
sarat wrote: u mean to say Encoder.cEncoder is not VB class?
According to google, it's not a built in class, so I assume it's a library your project uses. VB6 and VB.NET are totally different, there's going to be a lot of rewrite, if it's a small project, I'd be inclined to start from scratch
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all,
I having doubt in 2-dimension. is we can get index of 2-dimension array? or get the index of array by array values?
Help me please.
Senthil
Senthil S
Software Engineer
|
|
|
|
|
A 2D array is really an array of arrays, so myObject(0).GetUpperBound, or whatever, will get you the size of the second dimension.
Senthil S wrote: or get the index of array by array values?
No, you need a hash table for that sort of lookup.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
what is mscomctl?
in the following like of code it complains as "mscomctl" is not delcalred
when i upgrade mt VB6 project to VB.Net ...how can i resolve the issue
here is the code:
<br />
lstToSelect = lstProperties.FindItemWithText(Mid(tvwProperties.SelectedNode.Name, 2, Len(tvwProperties.SelectedNode.Name)), True, 1, mscomctl.ListFindItemHowConstants.lvwWhole)<br />
|
|
|
|
|
MSCommonControls.
The intelligent thing to do here would be to google the command that causes the problem. Like I did:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.listview.finditemwithtext.aspx[^]
Doesn't look like that constant is supported in .NET in any way.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanx for the reply Graus
I am new to VB
ok here the problem is
in VB6 the code is like this :
Set lstToSelect = lstProperties.FindItem(Mid(tvwProperties.SelectedItem.Key, 2, Len(tvwProperties.SelectedItem.Key)), 0, 1, lvwWhole)
and the upgrade vizard changed the code to
<br />
lstToSelect = lstProperties.FindItemWithText(Mid(tvwProperties.SelectedNode.Name, 2, Len(tvwProperties.SelectedNode.Name)), True, 1, mscomctl.ListFindItemHowConstants.lvwWhole)
now it complains " mscomctl " is not declared
how can i resolve the issue
|
|
|
|
|
Thanx Graus
it got solved
with the link u have given me
|
|
|
|
|
Hello,
I wish to develop a on screen keyboard just like the one which comes with Windows XP so that I can transfer data to any application which is selected for example notepad, webpage, word, excel etc. Any help with code samples is highly appreciated.
Cheers!
|
|
|
|