|
Try this:
Reflection.MethodBase.GetCurrentMethod.ToString
Shay Noy
|
|
|
|
|
Thanks; I think that will work for my VB .NET projects. Do you happen to know a method that will work in VB6 as well?
|
|
|
|
|
No, I don't. You can check in google
Shay Noy
|
|
|
|
|
2 questions.
Is it possible to fire data from an excel sheet into MWD form via a macro in excel?
and
How?
I have never used this database before, and it is a bit of a legacy thing that needs to be addressed.
I have tried googling, but can't find much that helps, if you know of a good site that too would be useful.
------------------------------------
"When Belly Full, Chin Hit Chest"
Confucius 502BC
|
|
|
|
|
I haven't used Works for yonks and yonks, but from memory it deals with csv files reasonably well. You could fire the data to a *.csv file and open it in works.
I googled microsoft works csv and got a fair few hits about works to excel you might want to have a look yourself.
I also found two links to a couple of works libraries Libwpd and Libwps (below) that might be worth further digging?
Libwpd[^]
Libwps[^]
Hope this is of some help.
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.”
|
|
|
|
|
Thanks Henry, I shall have a play with it in the morning.
------------------------------------
"When Belly Full, Chin Hit Chest"
Confucius 502BC
|
|
|
|
|
Before you get out of bed, or wait till you're in the bathroom?
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.”
|
|
|
|
|
Probably at work, I am in bed as we speak!
------------------------------------
"When Belly Full, Chin Hit Chest"
Confucius 502BC
|
|
|
|
|
Henry Minute wrote: Before you get out of bed, or wait till you're in the bathroom?
That has made me chuckle!
|
|
|
|
|
Liqz wrote: That has made me chuckle
Good.
It actually works on two levels, since the OP and I both utilize Mobile Broadband, so both scenarios are possible.
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.”
|
|
|
|
|
Hello,
I want to write a programme. It's mantality is as same as Autoit. I have a windows form and when ı clicked to Button, ı want to send 1 or 2 or Ctrl+Alt+F2. My friend is playing a game and said me: can you do this? I said yes. Soooo... I use Sendkeys.send() as below:
--------Button1.Click-----------------------
SendKeys.Send(Chr(Keys.D1))
System.Threading.Thread.Sleep1000)
SendKeys.Send(Chr(Keys.D2))
I use it but it sent 1(but Text form of 1 - string)
|
|
|
|
|
First, controlling another application using SendKeys is about the poorst method you can use. SendKeys send keystrokes to whichever window with the focus, without caring about which window has the focus! You could be sending keystroked to Notepad when you actually wanted Calculator. There is no way to guarantee that every keystroke you send is going to end up going to the correct window.
Next, why are you converting the Keys to Characters?? Just send the Keys valoue, not the converted Chr value.
ms_cdr wrote: I use it but it sent 1(but Text form of 1 - string)
I don't have the slightest clue what you're trying to say here. This doesn't make any sense at all.
|
|
|
|
|
I'M trying to SAY this:
Can I control another program withmy windows programme?
My friend is playing a game. and said me :"can you write a program for me?" I said "ok". And program's function is that: when he push start button, in another programme automatically push 7.. I tried it...
Sorry ı dont know english very well. I tried to explain my problem.
|
|
|
|
|
It MAY be possible, depending on how the game is written. SendKeys doesn't work in all cases and it's problematic to use, at best.
If the game is using DirectX, SendKeys may not work at all. If it's a Windows forms app, then SendKey has a better chance of working, but is not guaranteed.
The best method, and the most complicated, is to craft window messages simulating keystrokes and sending those messages to the window handle of the game's main window.
|
|
|
|
|
I have this VB .NET app with a generic save method. When a menu item, or a toolbar button or a next button is clicked - if there are any changes it should save with a message.
In the code - to identify which was clicked I tried
<br />
If sender Is ToolBar1.Buttons("ToolBarSave") <br />
OrElse sender Is TabMain.Controls("btnAdminDataNext") Then<br />
MessageBox.Show("successfully saved!"<br />
End If<br />
Any idea, why and how to make it work?
Thanks.
|
|
|
|
|
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
|
|
|
|