dcsimg

Search:

Type: Posts; User: JuggaloBrotha

Page 1 of 13 1 2 3 4

Search: Search took 3.30 seconds.

  1. Replies
    12
    Views
    484

    Re: T-SQL RegEx problem

    Honestly I think you'd be better off making a .Net sql function that accepts 2 strings and returns a boolean for whether it contains the regex pattern and attaching the dll to your server, then just...
  2. Re: How i generate unique id ?

    Here's a quick and dirty class I came up with that generates id's:Option Explicit On
    Option Strict On
    Option Infer Off

    Public Class GenerateID

    Private m_Characters As String
    Private...
  3. Re: How i generate unique id ?

    Given what Shaggy was suggesting, how would you begin to accomplish this?
    I'll help with a list of steps suggested:
    1. Load letters & numbers into a list (I would suggest a List(Of String) )
    2....
  4. Replies
    20
    Views
    708

    Re: Run on older .net

    20 comments later and I just now realized we've all been focusing on what Framework(s) he should target to get the maximum probability of his program being able to run on end machines, but we don't...
  5. Replies
    20
    Views
    708

    Re: Run on older .net

    The biggest issue I'm seeing with his posts is he's got too wide of a range of machine and framework versions to support.
    Really what it comes down to is there are 2 categories going on here, the...
  6. Replies
    20
    Views
    708

    Re: Run on older .net

    The 4.0 Framework goes back to WinXP, which covers any PC made 2002 and newer.
  7. Replies
    4
    Views
    339

    Re: Creating Folders

    Also, why are you using the root of the C:?
    Would be better to either use the user's profile Path.GetTempPath() (which maps to %AppData%\Local\Temp) or if it's a file that should be shared between...
  8. Re: Compact and Repair Access Database using C# ?

    I've done this with vb.net (easily can do it in C#):
    Dim jro As New JRO.JetEngine
    jro.CompactDatabase(SourceConnString, DestConnString)

    You have to import the Interop.JRO.dll in your project, no...
  9. Re: Compact and Repair Access Database using C# ?

    I've done this with vb.net (easily can do it in C#):
    Dim jro As New JRO.JetEngine
    jro.CompactDatabase(SourceConnString, DestConnString)

    You have to import the Interop.JRO.dll in your project, no...
  10. Replies
    4
    Views
    377

    VS 2017 Re: Scan files and folders

    Check out the FileSystemWatcher Class (System.IO) | Microsoft Docs
  11. Replies
    21
    Views
    1,282

    Re: Printing help

    I don't see anything to do with printing in your code here, can you post the code you have so we can help troubleshoot it?
  12. Replies
    9
    Views
    591

    Re: Run cmd.exe and execute command

    From what I can see with the ProcessStartInfo class you'll want to call cmd.exe as the FileName, whatever args you need in the Arguments property, and to have it request elevated rights (runas admin)...
  13. Replies
    21
    Views
    1,282

    Re: Printing help

    Might want to check out a tutorial: An Absolute Beginner's Guide to Printing in .NET - CodeProject
  14. Re: How to make a Windows Forms app run in the background.

    You'll want to use the BackgroundWorker component, have the report generating code happen in the DoWork() event and after you gather the criteria on the form you simply store it in variables and call...
  15. Replies
    1
    Views
    1,170

    PHP User Warning

    Whenever I reply to a thread I'm getting this error message:
    168387

    My reply still shows up in the thread just fine, but I still see those messages which reads:
    PHP User Warning:...
  16. VS 2019 Re: Visual Basic ... trouble with writing to a file

    That's because you put this into your project that you shouldn't have:Namespace My
    Friend Class Computer
    Public Shared Property FileSystem As Object
    End Class
    End NamespaceIf you...
  17. Replies
    7
    Views
    429

    Re: Problem read extension files

    I was suggesting this:
    For Each fullpath As String In IO.Directory.GetFiles(MyFolderPath)Becomes this:For Each fullpath As String In IO.Directory.GetFiles(MyFolderPath, TextBox2.Text)
  18. Replies
    7
    Views
    429

    Re: Problem read extension files

    Actually your code doesn't traverse subfolders either, handling subfolders is easily do-able and you would usually use a sub routine that makes a recursive call for each subfolder found and I don't...
  19. Replies
    7
    Views
    429

    Re: Problem read extension files

    First thing I see is this line:'iterate through all files in the MyFolderPath
    For Each fullpath As String In IO.Directory.GetFiles(MyFolderPath)You're not using the "text to find" textbox value for...
  20. Replies
    5
    Views
    709

    Re: Using a new TTF (not installed)

    If you use an installer (MSI installer from Microsoft or something else that's free like Inno) allows you to include font(s) to install as part of the install process.
    You can include font(s) that...
  21. Re: [RESOLVED] Opening a file when having partial name and the extension

    How where you having trouble inserting into the database?

    For the record, reading a csv file to insert the rows into the database or scanning the hard drive and inserting the records directly will...
  22. Re: [RESOLVED] Opening a file when having partial name and the extension

    Or have the same process that makes that csv file interact with the database directly.
  23. Re: Opening a file when having partial name and the extension

    Scanning file names on the system is notoriously slow, though with SSD drives the speeds are vastly improved but don't expect those drives to be used in servers.
    That being said I can think of three...
  24. VS 2015 Re: Removing an object from a form

    Every container (forms, panels, groupboxes, etc) all have a Controls collection, simply remove it from the collection and it's not part of the form. Personally I would remove it from the collection...
  25. Replies
    25
    Views
    1,542

    Poll: Re: Which way is yours?

    I do this often enough I've gotten used to seeing it.
    It comes in handy when I have a series of functions that each return a Boolean, this allows them to run through till it finds the one that...
  26. Replies
    25
    Views
    1,542

    Poll: Re: Which way is yours?

    I vote #8 (needs to be added):

    Select Case True
    Case c
    i += 1
    End Select
  27. Re: Help Needed modifying a small Windows Sales Tax calculator app

    Honestly this is just a couple of calculations, should be pretty easy to remake this and have the new program have a spot where you can enter the sales tax percent.
    I could probably make a .Net app...
  28. Re: Change Exe Icon Dynamically - "Me is not valid within a module"

    Short and simple all you really need is an ApplicationContext and NotifyIcon. I have my project set to run as a "Windows Forms Application" and it's set to use "Sub Main" as the Startup...
  29. Replies
    4
    Views
    425

    VS 2017 Re: Filepath

    If they are part of the project, you could use the SolutionExplorer window inside visual studio to move them to a new folder inside the project and VS will physically move them in the windows folder...
  30. Re: Change Exe Icon Dynamically - "Me is not valid within a module"

    Sounds like what you're really after is a console program that when ran will display an icon in the system tray (NotificationIcon) that will display either the RightHandIcon or LeftHandIcon based on...
  31. Re: Change Exe Icon Dynamically - "Me is not valid within a module"

    That icon is only set when compiled, so you would have to write a program that would compile your console program on the fly to dynamically change the icon, that means you would have to deploy the...
  32. Replies
    1
    Views
    473

    VS 2012 Re: PGP Encryption

    I remember 5 or 6 years ago they added commandline support to their desktop encryption program, you should be able to invoke it and pass it the parameters needed to encrypt or decrypt file(s).
  33. Replies
    127
    Views
    6,193

    Re: Windows 10 fixed

    I've had similar, not Win10 forcing a reboot when I'm in the middle of using it (I have the active hours set) though.

    We connect to our work computers remotely using LogMeIn, so our work systems...
  34. Replies
    3
    Views
    556

    Re: If a second screen isn't there

    Personally I would have the code set to do something if there is a 2nd (or more) monitors or do something else if there's only the 1 monitorIf Screen.AllScreens.Count = 1 Then
    'Do something if...
  35. VS 2015 Re: Open folder as a solution in Visual Studio

    What you've been handed is called a "website" which is a type of VS project where there is no solution (.sln) or project (.vbproj) files, what you need to do is open Visual Studio and click File ->...
  36. Re: Should Google be regulated by the government?

    I don't think Google should be regulated unless Amazon, Apple, & Microsoft are all equally regulated too.
    Also as an American our President Trump is an abomination who should never have been allowed...
  37. Replies
    11
    Views
    1,165

    Re: Removing duplicates

    What database system are you using?

    In Sql Server and Amazon Redshift you can use Row_Number Over (Partition By <field(s)> Order By <field(s)>) then use the Where clause to filter by that row...
  38. Re: I want to use a Function inside a sub, how is this done?

    Google
  39. Re: I want to use a Function inside a sub, how is this done?

    You could run it as a Scheduled Task to fire every so often, could have it run at Windows Startup via the Windows Registry, or you could install it as a Service with startup with the OS.
  40. Re: Error: "Access to path 'xxx' is denied" when trying to end process from VB.Net

    If you had read the documentation you would know why that wouldn't work. You get an instance of the process first, then call it's Kill() function (hint there's no arguments passed in there either).
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width