Search:

Type: Posts; User: trisuglow

Page 1 of 13 1 2 3 4

Search: Search took 0.19 seconds.

  1. VS 2012 Re: Print screen shot of every form in a folder

    dday9, thank you for the suggestion. It looks like that thread is more to do with executable files rather than individual WinForms. I'm beginning to thing (see my reply to Grimfort) that I've taken...
  2. VS 2012 Re: Print screen shot of every form in a folder

    Thanks, Grimfort.

    I've made a start using that approach. As you predicted, I'm having lots of trouble with forms that area dependant on data being passed into their constructors. I've used some...
  3. VS 2012 Print screen shot of every form in a folder

    I want to create a document (probably MS Word) containing screen shots of every form in each of my company's projects.

    There is no one .sln that contains all the .proj files. However, the .proj...
  4. Replies
    7
    Views
    1,608

    Re: Variable has not been declared

    I realise this is a very old thread, but for reference, Polyline and Polyline2d both inherit from Autodesk.AutoCAD.DatabaseServices.Curve, which in turn inherits from Entity.

    Hope this helps...
  5. Replies
    4
    Views
    2,710

    VS 2010 Re: RGB or HEX to CMYK %

    This page gives RGB -> CMY and also CMY -> CMYK. I haven't tested the algorithms myself, but I hope they help.

    http://www.easyrgb.com/index.php?X=MATH&H=13#text13
  6. VS 2010 Re: shell command to start outlook as if a user did it?

    I'm guessing that you don't actually have Outlook installed in "C:\Program\...". It is probably in "C:\Program Files\...".

    I ran the following code on my PC and it worked fine. Of course, your...
  7. Re: Calling the Button Click Procedure from another Sub

    I guess you've already got something that looks like this? You can call this as FindEmployee_Click(Nothing, Nothing) - this is not really the best way to do it.

    Alternatively, make a new...
  8. Replies
    1
    Views
    772

    VS 2005 Re: quiz form vb.net

    I would suggest a "wizard" approach where you only actually have one form, but each time you click on the <Next> button the question on the form is changed to the next one in your list.

    Following...
  9. Replies
    3
    Views
    2,696

    VS 2008 Re: Autoselect int group in text box

    I'd suggest looking at Regex.Replace for this.

    http://www.knowdotnet.com/articles/regereplacementstrings.html
  10. Re: How to random the numbers in your array?

    http://visualbasic.about.com/od/usingvbnet/a/rndintarray2.htm
  11. VS 2008 Re: Replace text that's similar to text

    I was wondering if Regular Expressions would help you. I've not done anything with these before, but I put this application together to see if it would work. Hope it gives you some ideas at least......
  12. Replies
    12
    Views
    1,476

    Re: Help with flags?

    Here is a modification to your loop. This should answer your problem. I haven't tested it, so apologies for any stupid syntax errors...


    Do While intNumber <> intFlag
    ...
  13. Replies
    4
    Views
    3,107

    VS 2008 Re: Compare 6 numbers

    Have a look at the SortedList class (see link below). It has a Max() method.

    I moved from VB6 to .NET as well and it took me a while to get the hang of treating everything as an object, rather...
  14. Replies
    6
    Views
    17,574

    Re: USB Barcode Scanner Reading

    I know nothing about bar-code scanners but here are a couple of ideas:

    1. Begging your pardon, Jenner, but is it possible that you could distinguish between a scanner and a keyboard by trapping...
  15. Re: Detecting a beep sound by speaker in vb.net

    Is this at all helpful?

    http://www.fmsinc.com/free/NewTips/NET/NETtip54.asp
  16. Replies
    4
    Views
    1,352

    Re: Calling Functions in VB 2008

    Try this version of btnCalculate_Click. I have assumed that you have a textbox on your form called txtQuestion which is where you type in the number you want converted.

    I haven't looked at the...
  17. Replies
    8
    Views
    1,090

    VS 2008 Re: Is this the best way to do it?

    In answer to post #1 you could consider using the following. Alternatively, can you add a hidden column to your data that is -1, 0 or 1 depending on the row's date? This might be better because then...
  18. Re: Anyone from Crawley: THAT'S MORE LIKE IT LADS!

    Hey, am I the closest VB Forums member to Crawley? I'm living and working in Horsham (10 miles).

    By the way, my current employer is looking for a junior developer 20+ hours per week, salary in the...
  19. Replies
    7
    Views
    814

    Re: [2005] Simple Question

    This is an alternative if you want to avoid RegEx:


    Dim str As String = "feai ew f we fe ewf j iewf"
    While str.IndexOf(Space(2)) > 0
    str =...
  20. Re: [2005] How to determine which event has triggered a handler

    You're suggesting I have a static variable in the procedure to remember the previous index? Thanks, this would work, but I'm sure there must be a way of finding out which event is being handled.
    ...
  21. [2005] How to determine which event has triggered a handler

    Private Sub cboBuilding_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboBuilding.SelectedIndexChanged, cboBuilding.LostFocus

    End Sub

    What can I do in the above...
  22. Replies
    6
    Views
    829

    Re: Trace Events?

    Hi,

    The link appears to be dead. ntg are you able to supply an up-to-date link? Mike Hildner, did you ever get a solution to the problem? I want to do exactly what you were asking about.
  23. Re: [2005] leave instance set to Nothing on failure of constructor

    I guess that if your class is intended to be used by other programmers their expectation would be that instantiating an object would always be successful. So, Shaggy's approach is better than what...
  24. Re: [2005] leave instance set to Nothing on failure of constructor

    I wanted to do this because elsewhere in the code I test to see if the instance is Nothing to decide whether or not I'm going to do anything with it.

    Thanks stanav - I've implemented your solution...
  25. Replies
    2
    Views
    669

    Re: Field definition - bad syntax :(

    I'm not sure that you should have the single quotes (apostrophes) in the statement. What happens if you take them out?
  26. [2005] leave instance set to Nothing on failure of constructor

    How would I achieve setting an instance of one of my classes to Nothing if the constructor fails?


    Public Class MyClass

    Public Sub New( Parm As Integer )
    If Parm < 1 Then 'make...
  27. Re: find date of monday just past

    Having looked at robbedaya's code I realise that the "Mod 7" in mine is not necessary.
  28. Re: find date of monday just past

    Hope this helps?


    Option Explicit

    Private Sub Command1_Click()
    Dim dte As Date
    'dte = CDate("2007-08-01")
    dte = CDate(Date)
    Debug.Print "Today's date: " & CDate(dte)
  29. Re: Getting project/group information at runtime

    I've got half an answer to my own question:-

    Assuming that the .vbg file is in the same directory as the .vbp then I can use Dir("*.vbg") to get the name of the Group file and get the information...
  30. Getting project/group information at runtime

    I have a test harness project which I use to test a number of other projects. What I am looking for is a way of getting the task harness to discover, at run time, the name of the other project in the...
  31. Replies
    3
    Views
    459

    Re: Excel Macro

    Use this macro:


    Sub PopulateRows()

    Dim lngLoop As Long

    For lngLoop = 1 To 300 Step 4
    Cells(lngLoop + 0, 3).Value = "Michael"
    Cells(lngLoop + 1, 3).Value =...
  32. Replies
    3
    Views
    459

    Re: Excel Macro

    Are the rows already in a random order? If so then just cycle though the names, putting each one on every 4th line.
  33. Thread: MSComm woes

    by trisuglow
    Replies
    7
    Views
    6,041

    Re: MSComm woes

    Hi,

    I've been on holiday so I'm only just seeing this now. Did you start a new thread and get an answer from somebody else?

    The simplest way (in principle) is to open a DOS window and type COPY...
  34. Replies
    12
    Views
    1,392

    Re: Compare worksheets in Excel

    Replace "Debug.Print" with "Text1.Text = vbCrLf & Text1.Text & "

    Make sure that the Multiline property of the textbox is set to True.
  35. Replies
    12
    Views
    1,392

    Re: Compare worksheets in Excel

    I'm not sure if you're going with the VB app or Excel VBA?

    To put the results into a message box declare a string variable and add the miscompare text each time round

    strResults = strResults &...
  36. Replies
    12
    Views
    1,392

    Re: Compare worksheets in Excel

    The code is for a standalone VB application.

    You can use pretty much the same code in Excel VBA - just delete the objBook variables and you're almost there.
  37. Replies
    12
    Views
    1,392

    Re: Compare worksheets in Excel

    Like this:


    Dim objBook1 As Object
    Dim objBook2 As Object
    Dim lngRow As Long
    Dim lngColumn As Long

    Set objBook1 = GetObject("c:\Book1.xls")
    Set...
  38. Replies
    12
    Views
    1,392

    Re: Compare worksheets in Excel

    I've always done this manually and dragged the formula onto all the cells.

    Probably your best way to do this programatically is to have to Excel.Worksheet objects and compare the cell values one...
  39. Replies
    12
    Views
    1,392

    Re: Compare worksheets in Excel

    I've always done this by creating a 3rd worksheet and putting formulas into the cells as follows:

    =IF(Sheet1!$A$1<>Sheet2!$A$1,"Cell Mismatch","")

    You then search the 3rd worksheet for "Cell...
  40. Replies
    3
    Views
    448

    Re: Remove Field Constraint

    sp_help tblTableName

    is a good way of quickly seeing what constraints you have on tblTableName (along with some other useful information)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width