|
Hello,
I have made one application in VB.Net
In that i have used some ocx controls and Dll which will work perfect in VB
but when i am going to use the properties from that dll that is giving me error that the run time error 406 non-modal forms can not be displayed in this host application from an activex dll.
My code is like that
Private Sub btnAnalysis_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAnalysis.Click
AxEcgTrend1.PerformAnalysis(AxEcgTrend1.SelectedLead)
AxEcgTrend1.AnalyzeAllLeads(True)
End Sub
This will give me error.
Its urgent. please anyone can help for that.
i cant make change in dll.
So in my application what should i write for that?
Thanks in adv.
|
|
|
|
|
Member 4378546 wrote: Its urgent.
No, its not, otherwise you would have contacted the vendor. I suspect you need a .net version of the dll, but its only a guess.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Member 4378546 wrote: So in my application what should i write for that?
There's nothing you can do to fix this in your own code. It's a problem with the .DLL you're using. You'll have to get with the manufacturer of that library to get an updated version that works with .NET.
|
|
|
|
|
Hi,
I am doing an application in VB.Net 2005 and in that I want to read the measurements of an autocad drawing. Is there any way to do it. If possible please help.
Thanks
Report post as abusive
|
|
|
|
|
When you save an autocad drawing, the file(s) created must be having the dimensions. That is the reason why one can open a saved drawing correctly. It would be good to get a few Autocad drawing files and analyze their structure. Then all you will need to do is read the file at the positions where dimensions are saved.
|
|
|
|
|
Google for "Autocad Automation" and you'll find a bunch of examples on how to talk to Autocad from your code. As for exactly how to get the dimensions of various objects in a drawing, that would be a question for an AutoDesk forum, not us.
|
|
|
|
|
Hi everyone,
I have a Windows Forms application (Visual Studio 2008, .Net framework 2.0) that displays DataBase informations. I added a VScrollBar in my Form in order to allow the user to navigate through datarows easily and quickly. It works fine.
Now I want to prompt the user for confirmation with a MessageBox before saving his changes into the database if he modifies the data and click on the VScrollBar, thus before clicking on the 'save' button.
I added the test into the Scroll event.
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
MessageBox.Show("dummy");
}
Result: as long as the mouse pointer stays upon the ScrollBar, its keeps creating a new MessageBox. After 2 seconds, I just have some 10 MessageBoxes. The Scroll event keeps on be triggered...
Then I tried
private bool ok = true;
private void vScrollBar1_Scroll(object sender, ScrollEventArgs e)
{
if (ok)
{
ok = false;
MessageBox.Show("dummy");
ok = true;
}
}
Not that bad as I have just 1 MessageBox, but the thumb position keeps moving as long as I keep my mouse over the ScrollBar and when I close my MessageBox the thumb goes back to the position it should have stopped...
The issue is that Windows Messages keeps on being sent to the ScrollBar even if he has "lost the focus"; the GotFocus is never fired, so it actually can't lose the focus, but there is a MouseCaptureChanged event to mean that.
Thus, I tried to inherit the component, overriding WndProc function
class MyVScroll : VScrollBar
{
private const int WM_VSCROLL = 0x2115;
protected override void WndProc(ref Message m)
{
if ((m.Msg != WM_VSCROLL) || this.Capture)
{
base.WndProc(ref m);
}
}
}
It works!
Really? When I click on a ScrollBar button and move my mouse pointer from the ScrollBar (far enough...), the button I clicked on just desapears from the ScrollBar! And if I point my mouse back to it (or at least where it was), hold my mouse down and move the mouse, it just... resizes the whole Form the component is in it!
Any idea?
Best Regards.
B. BERTRAND
|
|
|
|
|
Very strange! Your issue sounds like my problems. (If it's a problem, then no one knows the answer!)
Great debug work by the way!
This may sound like a shot in the dark, but try trapping the ValueChanged event instead of the Scroll event.
I have had some strange issues resolved by using it instead. Again, maybe a shot in the dark but who knows...
There cannot be a crisis today; my schedule is already full.
|
|
|
|
|
Hi Richard,
Thanks for your concern.
Unfortunately, using Scroll or ValueChanged event seems to be the same, at last for my issue.
I think it's the same phenomonon with a Button: when you click (Button paints 'down') and keep down the mouse button then move away from the Button you see it acts like you had clicked up (Button paints 'up'). If you point back to the button, having always kept the mouse button down, the button paints again 'down'.
For the moment, I had to withdraw my confirmation message for that case: if the user clicks on the 'Next' button I show him a MessageBox to confirm, if he uses directly the ScrollBar, the data is saved without confirmation... Not that clean, isn't it?
Any other idea ?
Best regards,
|
|
|
|
|
|
|
|
Every time I see this I think, why couldn't they just launch another worker thread to run the code side-by-side with the first worker thread they should have started when they started the service?
|
|
|
|
|
Stop reposting your stupid question. Actually just get the frack of this site.
|
|
|
|
|
Hi Mike,
I suggest whenever you reply using a catchy subject line, you start by copying the original post. Here again the message got removed, so all the fun is lost forever.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I agree with your point, however in this particular case it's not lost. You can pull up the ice holes profile and access his latest message history.
|
|
|
|
|
I am writing a facial auth program, when auth OK, it can logon to OS automatically.
But I met a problem, if I set "Using FUS.." in account control setting, I can not find the logon window, so I can not set username and password.
How can I do ?
And in this case, I use "InitiateInteractiveLogon" and "InitiateInteractiveLogonWithTimeout" to logon in biologon.dll, but they all failed.
Thx~
no fate
|
|
|
|
|
You cannot do what you want. First, the logon window doesn't show up on the normal users desktop. It shows up on a seperate desktop.
Yout cannot poke a username and password into the boxes either. If you came up with a valid solution, under Windows XP, you would have to replace or extend the GINA with a specialized version that can do the login without a username and password. Kind of like using a SmartCard or Fingerprint reader to login.
|
|
|
|
|
thanks,
I see.
no fate
modified on Monday, March 9, 2009 9:45 PM
|
|
|
|
|
i want to take the datagridcombobox selected item valuemember
how should i do that
|
|
|
|
|
first you must find your combobox from datagrid by YourDataGrid.FindControl
second you must get YourComboBox.SelectedValue from finded combobox control
|
|
|
|
|
Hi all,
I had a query regarding the zorder relationships of help windows and chm files.
If we use the Help.ShowHelp or Help.ShowHelpIndex methods to load help files in a program,
the first paramater can specify the owner control. If this is set to null , then
the last active window will automatically be set as the owner.
Is there any way to bypass this mechanism and make the help window an unowned top-level window ?
Thanks in advance
|
|
|
|
|
Thanks, But No Idea About this
Sujit Sahu (Cruel Handsome)
|
|
|
|
|
Hi All ,
I'm trying to develop a application in vb.net,
to send any file from my PC to any bluetooth enabled mobile,
in coverage area of bluetooth dongle(connect with my usb port).
(More then 1 mobile via loop in 1 go)
Is there any class or library in .net is available.
If you can give me some sample code or link of any article...that will be very helpful for me.
Thnx.........
Vijay Jain
|
|
|
|
|
...
Time is the best teacher; unfortunately it kills all of its students.
जय हिंद
|
|
|
|