473,385 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 2568
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{at}BTInternet{dot}com> wrote in
message news:uc**************@TK2MSFTNGP12.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{at}BTInternet{dot}com> wrote
in message news:uc**************@TK2MSFTNGP12.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{at}BTInternet{dot}com> wrote in message news:<eA**************@tk2msftngp13.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{at}BTInternet{dot}com> wrote
in message news:uc**************@TK2MSFTNGP12.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
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)...
6
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...
13
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. ...
2
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. ...
3
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. ///...
1
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...
0
by: MaryamSh | last post by:
Create Dynamic Dropdownlist Controls and related event -------------------------------------------------------------------------------- Hi, I am creating a Dynamic Search in my application. I...
3
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...
15
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.