Search:

Type: Posts; User: pourkascheff

Page 1 of 9 1 2 3 4

Search: Search took 0.12 seconds.

  1. Play Sound Using Windows Media Player

    dday9 - Originally posted a question here: https://www.vbforums.com/showthread.php?835561, moved post to the non-codebank forum.

    Hi. Thanks for snippet but this way only works with existing files...
  2. Re: VB - Play multiple wav files at the same time.

    I see, despite my basic math is awful. What should we do you say? I need to implement similar goal in an already complex piece of code which performs some communication things, database magics,...
  3. Re: VB - Play multiple wav files at the same time.

    Well, Hi, Sorry for replying here. Is it available for latest versions of VB.NET? If so, How to achieve a similar approach? I was asking here and looking around the web, No results were found...
  4. Re: How to threading a couple of SoundPlayers to play synchronously?

    The latter has its own difficulties like feeding a My.Resources.AnyWaveFile to a NAudio.Wave.AudioFileReader(...) which should be a stream. Or instead of WaveMixerStream(), WaveMixerStream32() should...
  5. Re: How to threading a couple of SoundPlayers to play synchronously?

    First thing: "Simultaneously" would be a proper word for this matter. Or not even a threading (as we're familiar with it) related thread.
    Secondly, since contribution rate on this thread was...
  6. Re: How to threading a couple of SoundPlayers to play synchronously?

    As a tangible visual example,

    Following image shows first way which in-app other sounds will replaced/play with the sound that is playing.
    189673

    But following image shows what I'm looking...
  7. How to threading a couple of SoundPlayers to play synchronously?

    Hi all o7.
    Consider a timer to perform

    My.Computer.Audio.Play(My.Resources.Test, AudioPlayMode.Background)

    A 500ms timer and 1000ms audio file will lead to cutting audio file and startover....
  8. Re: Binding Keywords/General Questions ADO.NET

    EXACTLY!
    It isn't just a .Save() or .Update() or .AcceptChanges() to achieve that. It's more than that and depends on the way we choosed.

    My intention by "keywords" is someone explain to me the...
  9. Re: Binding Keywords/General Questions ADO.NET

    Long time no see sir, glad to see your reply first.
    It looks a bit confusing and vague at first sight. You also said this solution here for saving settings of specific control values within a series...
  10. Binding Keywords/General Questions ADO.NET

    Hi all o7.

    I'm new to binding thing and have already watched few videos but they were all SQL based. I am using ADO.NET for its simplicity and being default on Visual Studio, Not an internet...
  11. Re: List of a specific control to work with in many events (How to declare?)

    wow, thanks for quick response.

    - What's the differences between ToList() and ToArray()? If I'd be in trouble in near future, I rather to know it now. I personally prefer tolist since ".count" is...
  12. [RESOLVED] List of a specific control to work with in many events (How to declare?)

    Hi all, o7
    Currently I'm using green line in every single event:

    Private Sub BtnAll_Click_1(sender As Object, e As EventArgs) Handles BtnAll.Click
    Dim SelectedUC As UC() =...
  13. Re: A date variable refuses to get today

    Warm appreciation for those tips. Where can I find newer .NET things? Yes, I'm a 90's kid, I used to VB6 as slang it might change my programming skills dramatically. Thanks in advance.
  14. Re: A date variable refuses to get today

    Well, thanks for good points. I even tried formating .ToString("MM/dd/yyyy") but it turned out the problem was the order or msgbox being prior to making yesterday equal to today. Instruction line...
  15. [RESOLVED] A date variable refuses to get today

    Hi all o7. How is the correct way to update a date variable?

    Following code does a cycle every seconds (lots of things happen here which are commented for now) in 24th hour of the day, yesterday ≠...
  16. Re: Opacity increase slowly works but form is empty before it reaches max

    Perfect, thanks.
  17. Re: Opacity increase slowly works but form is empty before it reaches max

    Temporary worked out with a "Timer" as follows:

    Private Sub FADEIN_Tick(sender As Object, e As EventArgs) Handles FADEIN.Tick
    If Me.Opacity < 0.9 Then
    Me.Opacity += 0.01...
  18. [RESOLVED] Opacity increase slowly works but form is empty before it reaches max

    Hi all o7
    Consider following code to achieve a sort of fade-in effect:

    Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
    Me.Invoke(Sub()
    ...
  19. Replies
    4
    Views
    1,123

    Re: Problem with My.Settings (project)

    Absolutely. I don't even use

    My.Settings.Save()
    or reload, or whatever in code.

    It is assumed that linking them manually through application property, assigned to controls values will do the...
  20. Re: Any dim overlay on a form ideas?

    I came up with this idea

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
    While Me.Opacity > 0.5
    Me.Opacity -= 0.00001
    End While...
  21. VS 2022 Re: Music Keyboard USB interface MIDI software template

    Hi photonbytes (like your username)

    MIDI monitoring/listening approaches can be achieved via SerialPort control. I'm not a USB fan since they are a bit complicated in endpoints and commissioning...
  22. Replies
    4
    Views
    1,123

    Re: Problem with My.Settings (project)

    Can someone at least redirect me to somewhere which Dos and don'ts related to Settings and Bindings are covered? I did them experimentally and didn't pay any attentions to its instruction manual.
  23. [RESOLVED] Any dim overlay on a form ideas?

    Hi all o7
    The idea is when you are about to terminate using the app, some sort of dark overlay covers all the background and a dialog or maybe a control (latter one would be tricky) appears. Fade...
  24. Replies
    4
    Views
    1,123

    Problem with My.Settings (project)

    Settings were intended to be an easy to use feature. I was OK with it, until recent project:
    If you find this thread duplicated or similar to a resolved one, Please let me know.

    As always
    1) Few...
  25. Replies
    3
    Views
    1,224

    VS 2010 Re: Copy a Chart

    May dusts be removed from this thread. My approach achieved an answer here if you still have any troubles implementing this idea. If you don't, we glad to take a look to your idea. Don't forget to...
  26. VS 2012 Re: Copying a chart series to another

    "Eureka". That was easy and in a loop behavior as I mentioned in starting topic, but since I used to show things more complicated than they need to be, I wrote down the idea in DevExpress 3rd party...
  27. VS 2012 Re: Copying a chart series to another

    Hello again after a long absence, some lads here in another thread, asked for a same thing in 2011 but no results were also achieved.

    Does chart control have a sort of conventional "datasource"...
  28. Re: Get CPU id (Machine number) without any late bindings (Option strict = On)

    It worked just fine, I only changed the code to


    Imports System.Management
    Public Class Form2
    Private mosObj As New ManagementObjectSearcher("select * from Win32_Processor")
    Private...
  29. [RESOLVED] Get CPU id (Machine number) without any late bindings (Option strict = On)

    The idea which is easily found all over the internet is as follows:

    Private Function CpuId() As String
    Dim computer As String = "."
    Dim wmi As Object = GetObject("winmgmts:" &...
  30. Re: Referring to a control which created programmatically

    Sorry, not intended to do such thing.


    Nah mate, getcontrolfromposition is useful when you are about to change something in a specific coordinate. But thanks for directcast anyways.
  31. Re: Referring to a control which created programmatically

    Thanks a lot, I also learned .Find here.

    Consider you're arranging a huge matrix in TLP and you want to do things with its members (controls) they could be UserControl and .Visible was just an...
  32. [RESOLVED] Referring to a control which created programmatically

    Consider you've created a control inside a form as follows:

    Me.Controls.Add(New Label With {.Name = "Label1"})
    How can I access it right after creation line accordingly?

    Label1.Visible = True...
  33. Replies
    4
    Views
    1,232

    Re: A monitoring software idea

    Indeed. Since the master node (PC) is using MOXA PCI 8 COM ports and also different baud rates with various handshake/parity configuration. So I rather remain faithful to previous hardware...
  34. Replies
    4
    Views
    1,232

    Re: A monitoring software idea

    Well, As an update, I only find out that this is called SCADA (Supervisory control and data acquisition) which lots of industrial first class companies (Like Siemens and Omron) introduced their own...
  35. Re: Boolean setting on a checkbox, How it performs checked event?

    Oh, good old "function"ing way and older "toggling twice" friends. Thanks to you two. These are my final solutions in case no more standard ways were available out there.
  36. Re: Boolean setting on a checkbox, How it performs checked event?

    Of course.
    1) Consider following form:
    188354

    2) Already made a boolean setting:
    188353

    2) Made sure that setting is linked to "checked" property of a checkbox:
    188352
  37. [RESOLVED] Boolean setting on a checkbox, How it performs checked event?

    Consider there's a boolean setting called "unit" which true = imperial and false = metric, already set on a checkbox ApplicationSettings: checked property.

    The app follows its value once app runs....
  38. Replies
    5
    Views
    929

    Re: Should I use "Invoke" for this goal?

    May I also draw your attention to this part, partially?
  39. Replies
    5
    Views
    929

    Re: Should I use "Invoke" for this goal?

    I immediately regretted my decision. By constructor you mean


    Public Class MYUSERCONTROL
    Public Sub New()
    Me.InitializeComponent()
    End Sub

    Private Sub...
  40. Replies
    5
    Views
    929

    Re: Should I use "Invoke" for this goal?

    Thanks .paul. so the order would be constructor, load, shown right? What about user controls? They do not have such event. Plus, my problem seems a synchronous %CPU high load thing how can I overcome...
Results 1 to 40 of 357
Page 1 of 9 1 2 3 4



Click Here to Expand Forum to Full Width