I have outlook 2003, Now in my application til now i tried loading bulk of emails from folder to my application.But now i need to select a single email and load to application.How to achieve this?
I have set the "Make single instance application" check box.And when my application version is 1.0.0.0 for example, it is OK and won't load multiple instances.But when I create a new version, for example 1.0.0.1, then I can run 2 instances of my application, when the 1st instance is 1.0.0.0 and the second instance is 1.0.0.1.What should I do to prevent this?
I am buidling an application that users can use to submit text data and attachments to email recipients. Certain fields, quite a few in fact from the textboxes in the app will be in the email body, and some in the subject line.This is how I am doing it right now, but I figured there has to be a better way. In VB it is one single line of code, not many like it is here. Ideally I would like to be able to better control the positioning in the message body.
load images into a picture box. Firstly, is it possible to use a set of randomly generated numbers to display a random picture from a selection into one picture box?
i.e. Dim RandNumber As Integer Dim RandClass As New Random RandNumber = RandClass.next(1, 10)
I have a sign up sheet that I am working on for instance;
username password street address city state zip
I've been trying to save the textboxes individually but when I go to load the information everthing is pushed all into one textbox.....I'm also using the SaveFileDialog and OpenFil
I'm writing vb.net code with MS Visual Studio 2005.When running my application I get "foo.exe is already running on this machine".(Even though I'm running faa.exe instead
i am creating an application that i want to load a pre-designed crystal report from database records and print it in pdf format and send it as e-mail attachment. I know how to send it as an attachment but i don't know how to print it in pdf automatically for sending.
I have developed some software with no database. I want to create an .exe of my .Net project so I can give only the .exe file to users to use the software.
Unfortunately I don't know how to create an .exe of my project in .Net.
in vb 2008 express this option is available under application properties. does anyone know what is its function? does it make it so that it's impossible to open two instances at the same time?
i am using "Animated Window Effects with "Toast" popup demo" code from the code bank created for jmcilhinney. I put a NotifyIcon control on it and check Make single instance application on the project properties windows. the problem is that every time that i launch the app it creates one instance on the system tray of the app. i can not figure out how to over come this attached is a copy of my project.
Most of the apps I write have a base / home form and a few other forms (three of four typically) which pop up in response to controls clicked by the user. I'd like to be able to set some properties to be the same for all the forms in an app; particularly properties like BackColor and FormBorderStyle. Yes, I can manually set the individual properties for each form in the VB IDE, but I'd prefer to be able to have one line of code in the base / home form for each property along with one line for each dependent form which says something to the effect of "use the same property value as the base / home form has". Overall, my objective would be to have one single line of code in the app which, when changed, would apply the changed property to all the forms. For example, a single line which I can change to take the BackColor from Apple to Orange for all the forms ...
I have a VB .NET application set as single instance. When I try to launch the application the second time its window is restored to its normal windowed state instead of being maximized (like it was before attempting the second launch). How can I make the application window to preserve its last state?
I am trying making a appliction that produce a invoice, its just a type of business application, in that i want to and form that contain a email sector divided on two tabs one to send email, and second to receive email (like to check my inbox
I'm trying to build a single-instance application, but not in the traditional sence. Instead of a simple silent prevention of launching a second application, I want it to send a message to said application so it launches a second mainform in my original process.
(I want some read-only cache (language, style,...) shared, and a few sources like local settings shared, but other then that all resources reside in the mainforms and act as seperate applications.)
(I'm not looking for specific code, more for hints/tips and/or general directions, more specificaly on what parameters do you check process equality, and what method do you use to pass the message? Windows Messages? Sockets? ...)
I am a fairly rookie programmer who is trying to learn the basics of n-layered architecture (DAL, BLL, UI). The application I am programming is a single tier, 3-layer application written in VB.NET (.Net 3.5). Layers as follows:
DAL BLL UI COMMON - contains DTO's right now.
I am having trouble determining what to pass between my BLL and UI. My instinct tells me that I should only pass data to the UI, and not the full business object from the BLL. Consider two scenarios:
1) Pass the BO directly from BLL to UI. This exposes BO methods and allows the UI direct access to the BO, which seems bad.
2) Pass only the pertinent data from the BO to the UI. For instance, a customer has a Name and Address. This data is really what we want to show/edit in the UI, so we would only return that data to the UI instead of the full BO. The UI would then call to the BLL to update a specific BO.
I am inclined to use #2, but I don't know the best way to implement it. The way I have it programmed now, if I only return data from the BLL, all references to my BO's will be lost and the GC will claim them. Based on this, I have some questions:
1) Should I keep business objects alive between calls to the BLL? The alternative is to re-create them every time I pass data through the BLL, which seems wrong.
2) What is the best way to keep a BO alive in a single tier architecture (how to hold a reference if we dont pass it to the UI?)
3) How do n-tier applications do this? Do they keep the BO's alive in the BLL and wait for an update from the UI? Doesn't this require a lot of "book keeping" in the BLL to make sure BO's are released when they are no longer needed?
I've a winforms application that is using SQLite database. There is no encryption on the database (data has to be shared with other user). It is a stand alone application with a stand alone local database.
The difficulty I'm encountering is when people go to bring all the data together.The databases are attached, data imported, but records are differentiated by a database GUID.At any rate I am desiring to have a database selection screen that is protected by a password to prevent users mistakenly switching databases (and some level of protection against malicious use).
Thinking it's probably not a particularly good idea to store the password in an unecrypted database.Security is not a large issue as this is only distributed to users that need the software.
What would be the best method to have the user type a password when they attempt to access the database selection screen? ShowDialog? Pop open a new child form with a password TextBox, then on validation (via button?) close the password form and open the protected form?I see a fair bit about protecting a whole application, but not so much about a specific form.
I have a windows forms application with one exe and several dlls(Class libraries) in a single solution. The application uses common data that is used across all the dlls. I would like to load the data when the application is starting up and use the loaded data at various points in the dlls so that I do not have to load the common data again and again. How can I share the data loaded in main EXE across the DLLs?
Has anyone using VB.NET 2010 been able to create a single instance application? I've followed the MSDN sample but it does not have an Application.xaml file. Converting any C# samples to VB doesn't work as I cannot override the Main sub in Application.xaml (C# calls it App.xaml).
I want to add a button to my project that starts the defualt email application.I first need to know what the defalt email application on the enduser computer is.Then I need to retrive the path and the name of the exe file.Then extract the icon form the exe to enhance the button with the icon and application button.
Trying to send email from inside my application. I have traced everything in the program and everything appears fine. Connection is made to my smtp server (shown in log files) but the message is never sent.
Private Sub sendAsEmailButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sendAsEmailButton.Click Dim form As New EmailData() form.ShowDialog() [Code] .....