Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: k2w
  • Order by date
  1. k2w

    Updating a parent form from a child without using parent nam

    Create your own procedure with parmameters to hold the form and textbox you need to update. IE: Private Sub (TargetForm as Form, TargetText as TextBox) Then instead of hardcoding the names you can use TargetForm or TargetText to set the values.
  2. k2w

    How to create a power point slide from vb?

    check out thread222-733600
  3. k2w

    How to write a program to add/change access right in folder

    check out thread222-644287
  4. k2w

    How do I create a desktop icon for my program?

    I'm not sure this is what you're looking for, but to set the icon for the exe you can go to the Project-Properties menu and on the Make tab set the Icon property there. You can then create a shortcut to the program which will have the same icon.
  5. k2w

    Forms won't unload

    If I'm reading this right you should only be able to open one of the subforms (vbModal) at a time from the main form. The problem then is that you are referencing the other subform when it should not exist and therefore are creating a new instance of it. Only unload the forms that would...
  6. k2w

    Common Dialog Function Init Failed

    Compare the date/version of the comdlg32.ocx on your machine to the users. You may need to upgrade the users. Hope that helps!
  7. k2w

    Can I cut and paste a graph from excel into powerpoint through VB CODE

    snehakevin Did this work for you? k2w
  8. k2w

    Excel Range Parameters for Function

    You would start by creating excel.application, excel.workbook and excel.worksheet objects. Then open or create a new .xls file. If you want to get the active cell... row = objWorkSheet.Cells.Row col = objWorkSheet.Cells.Column objWorkSheet.Cells(row, col) = "Hello New Value" or you...
  9. k2w

    Can I cut and paste a graph from excel into powerpoint through VB CODE

    'set project references to PowerPoint and Excel 'create an excel.application object 'create an excel.workbook object 'create an excel.worksheet object 'create an excel.chartobject object Dim objExcel As Excel.Application Dim objWork As Excel.Workbook Dim objSheet As Excel.Worksheet Dim objGraph...
  10. k2w

    OLE Automation Problem of VB in Windows XP

    http://support.microsoft.com/?kbid=302460 This might help you, I've noticed that the paramaters you pass are different from the ones shown in the documentation.
  11. k2w

    change subreport pictures

    Hello - I've been able to change the picture file location for an ole object in a crystal report (.rpt) at runtime by changing it in the section format event (using the loadpicture() in visual basic). I'm using VB6 with the CR8.5 crystal reports viewer. Does anyone know how to achieve the...
  12. k2w

    Linked vs Embedded ole object

    I'm looking to do the same sort of thing, did you ever find a solution?
  13. k2w

    Is there a way to send keys to a program w/o activating the Window

    Look into the sendmessage api. I believe you can send info to another running application without activating the window. You should be able to find tutorials if you search it on any search engine. k2w
  14. k2w

    out of memory on view object

    I have already tried deleting the vbw and obj's with no luck. The project loads fine, it's just when I click on one particular form to get the object view that it gives me the error. The form does not have any different controls than the others but it is the only one that gives the out of...
  15. k2w

    out of memory on view object

    Hi, I noticed this problem when I was trying to make an exe. It compiled fine but when it was writing the exe it came up with an out of memory error. When I try to view one form object in the development area by either double clicking it or selecting the view object button in the project...
  16. k2w

    set focus problem

    Hi, I've got a strange problem. I am trying to set focus to a pdf that my program has started. To set focus I am using showwindow, setforegroundwindow and setactivewindow. Now it does what I ask it to, but it opens the articles window in acrobat (which interferes because I'm then trying to...
  17. k2w

    set focus to a form -- keep other on top?

    Thanks DrJavaJoe, I had actually read the thread where you discussed this before and was constantly getting errors -- the problem being the form was being shown from a MDIChild (it finally clicked that "Me" should be the parent form). So thanks for your help in both places! A star...
  18. k2w

    set focus to a form -- keep other on top?

    Hi! I'm trying to select a control on a form while keeping another form on top, but I can't get it to work, the other form gains focus and the other is only displayed in the task bar. Is there anyway to do this? Thanks for your help. k2w
  19. k2w

    Check to see if file is open and close it

    You could use the FindWindow (to see if it's open) and PostMessage (to close it) API functions. Hope this helps. k2w
  20. k2w

    Form on top

    If you are trying to show a form and have it not lose focus until the user closes it you can try: Form1.Show vbModal Hope this Helps

Part and Inventory Search

Back
Top