|
RyJaBy wrote: Yea the Form size is different,
screen Resolution would do that.
|
|
|
|
|
I haven't tried myself, but you might be able to solve it by adding a Manifesto[^]. The blog entry is for WPF, but I expect WinForms to have the same requirements.
Try this CodeProject article[^] on Visual Styles
I are Troll
modified on Friday, October 23, 2009 2:53 PM
|
|
|
|
|
Hi When i try to install my program on a computer that is 64 bit, it does not install. Does anyone know why this is, or how to overcome it?
Thanks
|
|
|
|
|
That would depend on what the error message is. You might want to check in the machines eventlog.
|
|
|
|
|
Hi Guys,
Does any one know how to set the document name of a crystal report that appears on the printer job list.
thanks
|
|
|
|
|
Hi to every body,
I'm a beginner and maybe I'm trying doing something too hard for me, so I try to ask you.
I have an application that prepare an email, without send it because the user has to add some other information to the body mail.
Until here I have no problem:
Dim oApp As New Microsoft.Office.Interop.Outlook.Application
Dim oMsg As Outlook._MailItem
Dim tBody As String, tSubject As String
oMsg = oApp.CreateItem(Outlook.OlItemType.olMailItem)
tSubject = "Claim management reference "
tBody = "Your Claim, referenced "
.....
oMsg.Subject = tSubject
oMsg.Body = tBody
oMsg.Display()
Now I have to understand if:
User press SEND (in this case I also have to looking for the sent mail an copy it to a Windows Folder)
User press CANCEL (in this case nothing happen)
I read somtihing about Inspector and event handler, but I have no idea how to begin.
Coould you please help me?
Thank you and best regards
Leonardo
|
|
|
|
|
Leonardo:
To save a message to a specific folder you would use the following code:
oMsg.SaveAs("C:\FolderName\Message.msg")
To save a message to the Drafts folder of outlook:
oMsg.Save()
Hope this helps..
:::EDIT:::
Also, using the Intellisense and Object Explorer features of VStudio will answer a lot of your own questions.
Intellisense will show you all available and exposed methods, properties and functions for objects.
Object Explorer will give you a full rundown of the methods, properties and functions within a class.
Daniel Rolfe
-------------
Software Engineer
VB, ASP.NET, ASP, PHP, SQL Server 2005, SQL Server 2008
|
|
|
|
|
Thank you, but this isn't what was I looking for.
I'm able to save a message, but I must understand if the user press SEND or CANCEL the email.
I have to do so, because VB2005 open Outlook with a new mail with subjecy and body filled. But I need that the user can modify the body or the recipients.
Finally, if the user send the mail I need to save it, otherwise nothing happen.
Can somebody haelp me?
Regards
Leonardo
|
|
|
|
|
Good Day All
I once created a controller in Visual Studio for a C# project.
This controller included CheckBox, two TextBoxes, and a NumericUpAndDown, all in one sort-of "dataGridView-type" controller.
I am struggling to replicate this result in any way.
I want to all these controllers within the GridView, having a Header row for the labels, as with any of data from a database for a GridView.
I am not sure if creating a GridView and inserting these controllers into each cell would work, but my attempts thus far have lacked any outcome.
Could someone please assist as to how to go about this, and whether or not what I am doing is in fact on the right track?
Thanks in Advance
|
|
|
|
|
I assume you meant: I have a created a user control and want to add it as a column to the datagridview.
If I am right, then your user control class should inherit from the DataGridViewColumn class. That way you can add you control as a column of the DataGridView . Read this[^].
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hey There
Yes, you were right in your assumption.
Thanks a million for the help!
Its a tricky bit of code to have written from scratch, but simple to implement from here.
Thanks Again!
|
|
|
|
|
Hi all,
Thanks to all those who have replied to my posts earlier.
I want to add a new icon in the MessageBoxIcon list.
Is it possible? If possible how to accomplish it.
Thanks in advance.
|
|
|
|
|
No, it is not. You would need to create your own dialog class to do that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks a lot for the information.
Will try to create my own dialog.
|
|
|
|
|
|
Hi guys, i need help. Below i c/p code, to explain in short, in abstract class i have login authentication, i inherit that abstarct class on all other classes that i need to be secured, now what i wan tis that if my abstract class does invalidate user, to be stoped and render login page, otherwise it will continue processing and on end render index page.
Public Class Secure
Public Sub New()
If Not User.Authenticated Then
RenderLogin()
End If
End Sub
End Class
Public Class Index
Inherits Secure
Public Sub New()
LoadMessages()
LoadTasks()
RenderIndex()
End Sub
End Class
The question is, how do i stop further executing after RenderLogin() method? I don't want it to continue constructing new Index class. Btw, all this is run inside http context, but i did put it in here and not in asp.net since this has more got to do with VB and classes than with asp. Oh, and i know i can write Response.End, but i would like to avoid this - because of "System.Threading.ThreadAbortException" errors which go on my nerves.
|
|
|
|
|
There is no way to stop a constructor from working except perhaps for throwing an exception. A better design would be to set a flag, so that you can check the flag from the client class to see if login succeeded.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I was afraid of this
This would mean that i have to check for this flag on like 150 classes
This sucks.
|
|
|
|
|
It means the overall design is flawed.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Do you maybe have an idea how could i create it right way.
I will wrote in short what i try to make, and if you have time, maybe you could give me an example how would be best to make.
I have a bunch of classes, like UserEdit, UserList, TaskEdit, TaskList, each of this class has some of it's methods, like UserEdit has Add, Update, View and Delete.
Each of this class and method has a restriction based on user, so a specific user can use method Add in class UserEdit. So, to avoid check on each class, how could i make this check in abstract class?
I know that best would be to have this check in children (class that inherits abstract class) and on method level, but that is a lot of work to implement in each class.
So, do you have any idea?
Also, UserEdit might have Add method, but TaskEdit does not neccessery have one.
|
|
|
|
|
I don't see a way to avoid modifying all of the child classes, but do it right, and you'll only need to do it once.
1) Make an overridable/virtual Initialize() method in the base class
2) Move all of the construction code in the child classes into the Initialize() override.
3) In the base constructor, either call the Initialize() method or don't.
Obviously, you don't have to call it Initialize()... Whatever name is more suitable.
|
|
|
|
|
OK, sounds good. Thank you.
|
|
|
|
|
Hi to all, am new with VB.net an need help with events handling.
From the following code, How can I identify which of the two event was triggered. Is this possible?
Private Sub BHDay_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BHDay.TextChanged, BHDay.LostFocus
Some Validation Code...
End Sub
Thanks,
|
|
|
|
|
There's no way to tell which event triggered the handler using this code.
A better method would be to break this into two seperate handlers.
Private Sub BHDay_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BHDay.TextChanged
' Code to handle specific case of TextChanged
' Then call CommonCode to execute code that should run if either event is triggered.
End Sub
Private Sub BHDay_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BHDay.LostFocus
' Code to handle specific case of LostFocus
' Then call CommonCode to execute code that should run if either event is triggered.
End Sub
Private Sub CommonCode()
End Sub
|
|
|
|
|
Abit stuck at the moment
I need some help all i need to do is to copy the content of a.txt into b.txt?
i don't really know where to start, so if anybody can help that would be great
Cheers
Dan
|
|
|
|