473,804 Members | 3,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create Control for VBA using .Net

I have an access 2000 database form and need an image control that will
display a PNG file. The PC's all run Windows 2000. The image control in
access 2000 does not support PNG so I tried to create a VB.Net project
control with only the image control in it. Unfortunately, I cannot load this
control into Access 2000, since it is a .NET control!

How can I create a windows control in .NET that I can use in VBA (or for
that matter, VB6).
Nov 20 '05 #1
5 2593
Surely there is a third party ActiveX control out there which can display
PNG images on Access 2000

Regards - OHM

Michael Fitzpatrick wrote:
I have an access 2000 database form and need an image control that
will display a PNG file. The PC's all run Windows 2000. The image
control in access 2000 does not support PNG so I tried to create a
VB.Net project control with only the image control in it.
Unfortunately, I cannot load this control into Access 2000, since it
is a .NET control!

How can I create a windows control in .NET that I can use in VBA (or
for that matter, VB6).


Regards - OHM# OneHandedMan{at }BTInternet{dot }com
Nov 20 '05 #2
* "Michael Fitzpatrick" <ne**@Do-Not-Spam-Codeinsight.com > scripsit:
I have an access 2000 database form and need an image control that will
display a PNG file. The PC's all run Windows 2000. The image control in
access 2000 does not support PNG so I tried to create a VB.Net project
control with only the image control in it. Unfortunately, I cannot load this
control into Access 2000, since it is a .NET control!


..NET Windows Forms controls can (in general) not be used as ActiveX
controls. You will have to implement your control in VB Classic, C++,
....

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
There are some controls that I could use, but I wanted to learn some .NET
stuff. It is easy to learn when I have a project in mind, especially when I
can do it on company time ;-).

If I use VB6 I don't think I can get support for PNG. I have thought about
using the API StretchDIBits() to convert the PNG file to a buffer in JPG
format compatible to the image control in access 2000. Any suggestions on
this?

"One Handed Man [ OHM# ]" <OneHandedMan{a t}BTInternet{do t}com> wrote in
message news:uc******** ******@TK2MSFTN GP12.phx.gbl...
Surely there is a third party ActiveX control out there which can display
PNG images on Access 2000

Regards - OHM

Michael Fitzpatrick wrote:
I have an access 2000 database form and need an image control that
will display a PNG file. The PC's all run Windows 2000. The image
control in access 2000 does not support PNG so I tried to create a
VB.Net project control with only the image control in it.
Unfortunately, I cannot load this control into Access 2000, since it
is a .NET control!

How can I create a windows control in .NET that I can use in VBA (or
for that matter, VB6).


Regards - OHM# OneHandedMan{at }BTInternet{dot }com

Nov 20 '05 #4
Cant say I have tried it I am afraid, but give it a go, what have u to lose
?

Regards - OHM

Michael Fitzpatrick wrote:
There are some controls that I could use, but I wanted to learn some
.NET stuff. It is easy to learn when I have a project in mind,
especially when I can do it on company time ;-).

If I use VB6 I don't think I can get support for PNG. I have thought
about using the API StretchDIBits() to convert the PNG file to a
buffer in JPG format compatible to the image control in access 2000.
Any suggestions on this?

"One Handed Man [ OHM# ]" <OneHandedMan{a t}BTInternet{do t}com> wrote
in message news:uc******** ******@TK2MSFTN GP12.phx.gbl...
Surely there is a third party ActiveX control out there which can
display PNG images on Access 2000

Regards - OHM

Michael Fitzpatrick wrote:
I have an access 2000 database form and need an image control that
will display a PNG file. The PC's all run Windows 2000. The image
control in access 2000 does not support PNG so I tried to create a
VB.Net project control with only the image control in it.
Unfortunately, I cannot load this control into Access 2000, since it
is a .NET control!

How can I create a windows control in .NET that I can use in VBA (or
for that matter, VB6).


Regards - OHM# OneHandedMan{at }BTInternet{dot }com


Regards - OHM# OneHandedMan{at }BTInternet{dot }com
Nov 20 '05 #5
"One Handed Man [ OHM# ]" <OneHandedMan{a t}BTInternet{do t}com> wrote in message news:<eA******* *******@tk2msft ngp13.phx.gbl>. ..
Cant say I have tried it I am afraid, but give it a go, what have u to lose
?

Regards - OHM

Michael Fitzpatrick wrote:
There are some controls that I could use, but I wanted to learn some
.NET stuff. It is easy to learn when I have a project in mind,
especially when I can do it on company time ;-).

If I use VB6 I don't think I can get support for PNG. I have thought
about using the API StretchDIBits() to convert the PNG file to a
buffer in JPG format compatible to the image control in access 2000.
Any suggestions on this?

"One Handed Man [ OHM# ]" <OneHandedMan{a t}BTInternet{do t}com> wrote
in message news:uc******** ******@TK2MSFTN GP12.phx.gbl...
Surely there is a third party ActiveX control out there which can
display PNG images on Access 2000

Regards - OHM

Michael Fitzpatrick wrote:
I have an access 2000 database form and need an image control that
will display a PNG file. The PC's all run Windows 2000. The image
control in access 2000 does not support PNG so I tried to create a
VB.Net project control with only the image control in it.
Unfortunately, I cannot load this control into Access 2000, since it
is a .NET control!

How can I create a windows control in .NET that I can use in VBA (or
for that matter, VB6).

Regards - OHM# OneHandedMan{at }BTInternet{dot }com


Regards - OHM# OneHandedMan{at }BTInternet{dot }com


try image viewer cp activex
www.viscomsoft.com/imageviewer.htm
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3569
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET) template. Briefly -------------------------------------------------------------------------------------------- I need to create dynamically some controls on the forms, and display these
6
3325
by: SamIAm | last post by:
Hi am creating a email application that needs to mail out a very large amount of emails. I have created a multithreaded c# application that using message queuing. I have created a threadpool of 5 threads and each thread checks the queue, receives the message and sends an email. How do I determine the right amount of threads to create? Thanks, S
13
6147
by: Dan V. | last post by:
How do I create a one line text file with these control codes? e.g.: 144 = 0x90 and 147 = 0x93? I am trying to create a one line text file with these characters all one one row with no spaces. 1. 144 = 0x90 2. 147 = 0x93 3. STX = (^B = 2 = 0x2) 4. NUL = (^@ = 0 = 0x0)
2
1848
by: strout | last post by:
It's a pain to create each button with 2 images: button_on.gif button_off.gif I am looking for a control that have on/off two states, preferred as BACKGROUND images and with button text on it. Any hint?
3
1507
by: msnews.microsoft.com | last post by:
Hello All, I am trying to write Web Controls and in most of the samples I came across, I am seeing the following function where a HTML string is written to create HTML Controls. /// <summary> /// Render this control to the output parameter specified.
1
4665
by: MaryamSh | last post by:
Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button ,another row will be created with the same control (I mean another dropdown and 2 button) and so on. and by pressing Remove button the selecetd row will be removed. I used viewstate to keep my value for postback, I want by changing selectedvalue of...
0
3504
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I create a user control and in Page_load event I create a dynamic dropdownlist and 2 dynamic button (Add,Remove) By pressing Add button ,another row will be created with the same control (I mean another dropdown and 2 button) and so on. and by...
3
4490
by: 100grand | last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory of that product. In addition, the GUI should display the value of the entire inventory, the additional attribute, and the restocking fee. Here is my Inventory program from 1 to 3: package...
15
5283
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9157
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2993
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.