How To Find ActiveX Properties Names Via Interface

Feb 19, 2009

Is there a method to find the property names for an activeX object via an interface? The property names I am searching for are the ones used in the OBJECT / param HTML tag. I have been searching through the documentation and found the IPropertyBag interface but when I call QueryInterface I receive the E_NOINTERFACE error.

View 4 Replies


ADVERTISEMENT

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

Put All The Network Interface Names Into An Array Without Using Iteration?

Oct 25, 2011

Code:

'array
Dim adapters As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces
'Need to output names 'adapter.Name' to another array for faster access.
'Iteration, slower

[code]....

I would like to put all the network interface names into an array without using iteration (For Each, For i).Is there a way to get the properties ie. 'Name' of an array object and be able to array.getvalue() their names?

View 2 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

Open Directories To Compare Directory / File Names And Other Properties?

Aug 16, 2010

I have several groups of files with idential names, but the files inside may or may not have identcal names, and may differ only in the size or date stamp. I want to combine them to save all unique directory names, and unique file names, and if the date/sizes are unique, then add some number on the end of the file name to make them unique as well. Only idential file sizes and names and dates will be discarded. How do you open directories to compare directory/file names and other properties?

View 8 Replies

Referencing XAML Custom Control Names And Properties Within Code Behind?

May 13, 2009

I've created a Custom Control, and I will be placing a large number of instances of that Custom Control on my xaml page. In working with that Custom Control in the VB Code Behind, how do I do the following?

How do I reference the name of the Custom Control (in my VB code) which was clicked with the MouseLeftButtonDown event? For example, if I have 10 instances of my Custom Control in xaml, each with a different x:name (say 1-10), when a particular instance is clicked, how can I see which one was clicked? I've tried a number of things including e.OriginalSource.Name (which returns the component within the control which was clicked and not the name of the instance of the control). My Custom Control consists of numerous parts and pieces (Rectangles, Lines, Text, etc). Each of these items is a part of my layer. In VB code, once I can reference a particular Control, how can I hide or change certain parts of that control (such as hiding a Line, and changing the text). Also, I need to modify more than just the control which was clicked, so I need to be able to access properties of all of the controls, not just what was clicked. For example, if I click Control instance Test1, I also need to modify Test2, Test3, and Test5 in some way.

Here is some test code I through together as part of a Silverlight project using MS Blend 2. My control is much larger, and I need 200 - 250 instances/copies of that custom control, so I really need to know which control instance/copy was clicked.

My UserControl:

<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

[Code].....

View 1 Replies

Create A Class That Has Properties That Correspond To Column Names In A Database Table?

Feb 24, 2009

I want to create a class (I think) that has properties that correspond to column names in a database table, such that they come up in Intellisense when I type the dot after the class name. Is this possible to do?

View 5 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

Hide Standard Form Properties In Program Using An Interface?

Jan 16, 2011

In VBA you can have a Userform implement a custom interface and only the properties defined in the interface will show in the VBA Intellisense for the Userform. I tried to duplicate this functionality in VB.Net (2010) and all the base Form properties still show.[code]...

View 2 Replies

Interface And Graphics :: Controls In Usercontrols Losing Properties?

Feb 5, 2010

The project I'm working on (the same one I'm always asking about) has tabs as the main navigation. I've made some User Controls to sit above the tabs in an attempt to reduce the number of overall controls that are being used (to great success). Now, however, there's one control that overlaps some controls on a tab that are obscured by my newest UControl and I want to make the background transparent.I've seen that AtmaWeapon keeps pointing people to this page detailing how to make the background transparent. That's great and it worked for me. All I did was create the

Code:Protected Overrides ReadOnly Property CreateParams() AsSystem.Windows.Forms.CreateParamsand it worked the way I wanted. Yay. I did write the rest of it too as well as part from a post I saw on the msdn forums, but they weren't needed to get the effect I wanted.However, I've got a number of PictureBoxes on this UControl that should have a BorderStyle of "Fixed3D". However, when this UControl is repainted the borderstyle doesn't reflect this (Note to self: don't .Refresh() a control inside its own .Paint() event ). This doesn't happen the FIRST time they become visible, but only when they've shown up and are made to redraw (like toggling visibility). If the border changes programmatically they look fine

View 1 Replies

Find Nodes With Using Attributename And Its Names?

Jan 31, 2012

I have an xml file with this structure[code]...

I need to pick nodes with ids between 105 and 149. I have loaded xml in xmldocument using asp.net/vb.net.

View 1 Replies

.NET Using Interface, Reflection, And DLL To Access Main Form Controls Properties?

Jun 10, 2011

I have a main form, a separate plugin interface dll and another separate dll. Now this is my problem:I'd like to access the properties of the controls of the main form for manipulation in the other dll.

Example:
MainForm
Plugins.dll
Data.dll

Main form have label control I define properties in the interface Plugins.dll from Data.dll I load Plugins to read the label control from the mainform.The question is how can I do that?

View 2 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

C# - Find Out Hidden Sheet Names In Excel?

Nov 28, 2011

How do I find out the hidden excel sheet name using ADO(OLEDB) in C#? In My Excel workbook there are a lot of sheets. Only one Excel sheet is in hidden mode. I need to find out the names of hidden sheets. My code finds both hidden and visible sheets.This is my code to find excel sheet names for all sheets. Is it possible/can any one tell me how to find out hidden excel sheet names without using Interop services in C#?

[code]...

View 2 Replies

Find Names And RGB Values Of Colors In Net Palette?

Dec 8, 2011

I've got a chart showing data as a part of a vb.net forms application. The Chart object makes a really pretty picture, but I need it to match the color scheme on the rest of the UI. How do I get the RGB values for the palette?

View 2 Replies

Find Subdirectories Containing Matching File Names

Jun 28, 2010

[code]It spews out the directories that contain the .my files [level2a & level2clevel3] and skips level2b which does not.It looks like this code for VB 6 would work:[code]I can get to the level1 directory. I am after an array of paths to subdirectories that contain matching file names.

View 9 Replies

How To Find Registry Subkey Based On Its Value Names

Jun 13, 2011

I'm working on a little project that will inpart take the registry values for the exchange server configuration on a windows mobile device and then convert them to an OMA provisioning XML file. I have the xml code nailed, but we discovered in that process that the active sync exchange partner subkey is named differently on every device but, obviously the value names stay the same.

This is what I have so far but I'm stuck on obtaining the key name and then placing it into variable.
Const branch As String = "SoftwareMicrosoftActiveSyncPartners"
Dim ActiveServer As RegistryKey = Registry.CurrentUser.OpenSubKey(branch)
Dim subkeys() As String = ActiveServer.GetSubKeyNames
For Each subkey In subkeys
'some actions
if name "Server" exists then
Dim exchkey =
Else
messagebox.show "Exchange Server not configured. Please configure a server and try again"

View 10 Replies

Declare Properties/Events Such As IsPostBack/Init On An Interface That A User Control Will Implement?

May 2, 2012

I'm having trouble porting some .NET2-era C# to .NET2-era VB.NET. Specifically, I am trying to define an interface that an ASP.NET user control will implement.(For background, I am trying to re-implement Phil Haack's Model-View-Presenter example from several years ago: http://haacked.com/archive/2006/08/09/ASP.NETSupervisingControllerModelViewPresenterFromSchematicToUnitTestsToCode.aspx)

The C# interface I'm working from defines properties and events (IsPostBack, Load) that are already implemented by the base control.However, VB.NET is forcing me to explicitly implement these properties/events in the user control (Public Property IsPostBack() As Boolean Implements IView.IsPostBack...). I'd like to just define these in the interface and not have to do anything special in the code-behind of the implementing user control.I'm assuming that I can do this in VB.NET, I just don't know how. I've spent all sorts of time googling/bing-ing, and haven't come up with the answer.

View 1 Replies

C# After Finding Installed Software Names And Application Path How To Find Exe Name

Feb 26, 2012

This code gets all software that has an Uninstall Entry and it app path. However, given I have the app path, I do not know the name of the main .exe of the software. What ways are there to find the main .exe of a found application?

'Declare the string to hold the list:
Dim Software As String = Nothing
'The registry key:

[code].....

View 1 Replies

.net - Find All The Properties For An Object?

Aug 26, 2011

I am constantly receiving back objects and it would be very useful be able to print out all of their properties. Is there a way in VB to get all the properties of an object and print them out (to console)?

View 3 Replies

Find Properties Of An Existing Control

Sep 15, 2011

I'm wanting to dynamically create some controls relative to controls already placed on the forum at design stage, how do I find the locations of the controls that are already placed?For example, I have a label called lblDateTime, its location is (13, 167) and its size is (65, 13).In my code, I want to place a new label below this label.I've tried to set the location and size properties of the new label using the location and size properties of lblDateTime.Size works, no problem, but the location of lblDateTime always returns as 0,0.[code]I want to set lblMessage DateTime. Location to (13, 180), but I'm actually setting it to (0, 13)What confuses me most is that Me.lblDateTime.Size is returning the correct values, so it's not like my code isn't finding the control.

View 5 Replies

Get Rid Of Unused System Properties Like Unused Button Names In VB 2005?

May 30, 2009

I have created some check boxes and buttons, and changed the names, but it seems like the system.properties saved both names now I would like to rename the button back to the original name but the name is being stored for some reason, and I cant access the original name, how do I clean this up?

View 6 Replies

Can't Find Any Properties Of The SqlConnectionStringBuilder That Indicate What Instance And Protocols It Should Use

Feb 2, 2009

i'm currently trying to test a program at home that i've written for an assignment at university. At the university they have a dedicated SQL server that i can connect to fine enough but to test and debug at home i have installed MySQL 5.1.

I now have trouble connectioning to MySQL the error message i get points towards that my program is acutally looking for an instace of MS SQL server and i don't know where to change this.

I have downloaded and installed "MySQL ODBC Driver-MyODBC 3.51" which some people have suggested corrects the problem, unfortunatly this doesn't work.

The current code i have is:

Dim strConnBuild As New SqlConnectionStringBuilder
With strConnBuild
.DataSource = "localhost"
.InitialCatalog = "northwind"

[code]....

I can't find any properties of the SqlConnectionStringBuilder that indicate what instance and protocalls it should use.

View 1 Replies

Using Reflection To Find A Properties Definition Class?

May 18, 2008

I am currently using reflection to retrieve all properties of a class. I return a collection of PropertyInfo objects and all is working fine.

My problem is, I want to check if a property has been defined in a base class implementation and is therefore inherited in the current class.

View 2 Replies

How To Implement Find On IList And Update Object Properties

Dec 7, 2010

I am declaring an IList:
Dim OrigVendors as IList
OrigVendors = new List( of IVendors)
I populate the OrigVendors variable and what I want to do is find all the objects that have the ID I am looking for. Then I need to update a property on that object for only the ones found. Is this do able with an IList or do I need to use some other type of collection? I am using VB.net.

View 1 Replies

IDE :: Cannot Find The Optimization Check Box Or Properties For Project 2010?

Mar 7, 2011

i am trying to add a text file in Debug folder. But when i go to project tab to add a new item, there is no option to add a new item? What part of the setting needs to be changed? Using Visual basicExpress 2010.

View 1 Replies

Game Programming :: Find The Properties Of A Picturebox That Was Created At RunTime?

Jun 19, 2009

I am working on a TCG card game and I am having some trouble of thinking how to find the Properties of a Picturebox that was created at RunTime through a Click Event.

Here is the Code I have This is the Sub that I have to create the Pictureboxes...

Code:
Private Sub CreatePictureBox(ByVal name As String, ByVal x As Integer, ByVal y As Integer, ByVal height As Integer, ByVal width As Integer, ByVal picture As String)
Dim PB As New PictureBox

[Code]......

View 2 Replies

Interface And Graphics :: Find A Script To Create A Slider Button?

Feb 4, 2011

I'm trying to find a script to create a slider button.

View 2 Replies

Interface And Graphics :: Find Good Information On Working With Bitmaps

Aug 28, 2010

It seems difficult to find good information on working with bitmaps. Specifically I am looking for .NET info on getting tile graphics to the screen. What I know so far is this. I need a picturebox for the display. I need a second picture box for a back buffer and then I need a third picturebox for the tiles that I would copy to the back buffer which then gets flipped to the screen.I need this to be done with .net controls and classes or functions and etc. If anyone has good information on this, please let me know. I am using visual basic 2008 express edition.

View 2 Replies







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