Search results for query: *

  • Users: grmbl
  • Order by date
  1. grmbl

    Populate treeview with registry

    People, I need some help with this!!! I tried recursively populating my treeview with the registry structure but I'm stuck.... :( This is what I have so far: Private Sub fRegistry_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Add node with...
  2. grmbl

    Populate treeview with registry

    This is the more flexible code: NOTE: this is not recursive!!! Not everything is shown!!! (Uncomment imageindex/selectedimageindex if you have an imagelist set with appropriate images and have a treeview with that imagelist set.) Public Sub RegNode(ByVal tree As TreeView, ByVal reg As...
  3. grmbl

    New forum?

    I think I allready got the message but thanks for clearing that out for me again....
  4. grmbl

    Populate treeview with registry

    I allready found a solution and thought it would be a good idea to post it here: Dim root As TreeNode root = New TreeNode("This computer") root.ImageIndex = 5 root.SelectedImageIndex = 5 'HKEY_CLASSES_ROOT Dim rootnode As TreeNode rootnode = New...
  5. grmbl

    Populate treeview with registry

    Hey, Is there anyone here who could help me on my way to create my own custom "regedit"? First and probably only problem is iterating through the registry starting from the root.... Anyone has experience with this topic? Any help greatly appreciated! grtz
  6. grmbl

    Question Update Access DB through dataset

    Hey, I'm a bit confused how I can achieve updating my Access DB with my dataset? The function below AllesOphalen (=GetEverything) retrieves everything to a dataset. I'll use this dataset to fill a listview. Listviewitems will be manipulated through contextmenu. 1. How can I update my dataset...
  7. grmbl

    New forum?

    Sorry for suggesting a subforum dedicated to something so totally irrelevant as VBS... I'll think twice before suggesting something crazy like that in the future. Anyway, it should have been nice to see how others thought about it. I'll just go out on the web and find me a suitable forum for...
  8. grmbl

    New forum?

    Hey, I'm a vivid VB.net and VBScript programmer and I'd love to see a Scripting forum on vbdnforums.com. This would be the perfect place for everything about VBS, WMI, ... Maybe put a poll thread in the general discussion forum so people can decide for themselves? Kind regards, grmbl!
  9. grmbl

    HTML printing

    Set PrintDialog Parameter & then print document with out showing Print Dialog. My google query: PrintDocument no dialog - Google zoeken PrintDocument.PrintOut()Maybe that's the way to do it? I don't have time to look into it but the link I provided will maybe help you on your way... ;)
  10. grmbl

    Excel sheet names Question

    This perhaps? (please put future code between CODE tags.) Dim sFile As String = "D:\Share\PRINTERS.xls" Dim sValues() As String = {} Dim sQuery As String = "SELECT * FROM [" & ComboBox1.Text & "A1:A50]" Dim cn As System.Data.OleDb.OleDbConnection Dim cmd As...
  11. grmbl

    HTML printing

    I think you either have to parse the HTML through a browser and process the page giving parameters to print... or you extract the data from database, create the file physically, use .NET PrintDocument and delete the file.
  12. grmbl

    crystal report printing code

    Supposing you allready have the report and code to fill it with data, this is an example how to print the report: My code: dim icopies as integer = 1 dim sprinter as string = "\\ALITER\Kyocera FS-1118MFP (ICT)" rpt.PrintOptions.PaperOrientation = PaperOrientation.Portrait...
  13. grmbl

    Excel sheet names Question

    First add a COM reference to your project. (Project - Add Reference - COM - Microsoft Excel x.0 Object Library) Code: Imports excel = Microsoft.Office.Interop.Excel Imports forms = System.Windows.Forms Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
  14. grmbl

    Accessing pictures with crystal report from file system

    Here's how I did it: Add a dataset to your project, I called it "ds_data" (ds_data.xsd). Add a Datatable (Image), add 2 columns (Name,Photo). Change Datatype of Name column to System.String and change the datatype of the Photo column to System.Byte() In your report, right clikc Database Fields...
  15. grmbl

    Question Drag & Drop Between 2 Datagrids Between 2 MDI Child Forms

    This is what I found (it's not mine) and thought useful for you: (search took me long enough ;)) It basically does what I said you should do. Create 2 datatables with your data from both grids, pass index when dragndropping. I haven't tried this code but I think it will help you on your way! I...
  16. grmbl

    Question Passing DataGridViewRowCollection to procedure...

    Thanks for your replies, I'll pass an array with indices from selected rows to the procedure instead of a collection of rows. I just thought it would be easier to work with within the procedure... grtz
  17. grmbl

    Question Help needed in Converting C# Code

    You can always convert C# to VB.net using the following link: ConvertCSharp2VB ;)
  18. grmbl

    Question Main form minimized after opening form in a different thread

    The progressbarform, do you show it modal or not? progressbarform.show or progressbarform.showdialog? :) EDIT: sorry I missed it in your code. Try progressbarform.show? Play around with focus?
  19. grmbl

    Question Drag & Drop Between 2 Datagrids Between 2 MDI Child Forms

    What would you want to dragndrop? A row, a cell, a cells value? I tried dragndropping between 2 MDI children and it doesn't seem to work. I suggest maybe you try creating a global variable of the type you want to copy (move) and create it when the drag starts. Then pick it up on the other form...
  20. grmbl

    Minimize to System Tray

    There's not much code to it. Like your example, I hide the form but the system tray icon only shows when the user minimizes the form.(on purpose) Now whenever I close the form from my context menu or stop from designer the icon keeps hanging there until I hover my mouse over it...
Back
Top