Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
F

farzadmf

@farzadmf
About
Posts
12
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Retaining Drawn Graphics
    F farzadmf

    I really really appreciate your concern And, in fact, I'm not that beginner as you think (and as it seems!) ;P and I'm sorry if I asked some beginner questions. Actually, I'm a fan of reading books myself and I'm really used to finding my answers in MSDN and Google, but for this particular question, which has been on my mind for a long time, I didn't know what to exactly search in MSDN or Google, so I tried it here and honestly, I received some very very good answers that I will try to consider surely. Thank you again for your detailed and good answer and for guidance.

    Windows Forms graphics tutorial question

  • Retaining Drawn Graphics
    F farzadmf

    Thank you soooo much for your detailed answer, but some questions: Can you please tell me: 1. Why do you find the PictureBox control a useless one? 2. Why did you say that we shouldn't call the CreateGraphics method? 3. What exactly does the Panel.Invalidate() method do and how it can be used here? 4. Why did you say that either create the pen, font, etc. object as class members or create them inside the Paint event handler and call the Dispose method? Why is the Dispose method necessary here and what's the difference between these two methods you mentioned. Thank you in advance ...

    Windows Forms graphics tutorial question

  • Retaining Drawn Graphics
    F farzadmf

    Hi everybody, When we use the Graphics object to draw, for example, on a Form, every time, something covers the entire or just a part of the Form (for example, another window) or when the Form is minimized and them maximized for example, all the drawn graphics are lost (or the part present on the covered part of the Form). I wanted to know if there's anyway to retain these graphics in these cases? I don't (and can't) use the Paint method because I'm considering a case where the graphics are drawn using different method and not a single method to be called in the Paint event.

    Windows Forms graphics tutorial question

  • Form Resizing and Docked Controls
    F farzadmf

    Thanks, I will try that and let you know.

    Windows Forms help winforms question announcement

  • Form Resizing and Docked Controls
    F farzadmf

    Don't mind please. It's OK. Anyway thank you very very much for your concern. I will surely check the controls you mentioned. Thank you again.

    Windows Forms help winforms question announcement

  • Form Resizing and Docked Controls
    F farzadmf

    SizeMode is set to Normal, but I tried with AutoSize but it didn't make any difference.

    Windows Forms help winforms question announcement

  • Form Resizing and Docked Controls
    F farzadmf

    Yes, you are right; if you set the BackgroundColor and make the Form smaller, you notice no difference because there is only one solid color, BUT imagine a situation where you have a picture or something being displayed in the picture box, if you make the Form smaller and the picture box isn't resized accordingly, some parts of the image would not be visible.

    Windows Forms help winforms question announcement

  • Form Resizing and Docked Controls
    F farzadmf

    Thank you for your reply: Firstly, the picture box's SizeMode property determines how the size changes according to the size of the picture being shown in the picture box. Secondly, I want to achieve a condition in which resizing the Form ALWAYS causes the picture box's size to change even when both Width and Height properties of the form are decreasing; and in fact, as soon as every one of them begins to increase, the picture box's size is also changed.

    Windows Forms help winforms question announcement

  • Form Resizing and Docked Controls
    F farzadmf

    Hi everybody, I have an issue with Windows Forms: I created a Windows Form and docked a picture box to fill the entire form, but the problem I have is that the picture box's size change only when either "Width" and "Height" properties of the Form (or both of them) are increasing and in fact, if I resize the form so that it becomes smaller (both in Width and Height) the picture box's size wouldn't change. To test this, I tried to update the Text property of the form in the Form's Paint event to reflect the picture box's Size property and when I'm making the Form smaller, neither Width nor the Height of the picture box is changing, any ideas?

    Windows Forms help winforms question announcement

  • Anyone know a solution?
    F farzadmf

    Hello to everyone I receive the following error message when trying to do some simple remoting tasks on my computer. Can anybody tell the meaning of this message and, if any, suggest a solution please? Unhandled Exception: System.Security.SecurityException: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level. Pleeeease ... don't tell me to search Google (as someone did before) because I have already done so, but it didn't do any better I also tried typeFilterLevel="Full" ... but, no difference ... Thank you.

    Visual Basic security help question

  • What's the meaning of this message?
    F farzadmf

    Hello to everyone I receive the following error message when trying to do some simple remoting tasks on my computer. Can anybody tell the meaning of this message and, if any, suggest a solution please? Unhandled Exception: System.Security.SecurityException: Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level. Thank you.

    Visual Basic security help question

  • .NET Remoting (please help ...) [modified]
    F farzadmf

    :doh: Hi to all, PLEASE PLEASE PLEASE HELP ME, SORRY IF MY MESSAGE IS SO LONG, BUT I COULDN'T FIND A WAY TO AT LEAST UPLOAD MY CODE FILES SO I HAD TO INSERT ALL THE CODE HERE, BUT PLEASE HELP, I'M REALLYYYYYYYYY STOCKED AND I WILL BE VERY VERY VERYYYYYYYY THANKFUL IF SOMEONE HELPS ME ............ :( :( :( :( :( :( :( :( I am reading the Microsoft's book for exam 70-310 & 70-320 and I have a problem in Chapter 4's lab which I didn't manage to solve ... please help me ... It's a simple chat application using .NET remoting: We have a ChatCoordinator class and a SubmitEventArgs class (saved in a file named: CChatCoordinator.vb) with the following code: ---------------------------------------------------------------------

    Imports System
    Imports System.Runtime.Remoting
    Imports System.Collections

    Serializable()> _
    Public Class SubmitEventArgs
    Inherits EventArgs

    Private message As String = Nothing
    Private userName As String = Nothing
    
    Public Sub New(ByVal contribution As String, \_
        ByVal contributor As String)
        Me.message = contribution
        Me.userName = contributor
    End Sub ' New
    
    Public ReadOnly Property Contribution() As String
        Get
            Return message
        End Get
    End Property
    
    Public ReadOnly Property Contributor() As String
        Get
            Return userName
        End Get
    End Property
    

    End Class ' SubmitEventArgs

    Public Delegate Sub SubmissionEventHandler(ByVal sender As Object, _
    ByVal submitArgs As SubmitEventArgs)

    Public Class ChatCoordinator
    Inherits MarshalByRefObject
    Public Sub New()
    Console.WriteLine("ChatCoordinator created. Instance: " & _
    Me.GetHashCode().ToString())
    End Sub ' New

    Public Overrides Function InitializeLifetimeService() As Object
        Return Nothing
    End Function ' InitializeLifetimeService
    
    Public Event Submission As SubmissionEventHandler
    
    Public Sub Submit(ByVal contribution As String, \_
        ByVal contributor As String)
        Console.WriteLine("{0} says: {1}.", \_
            contributor, contribution)
        Dim e As New SubmitEventArgs(contribution, contributor)
        Console.WriteLine("Broadcasting...")
        RaiseEvent Submission(Me, e)
    End Sub ' Submit
    

    End Class ' ChatCoordinator

    ------------------------------------------------------------------- We have a Server class (in a file named: CServer.vb<

    Visual Basic help csharp sysadmin lounge learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups