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 SkipVought 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: *

  1. JFoushee

    Constructor must be declared as a Sub, not as a Function

    Found a concept called a class factory: http://www.java2s.com/Code/CSharp/Language-Basics/Useaclassfactory.htm This will be good enough.
  2. JFoushee

    Constructor must be declared as a Sub, not as a Function

    Re-reading the post, it might be saying, "this is not possible regardless using 'New' or some other method." I can't tell.
  3. JFoushee

    Constructor must be declared as a Sub, not as a Function

    Re-reading the post, it might be saying, "this is not possible." I can't tell.
  4. JFoushee

    Constructor must be declared as a Sub, not as a Function

    Thanks for validating the error message. :) Now, is there a way to perform the action I described? I want to be able to simplify to the following statement: dgvRow.Cells.Add(New myDGVTextbox("hi", dgvRowBackcolor)) The first parameter in the example above is cell-text, and the second...
  5. JFoushee

    Constructor must be declared as a Sub, not as a Function

    Hi... I use a lot of DataGridViewTextBoxCells. I'm trying to build a "DataGridViewTextBoxCell" class to simplify the following code: Dim dgvRow As New DataGridViewRow dgvCell = New DataGridViewTextBoxCell() With dgvCell .Value = "hi" : .Style.BackColor = dgvRowBackcolor ...
  6. JFoushee

    Mimicking an Anchor or Dock property with Form object

    (Explitive)! I didn't think to review Intellisense for this... All I was going on was Solution Explorer properties, and assumed no Dock property was available. Thanks!
  7. JFoushee

    Mimicking an Anchor or Dock property with Form object

    Hi. I've got in-line forms instantiated within docked tabpage controls. What is the easiest way to get the in-line forms to resize with the main app? I'd like to avoid the form's "resize" event, as the math never seems to add up. ___________________________ Example scenario: Create a New...
  8. JFoushee

    What .NET component is this (as seen in SQL Server install)?

    Ok, thanks! I wasn't aware it was that simple. I'll check it out.
  9. JFoushee

    What .NET component is this (as seen in SQL Server install)?

    I watched an install of SQL Server 2005... As it ran through requirements, a grid populated with results. Each row contained a green-checkbox or red-X image in one column, some short text in the next, and truncated hyperlink text in the next. Clicking on the hyperlink in the third column, a...
  10. JFoushee

    Enumerate the digital signatures of a file?

    Hi, anyone know of code or a VB.NET class that could read the digital signatures placed upon a file? For instance, I right click an MS Exchange file, and see the "Digital Signatures" tab. Inside, the signature list shows "Microsoft Corporation" as the signer.
  11. JFoushee

    Column lookup getting in way

    Nevermind, I did this: SELECT ... PositionID + 0
  12. JFoushee

    Column lookup getting in way

    Hi... building a query to demonstrate orphaned/missing records. In this case, all employees should be assigned an active position. So I have a query that will show all employees who have bogus (missing) positions.... SELECT PersonnelID, Name, PositionID FROM tblPersonnel WHERE PositionID NOT...
  13. JFoushee

    Quotes or no quotes while shelling?

    Is there some OS option that determines use/non-use of quotes when shelling out? I have a job class that includes two parameters Shell_Command (the path of .exe) and Shell_Parameters... Public Class clsJob Public Sub sub_Run_Job_Now() Dim strCommand As String = RTrim("""" &...
  14. JFoushee

    "Generic Error Occurred in GDI+" on Systray icon

    The fact it lasted through the night is proof enough for me. Thanks!
  15. JFoushee

    "Generic Error Occurred in GDI+" on Systray icon

    I wasn't aware I could build constants using functions! Module modGlobals Class Globals Private Shared m_imgPgmIconStarted As Icon = ImageToIcon(frmIcons.imgPgmStarted.Image) Private Shared m_imgPgmIconStarted2 As Icon = ImageToIcon(frmIcons.imgPgmStarted2.Image)...
  16. JFoushee

    "Generic Error Occurred in GDI+" on Systray icon

    Thanks... I decided to build a form and load the images on it. Private Sub tmrSystrayIcon_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) 'as long as program is enabled If Me.chkSchedulerEnabled.Checked = True Then If Now.Second Mod 5 = 0 Then...
  17. JFoushee

    "Generic Error Occurred in GDI+" on Systray icon

    Hi. I've got an app that uses a Systray icon. I have the icon doing an 'animation' every five seconds to indicate program is still running. Icons are stored in a Forms.Imagelist collection (imglSystrayIcons). I have a form timer to swap out the icons: Private Sub tmrSystrayIcon_Tick(ByVal...
  18. JFoushee

    Scrollable form container for optional fields

    Now I know, and knowing is half the battle.
  19. JFoushee

    Scrollable form container for optional fields

    Hi. I have a form where 6 fields are required, and some-20 are optional. Rather than have one giant form, I'd like a scrollable container that houses the optional fields. It would look something like this ASCII-art: Required fields: _______________________ Name...
  20. JFoushee

    Hiding a form initialized by Sub Main()

    Thanks, everyone.. I need some pre-work done before a GUI is presented, but I need the flexibility of hiding/showing as necessary.

Part and Inventory Search

Back
Top