Search results for query: *

  1. C

    Problem with datagrid in visual basic .net

    Well, obviusly i did that first of all. My question isn't if Columns is or not member of datagrid, that it's obvious that it isn't, but how can i do the same thing i did in VB6 with .Columns in VB .net. When i typed dtg. i saw a lot of methods and i searched for something with a similar...
  2. C

    Problem with datagrid in visual basic .net

    Hello, i have to migrate some code from VB6 to VB .net and i've found a problem with the datagrid. I've this method, it runs well in VB6. Public Sub ShowDatagrid(ByVal dtg As DataGrid) Dim i As Integer Dim HeighN As Long Dim ValidColumns As Integer ValidColumns...
  3. C

    Big problem with a method

    Well, I think i've found the solution... i've put this: Public Class Father Inherits System.Windows.Forms.Form Public Overridable Function Modify_Register() As Boolean MsgBox("THIS IS THE FATHER") Return False End Function Public Overridable Function...
  4. C

    Big problem with a method

    Hello, I have to migrate a VB6 app to VB .net and i've found a very big problem with a method. The situation is this: I have a method who takes a form as parameter Public Function Update(ByRef f_called As System.windows.forms.form, ByRef rst As ADODB.Recordset, ByRef Mode As String) As...
  5. C

    Close form from another

    XDDDDD, it seems i posted this at the same time XDDDD Thanks Kulrom.
  6. C

    Close form from another

    Well, i've found a very old post which the same question here XDDDDD. Sorry XDDD. The problem can be solved in a very very very easy way XDDDDDD. No extramodules, no extra-var... Private Sub b_cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b_cancel.Click...
  7. C

    Close form from another

    Well, I've been reading other post here and i've done some changes in my code: 1.In a Module I've put this: Module f_Main Friend Mform As f_Main End Module 2.In f_Main I've put this in method load: Private Sub f_Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)...
  8. C

    Close form from another

    Hello, I had a Vb6.0 app which showed a main form. This form showed another form to login. When you clicked the "Cancel" Button in the login form, this form closed itself and the main form. Private Sub b_Cancel_Click() Unload f_Login Unload f_Main End Sub Now, I have to do this app...
  9. C

    stdole.IPicture.Disp to System.Drawing.Ico

    Thk for the link, i had read another similar so i put a ImageConverter class as this: Public Class ImageConverter Inherits System.Windows.Forms.AxHost Public Sub New(ByVal pGUID As String) MyBase.New(pGUID) End Sub Public Shared Function ImageToIPicDisp(ByVal value As...
  10. C

    stdole.IPicture.Disp to System.Drawing.Ico

    i don't use .Net control ImageList because when they gave me the app, the icons were in a AxImageList (i didn't put the icons in a AxImageList, they were in a AxImageList XDDD) Please, is there some easy way to move the icons in the AxImageList to a .Net ImageList? or , as i said before, some...
  11. C

    stdole.IPicture.Disp to System.Drawing.Ico

    Hello, I need to put icons in a vb.net menu. The icons are in a AxImageList called Images, so when i have to extract an icon i do Images.ListImages("name").ExtractIcon but this method returns a stdole.IPictureDisp. The problem is that i have a class to put the icons in the menu which receives...
Back
Top