|
Without knowing all the background it's hard to help but:
try
Dim oTransformation As New DTS.Transformation2
OR:
The problem is with the
<br />
oTransformation = oCustomTask2.Transformations.New("DTS.DataPumpTransformCopy")<br />
part.
A constructor is not a simple Method (it for example no return value) but a OPERATOR. So try
<br />
oTransformation = new oCustomTask2.Transformations("DTS.DataPumpTransformCopy")<br />
But as already said: it's hard to tell without knowing the oCustomTask (is it a class with subclass Transformations? Or is it a Namespace?) and DTS.Transformation2.
|
|
|
|
|
I can't get my sub main() to execute. I tried it in the main form and, as suggested by another user, in a module. The console.writeline never executes in either place. What am I doing wrong? Thanks!
Module Module1
Sub Main()
Console.WriteLine("HERE")
End Sub
End Module
|
|
|
|
|
You have to set the entry-point in your project-settings. Normaly this points to the main-form - but you can set it to the Sub Main.
|
|
|
|
|
Well it seems I can only do that if I make the project a console application instead of a windows application. Otherwise sub main is not a choice in the startup dropdown. But I'm not sure what the difference is, or if I really want to do that.
|
|
|
|
|
Ok - you are right - strange.
Try using C# instead
|
|
|
|
|
I read in several places that putting a sub main() in your code in vb.net automatically ran that sub main() instead of the default. But that doesn't seem to be happening for me.
Thanks
|
|
|
|
|
In order to specify your own "Sub Main", you have to turn off the "Enable application framework" option directly under the option to pick your startup object.
|
|
|
|
|
I guess I should have seen that... the checkbox is right there in front of my eyes..
Thanks!
|
|
|
|
|
in my VB6 code the code line is like this
PopupMenu mnuAddDeleteItems
upgrade vizard change it to
PopupMenu(mnuAddDeleteItems)
but
i am getting the error
<br />
Error 125 Name 'PopupMenu' is not declared.
PopupMenu is custom function?
how can i resolve the issue
|
|
|
|
|
You might have to rewrite the code using the ContextMenu class.
|
|
|
|
|
there is no implimentaion for popupmenu in VB6
just its using the method
can u please giveme some pointers how to
replave that with contextmenu?
|
|
|
|
|
You will have to add a ContextMenuStrip to the form from the toolbox (in the formular designer).
Then you can use the .Show method of this object to show the context menu.
But you will have to map the Click-events yourself and will have to add the menu-items to the ContextMenuStrip first - but this is more or less the same that it used to be in VB6-days (well the menu-editor is gone but you can use some simple WYSIWYG editor directly in the form-designer)
|
|
|
|
|
|
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 )
|
|
|
|