|
The code sazmple is incomplete. In what method is this code sitting?? And why should a Save method care about which button launched it?? Any differences between the button and menu functionality shoujld be handled by a seperate method, called by seperate handlers from the menu and button controls.
|
|
|
|
|
Thanks Dave, I got it fixed.
|
|
|
|
|
Hi All,
I have interface defined in C#
public interface ITABlock
{
public void Get(string id);
public void Get(ITABlockElement obj);
}
This is implemented as:
public class TABlock : ITABlock
{
// implementation of ITABlock methods
}
Now these methods are exposed to VB as
Get and Get_2 so when calling Get_2 it gives an error:
Object doesn't support this property or method
Any solution for this.
Thanks,
AksharRoop
|
|
|
|
|
Hope i have posted the question in correct forum...
|
|
|
|
|
IIRC, calling overloaded COM methods from VB6 is not supported.
|
|
|
|
|
Is it the same case with calling COM method from VBA?
Any documentation that i could find for this?
I did not get anything from search engine...
|
|
|
|
|
AFAIK, it's the same problem. I can't find any documentation on it. I just remember having one hell of a time trying to get it to work, then I stumbled on something saying it doesn't - about 8 years ago.
|
|
|
|
|
Hello,
I'm new and beginer in work with PID in VB.NET
I want from my app to send a command to other app that running.
I wand to catch the handler of one button from other app
If some can help me please.
Thank's for your time .
|
|
|
|
|
If the other app exposes some kind of interface, you'd have to use that interface to interact with it. How you do that is entirely up to what is exposed by the other app.
As for handling the click of a button in another app, I'm afraid you out of luck. Your app will never get any kind notification that anything was clicked on. Unless, of course, the other app exposes such functionality through some kind of interface that it exposes. There is nothing "generic" that is supplied by Windows to do this.
|
|
|
|
|
Hello,
I need some help related to printing from .NET's Webbrowser control. I already figured how to print and how to change header/footer, margins and so on ( Some Cool Tips for .NET[^] ). But how I can change the printer that is used for this printjob?
I know I could use webbrowser's .ShowPrintDialog() or .ShowPageSetupDialog() methods, but my users shouldn't gambling with this dialogs... they only want printing, without any dialogs, so I must select the printer in my source code.
I also know I could change the default printer for exactly the time my printjob is in the pipeline - but that's not fine art, isn't it? That seems to be the ultimate brutal solution, so I would prefer a more elegant solution for my problem. Any suggestions?
Thanks for all answers, and I hope I made my problem understandable...
- Sebastian
|
|
|
|
|
Is this[^] what you need?
|
|
|
|
|
Thanks for your reply, but the article won't help me.
I need to specify the printer name via source code.
|
|
|
|
|
That can be done using PrinterSettings.PrinterName property.
|
|
|
|
|
okay, but how can I assign PrinterSettings to .NET's webbrowser control?
|
|
|
|
|
hii
I am adding rows in listview at run time.
I want when new row is added then the focus is on the first row in the listview control(i.e first row is highlighted)
Please Help
Thanks in advance
|
|
|
|
|
ListView items have Selected property. Use it.
|
|
|
|
|
Can any one please tell me how to make a VBscript messagebox support unicode characters.
MsgBox("ストケースの部分をテ",vbYesNoCancel + vbQuestion, title)
The string in Msgbox is displayed as squares in the messagebox
Thanks in advance.
|
|
|
|
|
Strings are already Unicode in VBScript. The MessageBox is not part of VBScript, but is supplied by the system. There is no way to modify how the MessageBox works. It would appear that the system does not have the appropriate language pack installed to show your text properly.
|
|
|
|
|
Thanks Dave
After installing East Asian Languages in my system the unicode text in message box is displayed correctly
|
|
|
|
|
Hello Gurus!
am looking for a code that can help me add or create an sql user using vb.net in my project. I hope this is the right forum to post this since it relates to vb.net!
BTW am using ms sql server 2005
Thank for ur anticipated reply or links.(Pls code!)
|
|
|
|
|
Is google broken where you live?
Anyway, try this[^] and if you don't like/understand it then google for either create sqlserver user vb.net or create sqlserver login vb.net
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: Is google broken where you live?
Errmm, yes
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Hi. Im new to visual basic 2008. I am now learning classes and how to make an instance of a class. Below are my codes. I have a problem in which the system says my "Calculator.DateCalc2008()" is not defined.
The following is my class code.
PublicClass DateCalc2008
Private _startDate As DateTime
Private _endDate As DateTime
Private _span AsInteger
PublicProperty StartDate() As DateTime
Get
StartDate = _startDate
EndGet
Set(ByVal value As DateTime)
_startDate = value
EndSet
EndProperty
PublicProperty EndDate() As DateTime
Get
EndDate = _endDate
EndGet
Set(ByVal value As DateTime)
_endDate = value
EndSet
EndProperty
PublicProperty Span() AsInteger
Get
Span = _span
EndGet
Set(ByVal value AsInteger)
_span = value
EndSet
EndProperty
PublicSub IncreaseDate()
EndDate = StartDate.AddDays(Span)
EndSub
EndClass
This is my object codes. Reference from above.
PublicClass Calculator
PrivateSub StartDatePicker_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StartDatePicker.ValueChanged
Dim myCalc AsNew Calculator.DateCalc2008() //THE PROBLEM!
myCalc.StartDate = StartDatePicker.Value
myCalc.Span = 7
myCalc.IncreaseDate()
EndDate.Text = myCalc.EndDate.ToString()
EndSub
EndClass
|
|
|
|
|
I suspect VB is not happy because it is confusing the class Calculator with the namespace you are using. If both the calculator class and the DateCalc2008 class are in the same namespace you should be able to omit Calculator when declaring your variable, i.e.
Dim myCalc AsNew DateCalc2008()
|
|
|
|
|
Dim myCalc As New Calculator.DateCalc2008()
take off the work Calculator
Dim myCalc As New DateCalc2008()
DateCalc2008 would need to be nested within Calculator to be declared like that.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|