Interface And Graphics :: MouseWheel For Interop'ed ActiveX Control?

Apr 18, 2011

Is it possible to get the MouseWheel event from an Interoped ActiveX Control?

I have a DXF Viewer (with measure) control I wrote in VB6 that is quite frankly... Huge. It would take an inordinate amount of time to rewrite the whole thing and supporting tools in VB.NET. The MouseWheel event is used to Zoom in and Out. The control has a MouseWheel_Input() method to accept MouseWheel data from the host.

I added all the VB6 Mouse events, the Enabled Property, and The ActiveControl Property in VB6. Recompiled and registered the control on my VB.NET development machine. Added the control to my new VB.NET project and verified it has a focus method.

View 1 Replies


ADVERTISEMENT

[VB2010] - Activex Control Warnings "reference Was Created To Embedded Interop Assembly 'stdole'"

Nov 27, 2011

i compiled 1 control in vb6. now i'm trying use it in vb2010, but i recive 2 warnings:
"Warning1A reference was created to embedded interop assembly 'stdole' because of an indirect reference to that assembly from assembly 'AxInterop.Sprite'. Consider changing the 'Embed Interop Types' property on either assembly.WindowsApplication1" and "Warning2 reference was created to embedded interop assembly 'stdole' because of an indirect reference to that assembly from assembly 'Interop.Sprite'. Consider changing the 'Embed Interop Types' property on either assembly.WindowsApplication1 "why these warnings? (i have sure that in vb6 don't give me any errors)

View 2 Replies

Interface And Graphics :: [VB2010] - How To Get Hdc From A Control

Nov 22, 2011

i wanted use some api graphic functions. but how can i use the hdc argumenter, if the picturebox don't have it?

View 11 Replies

Interface And Graphics :: Control Resize Begin And End

Dec 27, 2009

How to implement resize begin and end on controls the way a Form does. I had the idea that this can be accomplished using windows messages API (WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE) but most of the samples I've seen so far are for windows. The reason for this is because I have a control that needs to re-render an image. The controll is inside a split container. The split container has only the Resize event. Is there any way this can be done?

View 4 Replies

Interface And Graphics :: Custom ListBox Control

Dec 8, 2009

I'm trying to build a custom ListBox control as inspired by the 'Audi Infotainment System' on high-end Audi vehicles. The only difference is i would like to have a 'boundary' where when scrolling up/down moves the actual list up or down. Basically, i would like my list to act like a normal ListBox except i would like to show say one or two items above and below normally only visible items.

View 3 Replies

Interface And Graphics :: How To Dock A Control Inside Another

Jan 7, 2010

I downloaded the custom made OvalShape control for Visual Studio 2005, and I really like it. One problem I have, is that I would like to have a label docked inside the Oval, as if it was a Panel or a GroupBox or pretty much any other control. With the other controls it does this automatically when I move the control inside them, but when I move the label inside the Oval, it won't "stick" to it. The OvalShape will move around and change size quite a lot in my app, so it would be nice ot to have to add a snippet of code after every movement of the OvalShape.

View 2 Replies

Interface And Graphics :: Mirror A 3rd Party Control

Nov 6, 2008

i have 3rd party custom tab control , that does not have RTL support also no source code so i sub classed it and mirrored it like below

[Code]...

View 1 Replies

Interface And Graphics :: Tab Control Arrow Keys?

Nov 12, 2008

If a tab is highlighted and you hit the left/right arrow key, it goes to the previous/next tab. I want to remove this functionality. I only want the user to be able to change tabs with the mouse click.

View 5 Replies

Interface And Graphics :: Add Control Panel To Side Of Form

Jul 12, 2011

I've got an app that I want to have an MDI with. It functions fine, but there needs to be a control panel off to the side of it to drive the child documents' creation. I have two problems with this.

First, if I add the control panel to the side of the form, it just overlays the MDI portion of the form and the children will spawn behind it. I can more or less manage the positions of these children, but the problem comes when I want to minimize the children, they minimize behind the control panel and I don't know how to move them. So I need to shrink the area they can move around in. I've read in places that you can use the splitter object, but that never seems to cooperate with me and only wants to move to the extreme left or right of the parent form. How can I reduce the area the children get to interact with? I've tried creating a MDI Panel, but VS has a fit with that.

Second, I've got a datagridview holding the data that will spawn the child forms. This is working well, but even though I've set the rows to be not resizeable, I can still make them grow or shrink during run-time (not programmatically). How do I stop this?

View 2 Replies

Interface And Graphics :: Any Way To Pipe Output Of Bat File To Control

Mar 26, 2010

I have a visual basic .NET application that starts up a command prompt window using the following method:[code]The bat file then goes on to start up an application, which has a lot of output to the command prompt.I was wondering if there was any way to pipe the output of the bat file to a visual basic control. I am trying not to modify the bat file, if I can help it.

View 9 Replies

Interface And Graphics :: DXF Viewer Control With Measured Output

Dec 16, 2011

I am re-writing my old VB6 DXF viewer control in VB.NET Winforms. Attached is a picture of my testbed app. As we only need it to check parts that have been created to generate gcode for our laser it is limited to Points, Lines, Arcs, And Circles. It has Point, EndPoint, Centers, and Intersections snaps for all entities and combinations of entities. Measured output is displayed as Actual Point to Point plus Horizontal and vertical delta. Zoom Extents, Zoom Window, Pan and Mouse Wheel Zoom are fully functional. The last took a while to develop as I wanted the Zoom to be centered about the cursor position just as it is in Acad.

View 19 Replies

Interface And Graphics :: Express Beta 2 Calendar Control

Apr 13, 2010

I'm wondering if anyone has been getting a 'System Exception Violation: Attempting to write to protected memory' exception.I have 3 calendar controls on a form and when selecting dates on the 3rd one, I am getting this error when I select a 2nd date.

View 6 Replies

Interface And Graphics :: How To Place Control Buttons Over Photo

Feb 25, 2010

I'm new to VB, now working with VB 2008 Express Edition. Was once very proficient with "procedural" languages of the 70's (eg. Fortran, COBOL, etc), but totally new to OOP and the "Visual" languages. Despite being a quick study, eloping a user interface to a USB-connected infrared remote control device. The UI's graphical element (a "virtual remote") will be a PHOTO of the IR remote control device supplied by my target-equipment's mfr, OVERLAYED with functional software control buttons in their respective positions. "Pressing" a button on the virtual remote will cause the USB device to emit the desired IR code sequence.

View 2 Replies

Interface And Graphics :: Invalid - Inherited Picturebox Control

Dec 21, 2011

I recently wrote an inherited picturebox control. From within the control inside methodI I call Me.Invalidate to fire the control onpaint event. But onPaint does not fire.

View 2 Replies

Interface And Graphics :: Translucent Pie Chart Using MS Charting Control

Feb 22, 2010

I'm using the MS Charting control, and can't find the way to create the translucent effect shown in their example piccy[url]...

Notice how the pie chart is translucent. How is this done with the chart control on a winform?

View 2 Replies

Interface And Graphics :: Transparent Background In User Control?

Dec 3, 2008

I am attempting to write a simple 11ball style game. It requires images of poolballs overlapping each other. Since the balls will need some internal intelligence I was hoping to create them as usercontrols.I am having trouble gettiing the control's background to be transparent.Setting the background color to (Web) transparent only makes the background clone the form background color.

View 1 Replies

Interface And Graphics :: Use A Treeview Control To Separate Them Into Sophomore?

Aug 12, 2010

I have a list of about 150 students that I would like to organize. I need the user to be able to select individual students, and I was hoping to use a treeview control to separate them into Sophomore, Junior, Senior(No freshmen) so that way it is easier to locate a single member.

My problem with this plan is that checkboxes are beside both the root and the child nodes and I only want the user to be able to select the individual students. So my question is is there a way to only put checkboxes beside the students or is there another control that can achieve the same effect?

View 7 Replies

Interface And Graphics :: VB ListBox Control Display Names?

Dec 20, 2010

I don't usually use VB but now I must for an assignment. I would like to know if it's possible to change the display name for an object on a listbox. For instance, if I add to it a user defined class, there's a way to provide it's display name, instead of converting it to string and then add it.

This is what I have

Dim format As String = FormatOutput(object)
Lista.Items.Add(format)

I would like to have the same output, but instead add the object.

Note: if such is not possible, then how can I associate the list box selection to the actual object? Doing it by index is painfull, because I'm using linked lists (ie., instead of arrays).

Note 2: python has a __str__ method which is called by default when the object is cast to string. Is there anything like it in VB?

View 6 Replies

Interface And Graphics - Add Late Bind Control To Form Dynamically

Oct 14, 2010

Using VB 2008. We have an app with a third party grid on it works well enough. This is a small utility within a bigger suite, and adding/updating it involves a simple EXE copy. The issue I am trying to address is that not all customers will have the 3rd party controls on their systems, and we want to avoid deploying them if we can.

Can I build the app so that if the controls are present, the app uses them. But if they are not present, I use a simpler control? I picture using a 'launcher' form that tries to load Form2 with 3rd party. if it errors, then just load Form3 with common controls. But can I even get to that point? With missing controls, will the app even load? I understand Late Binding for objects, but this is a control right on the form. Can I late bind a control and add it to form dynamically perhaps?

View 1 Replies

Interface And Graphics :: Cannot Change Color Properties For MonthCalendar Control

Sep 12, 2011

[code]For some reason I cannot change the color properties for the MonthCalendar control.[code]No matter what I change it to, it stays to its default color of white and black. Actually none of the color options work on any of the sections of the control.I am trying to hide the white border around the control and but a blue bar under the name of the month (top section).I have tried deleting the control and creating it anew on the form but no luck.It was working a couple of weeks ago.

View 1 Replies

Interface And Graphics :: Inherited From TextBox And Auto-validating Control?

Nov 16, 2011

I frequently use TextBoxes that expect date values. I do a tedious job every time to handle the Validating event. The Validation event ensures that the value is a valid date value according to the current thread's Calendar, and if so, formats the date to "dd-MM-yyyy".

I want a TextBox (e.g. DateTextBox) that automatically runs validation and formats its Text property. All I have to do is dropping it to the form.

I know I should use inheritance; but I do not know where to put the auto-validation code; and I do not know how to save the inherited class as a control in the ToolBox.

View 4 Replies

Interface And Graphics :: User Contols Contain Webbrowsers That Autorefresh Every 15 Sec (not Under My Control)

Aug 29, 2011

I am developing an app that has a treeview on the left in panel1 of a split container. When you click in a node it loads a user control into a tabcontrol that is in panel2. Some of the user contols contain webbrowsers that autorefresh every 15 sec (not under my control). I can successfully remove a tab by a contextmenu but I can still hear the clicking sound of the webbrowsers refreshing. Not sure what to do to completely remove the usercontrol. Treeview control code for one node: there rest are basically the same

Code:
Dim tabcount As Integer
tabcount = TabControlMain.TabCount

[CODE]...

Code to remove a tab and all tabs:

Code:
Private Sub RemoveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RemoveToolStripMenuItem.Click
TabControlMain.Controls.Remove(TabControlMain.SelectedTab)

[CODE]...

I also originally had this setup to work without the tabcontrol and just load the usercontrol into panel2 of the split container. Each time a new node was selected from the treeview I would have SplitContainer1.Panel2.Controls.Clear() to remove the current usercontrol. I would still hear the clicking of the old usercontrol.

View 3 Replies

Interface And Graphics :: Creating Outlook Style Navigation User Control?

Feb 3, 2010

I believe that this is in the correct forum due to it being about creating an interface item, but if I am wrong then let me know and I'll try and bring this thread to the attention of the mods to be moved to a more appropriate forum. I am currently trying to create a generic navigation control with a similar style to the outlook navigation bar. I have figured out how I would be able to dynamically create the bottom part where you select the menu option, but I'm struggling to figure out how I would be able to create the top part, which can contain any user control that the developer would want.

So basically what I'm trying to figure out is, is there a way to allow for a developer to add controls to a specific area of your user control?If there is a way of achieving that then if anyone knows how to do this;In ASP.Net you have the login controls and with one of them, you are able to have different views depending on whether the user who is viewing the web page is logged in or not. Is there a way of achieving this in VB.Net for a user control that could be set up so that I could have the developer able to switch the view in the designer to show them the view for when a specific navigation option has been selected.

The one thing that I have thought of that could possibly cause a problem is having the capability of knowing when one of the user controls has been clicked, while I haven't figured this out exactly, I believe I should be able to achieve this by having an event for the navigation user control that provides the developer a reference to the control.

While I would hope that I have explained what I'm thinking well, its before my first coffee of the morning so I might have missed out some detail which would help someone to help me if I have then please let me know and I'll provide any details required.Also if what I'm envisioning is Pie in the sky, then let me know and I'll just have to make a base which I would just have to make a more bespoke system.

View 1 Replies

Failed To Import ActiveX Control (trying To Load A VC++ ActiveX Component Into A VB Project)?

Apr 8, 2009

I am trying to load an actixex component in a VB project which was made in Visual C++.n VBA it works fine.In VB6, when I try to load the component on the toolbox I get an "Error 35005"In VB2008 the component can be added to the toolbox, but when I try to place it on the form, the following error occurs: "Failed to import ActiveX control. Please ensure it is properly registered."

View 1 Replies

Non-modal Forms Cannot Be Displayed In This Host Application From An ActiveX DLL, ActiveX Control, Or Property Page?

Oct 20, 2010

How to Resolve following Error in .netNon-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page.

View 1 Replies

C# - Activate A (COM Interop Based) ActiveX Contol Using Registration Free Com?

May 17, 2010

I have a (COM Interop based) ActiveX contol that I am trying to use with registration free com. When the control loads the control is inactive (does not responds to events, control not fully rendered etc).After much search I discovered that COM objects using reg-free-com use the miscStatus attribute to set the initial state to get correctly activated. I know how to use it with a comClass which corresponds to a native COM Object.

[Code]...

2) The COM client I am using is Visual FoxPro. If the (1) is not possible what can I do in VFP to activate the inactive ActiveX control. (I dont mind VB or C# input too if I can use it to find the equivalent foxpro)Currently I tried the following

this.AddObject('OleControl1', 'oleControl', 'SomeCompany.SomeOleControl')
this.OleControl1.AutoActivate = 3
this.OleControl1.Visible = .T.
this.OleControl1.SetFocus

But I the OleControl1 gets focus before passing events like mouse click to its subelements. So I have to click twice on it to do the necessary action, any time it does not have focus. I would like the control to act as if the "nouiactivate" of the miscStatus value is set.

3) Is there any other way of accomplishing what I want to do?

Hans Passant, here is the listing of current Assembly.dll.manifest. The formatting in the comment made it unreadable.

[Code]...

View 1 Replies

VB2008 Express 'Cannot Create Activex Component' Using Microsoft.Office.Interop.Access.Application

Apr 30, 2010

I am working on a VB2008 Express application that makes used of the office interop access. The exact code is:

[Code]...

View 2 Replies

Interface And Graphics :: E.Graphics.Drawstring Length Overflow Page?

Nov 19, 2010

Im working on a project that needs to print a report of one client.Everything went smooth untill i came across my multiline input text data.When i display it in the PrintPagePreview the text go's outside my page. Even when im printing it only the halve of my text is displayed. I googled and looked everywhere but i can't get a clear fix for it.

[Code]...

View 3 Replies

Interface And Graphics :: Passing Bitmaps & Graphics To Subroutines As Arguments

Jan 22, 2011

I used to program with Visual Basic 6, so I have alot of old programs that I'm updating, plus I'm learning the new VB2008 methods. I'm writing a program that replaces the old "BitBlit" function which is no longer supported by Visual Basic 2008. It involves three picture boxes, one holds the sprite bitmap, a second holds the mask (silhouette) of the sprite bitmap, and a third has a background image.

[Code]...

View 3 Replies

Interface And Graphics :: System.Drawing.Graphics.DrawString On Other Window?

Aug 14, 2009

drawing text on a window which is not the current form's window.I remember doing this in Win32 api with getwindowdc(handle) to obtain a DC for the Window, then textout() on the DC.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved