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
S

Soumya92

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

Posts

Recent Best Controversial

  • Constructor in MustInherit Class
    S Soumya92

    OK. Thanks a lot for your quick replies. We'll call the question resolved, then?

    ~ Soumya92

    .NET (Core and Framework) visual-studio help question

  • Constructor in MustInherit Class
    S Soumya92

    The whole idea was to _not_ declare the constructor again. I agree that it makes sense to construct the base class object first, but I want the base class constructor to be used if I do not specify one in the derived class.

    ~ Soumya92

    .NET (Core and Framework) visual-studio help question

  • Constructor in MustInherit Class
    S Soumya92

    I have a MustInherit class A, something like

    Public MustInherit Class A

    Protected A as Integer
    
    Public Sub New(ByVal X As Integer)
        A=X
    End Sub
    
    Public MustOverride Sub B()
    

    End Class

    and I want the declared constructor to be used for any derived classes. However, in derived classes, like

    Public Class D
    Inherits A

    Public Sub B()
        A+=2
    End Sub
    

    End Class

    VS gives me an error, saying that there is no constructor in A that can be called without any arguments. Is there any way I can inherit the constructor?

    ~ Soumya92

    .NET (Core and Framework) visual-studio help question

  • Help: Laptop won't boot Windows 7
    S Soumya92

    I did not upgrade. I should have mentioned that. I completely formatted the drive containing Windows 7 RC, then installed Windows 7 RTM. However, the problem is now solved. The solution was to, believe it or not, use the VISTA DVD to repair the startup. On booting to repair, it immediately prompted me to "FIx and Restart" a startup problem, and hey presto, problem solved. It is sad to see that Windows 7's startup repair fails to detect the issue, while Vista's startup repair fixes it in seconds.

    ~ Soumya92

    Hardware & Devices help question workspace

  • Help: Laptop won't boot Windows 7
    S Soumya92

    I have a nice hp pavillion laptop. I installed Windows 7 RC (64) on it a few months back. Now having obtained Windows 7 RTM from TechNet, I started the install of Windows 7 RTM (64). During setup it told me "Windows cannot be installed to this disk" and something about not being able to boot off the disk, but installed windows anyway. The next boot, I get "Operating System Not Found". I booted off GPartEd and set the hard disk to "boot" label. The next boot I get "BOOTMGR is missing. Press Ctrl-Alt-Del to reboot". I tried system repair, but it does not detect any problems. Also, there is no 'boot' folder in C:, and bootrec /scanos lists 0 windows installations. What should I do?

    ~ Soumya92

    Hardware & Devices help question workspace

  • Need some help with socket programming.
    S Soumya92

    "The underlying connection was closed" The site works fine in a browser, once you get past the security error, so I assume that the server does accept post. Is it somehow possible to ignore the certificate errors for the webbrowser control?

    ~ Soumya92

    .NET (Core and Framework) help csharp cryptography tutorial

  • Need some help with socket programming.
    S Soumya92

    Everytime I POST data to the server, a webexception is thrown: The underlying connection was closed.

    ~ Soumya92

    .NET (Core and Framework) help csharp cryptography tutorial

  • Need some help with socket programming.
    S Soumya92

    I tried that now, and it works. But now I cannot send any POST commands.

    ~ Soumya92

    .NET (Core and Framework) help csharp cryptography tutorial

  • Need some help with socket programming.
    S Soumya92

    I am using VB.net, but samples in any language will do. The problem is that I have to connect to a secure site with an invalid certificate. Every browser based control fails, so I have turned to raw sockets. The website is for internal use only, however its certificate is unverified. I need to know what commands to send and how to respond over https. My socket app, so far, can connect to http, and even view pages. On https, any command like GET /url?parameters HTTP/1.1 gives me an empty response. Thanks in advance.

    ~ Soumya92

    .NET (Core and Framework) help csharp cryptography tutorial

  • Help with NotifyIcon on Windows 7
    S Soumya92

    That was indeed the reason for my problem. Stupid of me not to see it. :-D

    ~ Soumya92

    .NET (Core and Framework) help

  • Help with NotifyIcon on Windows 7
    S Soumya92

    Hi All, I am writing a small app that shows a dialog when its tray icon is clicked. The problem is, on Windows 7 the NotifyIcon does not appear at all. I checked both the normal tray and the hidden icons. It is not there. I also checked the visible property of the icon, both at designtime and runtime. Also, any balloon tips to be shown are not shown. Any help in this matter would be appreciated. Thanks.

    ~ Soumya92

    .NET (Core and Framework) help

  • Flickering Problem in Text Control
    S Soumya92

    As part of a presentation software, I decided to write a custom control that provides cool text effects (like in powerpoint 2007). To support transparency, I used Bob Powell's code. Everything is fine in the designer, but when I try to animate the control, it flickers a lot. Double buffering just gives it a black background. Can anyone help me remove the flicker? The code for the class:

    Imports System.Drawing.Drawing2D

    Public Class Text2007
    Inherits System.Windows.Forms.UserControl

    Protected Overrides ReadOnly Property CreateParams() As CreateParams
        Get
            Dim cp As CreateParams = MyBase.CreateParams
            cp.ExStyle = cp.ExStyle Or &H20
            Return cp
        End Get
    End Property
    
    Protected Overrides Sub OnPaintBackground(ByVal e As PaintEventArgs)
    End Sub
    
    Protected Sub InvalidateEx()
        If (Parent Is Nothing) Then
            Exit Sub
        Else
            Dim rc As New Rectangle(Location, Size)
            Parent.Invalidate(rc, True)
        End If
    End Sub
    
    
    Protected Overrides Sub OnMove(ByVal e As EventArgs)
        Me.InvalidateEx()
    End Sub
    
    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
        Dim bm As New Bitmap(CInt(Me.ClientSize.Width / 5), CInt(Me.ClientSize.Height / 5))
        Dim pth As New GraphicsPath()
        pth.AddString(Me.Text, New FontFamily("Verdana"), CInt(FontStyle.Regular), 100, New Point(20, 20), StringFormat.GenericTypographic)
        Dim h As Graphics = Graphics.FromImage(bm)
        Dim mx As New Matrix(1.0F / 5, 0, 0, 1.0F / 5, -(1.0F / 5), -(1.0F / 5))
        h.SmoothingMode = SmoothingMode.AntiAlias
        h.Transform = mx
        Dim p As New Pen(Color.Yellow, 3)
        h.DrawPath(p, pth)
        h.FillPath(Brushes.Yellow, pth)
        h.Dispose()
        e.Graphics.Transform = New Matrix(1, 0, 0, 1, 50, 50)
        e.Graphics.SmoothingMode = SmoothingMode.AntiAlias
        e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic
        e.Graphics.DrawImage(bm, ClientRectangle, 0, 0, bm.Width, bm.Height, GraphicsUnit.Pixel)
        e.Graphics.FillPath(Brushes.Black, pth)
        pth.Dispose()
    End Sub
    
    Public Sub pInvalidate()
        Me.InvalidateEx()
    End Sub
    

    End Class

    ~ Soumya92

    Visual Basic graphics help question
  • Login

  • Don't have an account? Register

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