Search results for query: *

  • Users: pettrer
  • Content: Threads
  • Order by date
  1. P

    Calling other project from onclick event

    Hi all, I have a question regarding VB.Net and Object-oriented programming. I have a solution consisting of two projects. One project is dedicated to the logic of the application, and one is only to show the Winforms form, and to reflect changes made in the logics project. In other words...
  2. P

    Install VS 2008 or VS 2010 RC

    Hi, (I asked a question similar to this one at forums.asp.net, but I post it here as I also do winforms - VB.NET - development and there might be different issues involved here...) I have just reinstalled everything on my computer, that is, evereything exept for Visual Studio plus Sql Server ...
  3. P

    datagridviewcell in editmode

    Hi all, I'm having trouble with setting a datagridview's cell in edit mode, or rather, to let the user type some input on load of a form (as in Excel or the like). This is my code (after the dgv has been filled): dgvTentander.EditMode = DataGridViewEditMode.EditProgrammatically '(or...
  4. P

    Panel offset index property

    Hi, I use drag'n'drop from a datagridview to a panel. The panel holds an array of objects (think rows) so that the items from the datagridview can be dragged to the different objects. I use the y-index from the top of the panel to define what object the item is dragged onto. This works great...
  5. P

    Get control at cursor position

    Hi, I'm trying to access a panel at the mouse position, like this: Private Sub pSalar_MouseDown(ByVal sender As Object, ByVal e As MouseEventArgs) Handles pSalar.MouseDown My problem is that this panel is the parent of labels, and when I click somewhere on the panel, I can't get it to...
  6. P

    Name of control at cursor position

    Hi all, A quick question: How do I get the name of the (topmost?) control at the cursor position? The background: I implemented drag'n'drop from a dgv to a label and need to identify the control where the mouse button is released. I have enabled dropping on the label where the drop is going...
  7. P

    Wait cursor automatically

    Hi all, I'm developing a big VB.Net Winforms application. Every now and again, processing or db connections take some time and therefore I'd like a wait cursor (hourglass) to appear sometimes. I know I can do it like in this thread (in case someone needs the code): Hourglass?? - technical...
  8. P

    Catch click to close form

    Hi all, I have a stupid problem. I have a datagridview with both textcells and comboboxcells in it. If I click a textcell and then click the form's Close button, the form closes alright. But if I click a comboboxcell and then click the Close button (or any button for that matter), the first...
  9. P

    Changing to DataGridViewComboBoxCell

    Hi all, I'm trying to get a comboboxcell working in a datagridview. I DO NOT want a comboboxcolumn (that's what I have today) as the logic of my application states that only if the cell has a certain value when the form was opened, there should be a combobox instead of a regular textbox. I've...
  10. P

    download via ftp

    Hi, There is something wrong in this short code snippet of mine: Friend Sub RetrieveFtpFile(ByVal ftpFileUri As String, ByVal destFilePath As String) fwr = FtpWebRequest.Create("ftp://" & ftpFileUri) fwr.Method = WebRequestMethods.Ftp.DownloadFile fwr.Credentials = New NetworkCredential("xx"...
  11. P

    it's not adding columns to datagridview?

    Hi all, I'm having trouble with a datagridview. I use a datatable to fill it and no matter if I set autogenerate columns true or false, I still get no columns in the datagridview datasource, if there are no rows in the datatable. The funny thing is that in another form, I use the exactly (or...
  12. P

    Font name to actual font

    Hi all, A quick question! I need to convert the name of a font to a label's font: MyLabel.Font = "Algerian" I've searched the net and tried directcast, typeconverter etc, but can't get it to work. Does anyone know? Thanks in advance, Pettrer
  13. P

    Update datagridview from three comboboxes

    Hi, I have three comboboxes in a form. The first is the parent of the second, which is the parent of the third. When they are all updated, a datagridview should be updated. The problem is that the user can choose to change the value of either combobox, so I don't know which combobox's value...
  14. P

    stored proc in nested SELECT statement

    Hi, We're using Sql Server 2005. We would like to use a stored procedure in a nested SELECT statement, so to speak, but it doesn't work syntax-wise: This works: SELECT cKod FROM (SELECT cKod, cDescription FROM MyTable) AS a But this doesn't: SELECT cKod FROM (EXEC test_testing) AS a So...
  15. P

    Incorporating bits of the framework

    Hi, I have made a very small (only one form and no database operations) but nifty application and I want many people to be able to use it. My question is: As I only need a very small part of the dotnet framework, is there a way to let the compiler (or so) grab only the parts it needs for the...
  16. P

    Performance of autocomplete

    Hi, I have a textbox that is filled using autocomplete. The autocomplete is a globally accessible sub that I use for textboxes and (I guess) comboboxes. My problem is that the autocomplete sub takes several seconds to fill the textbox. Is there some way my code could be improved? (The code...
  17. P

    Restarting Windows service upon exception

    Hi, I have made changes to a colleague's Windows service and it works fine. It's an email service hosted on our web server. In almost all functions there are try...catch blocks, such as this one: ... Catch ex As Exception Fellogg("An error has occured in Sendmail" &...
  18. P

    ColumnHeaderMouseClick and ContextMenuStrip on DataGridView

    Hi, I have a question regarding ColumnHeaderMouseClick, ContextMenuStrip, and DataGridViews (pew - those descriptive but LONG names!;)). I want to set a contextmenustrip on my datagridviews' column header cells/column header rows. I inherit my forms from a parent form and there I also set some...
  19. P

    Set properties for forms globally

    Hi, I wonder if there is a way to easily set the settings of opened forms globally. Now, I set the ShowInTaskbar property to false, to take one example, but I need this to be the case for say ten different properties and have LOTS of forms. I guess I could call a global sub from the form's...
  20. P

    child windows should'nt appear separately

    Hi, I have a quick question. When I open several child windows in my winforms application, they all end up as below, but I just want them in one "list window" (as it's only the top "list window" that is accessible anyway). I use this kind of coding to open the actual child windows: Dim child...
Back
Top