473,667 Members | 2,670 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a simple UserControl in Outlook Addin

Hi All:
I am new to C#. Have created a simple outlook add-in, which adds a
command bar in Outlook. On click of the button, I would like to load
the a simple dialog with a Text Box and a Button. I would like to
populate the textbox with a value, before displaying it.
To accomplish this, I tried creating a custom control (Test Control)
in design time with a text box and button, and loaded the custom
control in a form in design time. I am able to create and display the
form at runtime, but unable to set the property of textbox that is
present in the custom control.
Could you please help?
Regards.

Sep 28 '08 #1
1 2965
Without Knowing very much that you are doing

Did you check the textbox Modifier Property
public, private, protected etc

since you have it on a user Control, you either
have to create property to access the textbox from the outside world or make
the textbox itself public

DaveL

<de********@gma il.comwrote in message
news:72******** *************** ***********@v39 g2000pro.google groups.com...
Hi All:
I am new to C#. Have created a simple outlook add-in, which adds a
command bar in Outlook. On click of the button, I would like to load
the a simple dialog with a Text Box and a Button. I would like to
populate the textbox with a value, before displaying it.
To accomplish this, I tried creating a custom control (Test Control)
in design time with a text box and button, and loaded the custom
control in a form in design time. I am able to create and display the
form at runtime, but unable to set the property of textbox that is
present in the custom control.
Could you please help?
Regards.

Sep 30 '08 #2

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

Similar topics

0
327
by: Samuel Bernard | last post by:
Hi, I created an addin for Outlook 2003. It creates a menu in Outlook in order to allow the user to access severals options of our Web site. I use MsiInstaller of MS to install this addin which has some assemblies, all installed into the folder of my application (C:\Programs\CompanyName\ProductName). On two XP Pro SP2 stations I didn't have problems: the installation ran well and the addin also. But on a third station (part of the...
0
1936
by: Adam Clauss | last post by:
I have a C++ COM Addin I wrote for Outlook (2002) using VS.Net 2002. Having completed it, I am now looking to create a setup project and install it on another machine. I created a setup project and added it to my solution (selecting the "Primary Output" as the files to include from my project). However, when I attempt to build the setup project (assuming a clean output directory), I get "Unrecoverable build error" - and NO other...
4
5993
by: Nathan Carroll | last post by:
Why am I able to use this in Outlook and not do the same from .Net. My problems centers around the Items in the xp version of below i used the interop references. Does something similar exist for 2000? 'this works fine in ol 2000 Dim item As Object Dim items As Outlook.items Dim itemcount As Integer Dim subfolder As MAPIFolder Dim mi As MailItem
12
3153
by: Mats Lycken | last post by:
Hi, I'm creating a CMS that I would like to be plug-in based with different plugins handling different kinds of content. What I really want is to be able to load/unload plugins on the fly without restarting the application. What I did was to create an AppDomain that loaded the plugins and everything was great, until I tried to pass something else that strings between the domains...
7
2604
by: Joseph Geretz | last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now, just a couple of days. Suddenly though, running my project in Debug launches Outlook as specified, but no breakpoints are hit in my source code. The Addin isn't being loaded. If I create a new Addin program from scratch, e.g. AddIn1, it loads up fine from Outlook. I archived my existing code, cleared out the registry and recreated a brand new Addin project with...
6
8764
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook launches. I've wired up my event handler to each Menu item and toolbar button. (I use the same Event handler and I use the Tag property which is different for every Menu Item and Toolbar buton to determine which menu or button is being clicked and to...
6
1683
by: Pieter | last post by:
Hi, I developed an Outlook Add In (VB.NET 2005, for Outlook 2003) that sometimes suddenly stops loading. I've put everywhere in the code Exception Handlers, but no Exception is catched. it seems that other add ins aren't loaded afterwarths (nod32). Does anybody know a way to find out why an outlook add could do this? and find out after the problem what caused the problem?
3
2053
by: ITrishGuru | last post by:
Hi all, For my IT final year project I have to access mail items in outlook 2003 and parse them. I have read and researched on the net and library for about a week now. I have to do the project in c# using visualc# 2005 Express Edition. I know this may limit me to manully coding a little more but I dont mind that. So far I think I have to create a COM adddin and communicate via
5
2206
by: John | last post by:
Hi I have an Outlook add-in solution which includes a setup project. If I install the Outlook add-in by right clicking on the setup project and sleeting Install then the add-in gets installed fine in Outlook. However if I use the setup generated in the setup project Release folder then even though setup runs and finishes, the Outlook Add-in does not appear in Outlook. What is the problem and how can I fix it? Thanks
0
8458
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
8366
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8790
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
8565
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
7391
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
6206
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
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1779
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.