Search results

  1. Herry Markowitz

    How to prevent a TabItem from being selected?

    There is no TabControl.Selecting Event in the WPF while there is in the Winform as you can see following. https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx I have found following source in order to prevent a TabItem from being selected. https://joshsmithonwpf.wordpress.com...eing-selected/...
  2. Herry Markowitz

    Copy UIElement as Image to Clipboard

    I have got following C# code from this link. https://elegantcode.com/2010/12/09/wpf-copy-uielement-as-image-to-clipboard/ public static void CopyUIElementToClipboard(FrameworkElement element) { double width = element.ActualWidth; double height = element.ActualHeight...
  3. Herry Markowitz

    Do While Loop For xlApp Declaration

    I am wating 10 seconds before xlApp declaration because C:\Book1.xlsx is a very big file and takes long time to open. Process.Start("C:\Book1.xlsx") Threading.Thread.Sleep(10000) Dim xlApp As Excel.Application = Nothing xlApp = CType(GetObject(Nothing, "Excel.Application"), Excel.Application) I...
  4. Herry Markowitz

    Question xlApp = GetObject line error

    1.Ended all EXCEL.EXE processes from Windows Task Manager 2. Run following code. Process.Start("Excel.exe","/embedded ""C:\Book1.xlsx""") Threading.Thread.Sleep(5000) Dim xlApp As Excel.Application =Nothing xlApp =CType(GetObject("Excel.Application"), Excel.Application) 3. See following error...
  5. Herry Markowitz

    Question How to Verify That Strings Are in Valid E-Mail Format.

    Following link explains How to Verify That Strings Are in Valid E-Mail Format. The code in the following link very complicated for me to understand. https://msdn.microsoft.com/en-us/library/01escwtf(v=vs.100).aspx Could you please send me a file which is ready to use for Windows Form...
  6. Herry Markowitz

    Can not delete pst file because it is being used by another process!

    Hi experts, I can not delete file because it must be closed before deleted. So, how to close that file? Best regards.
  7. Herry Markowitz

    Html - Button Color Question!

    Hi beautiful people, Following code is okey. .htmlbody = _ "<html>" & _ "<body>" & _ "<table width=600 border=0 align=left cellspacing=0 cellpadding=0" & _ "<tr>" & _ "<td...
  8. Herry Markowitz

    Why you are not able to click Form1 Cross sign while code is running?

    Hi forummates, 1- Make Windows Form Application. 2- Put Button1 on Form1. 3- Run following code. Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click For i = 1 To 10000000000 i = i + 1 Next End Sub...
  9. Herry Markowitz

    How to prevent opening notepad.exe during my application is running?

    Hi beautiful people, My vbnet application runs 30 minutes to complete. I need a code which close notepad.exe if user try to open notepad.exe during 30 minutes (during my application is running.). So, I am trying to find a way to prevent opening notepad.exe during my application is running. Any...
  10. Herry Markowitz

    Code works whenever network connection ended!

    Hi, I got following code from here; https://msdn.microsoft.com/library/system.net.networkinformation.networkchange(v=vs.80)?cs-save-lang=1&cs-lang=vb Following code works like a charm. Imports System Imports System.Net Imports System.Net.NetworkInformation Public Class NetworkingExample...
  11. Herry Markowitz

    What is StartupNextInstance event?

    Hi experts, I have got following code from here VB.NET: Single Instance Application-VBForums. Namespace My Partial Friend Class MyApplication Private Sub MyApplication_StartupNextInstance(ByVal sender As Object, _ ByVal e As _...
  12. Herry Markowitz

    ListBox should be moved automatically?

    Hi experts, ListBox should be moved automatically... In order to understand my question please look at this picture. Thanks in advance.
  13. Herry Markowitz

    I want to stop Windows Search service...

    Hi people, I want to stop Windows Search service. There is a ServiceController tool in Visual Studio but I dont know how to use it... In order to understand what is Windows Search service is please follow following; Run>msconfig>Services>Windows Search Also look at this picture; Screenshot by...
  14. Herry Markowitz

    Error: Public Property Left As Integer has no parameters and its return type cannot..

    Hi forummates, How to solve this error? Screenshot by Lightshot Thanks in advance.
  15. Herry Markowitz

    Convert Console Application Code to Windows Form Application Code?

    Hi beautiful people, Following Console Application code checks if any antivirus program installed or not in your computer. Imports System.Management Namespace ConsoleApplication1 Class Program Public Shared Function AntivirusInstalled() As Boolean Dim wmipathstr As...
  16. Herry Markowitz

    Check if antivirus software is running with an acceptable status or not?

    Hi beautiful people, I need a vb.net code which checks if antivirus software is running with an acceptable status or not? Thanks in advance.
  17. Herry Markowitz

    How to destroy cross sign from MessageBox?

    Hi experts, How to destroy cross sign from MessageBox? Look at my question by clicking following link... Screenshot by Lightshot Best regards
  18. Herry Markowitz

    I need code which will reboot my modem?

    Hi beautiful people, I need a vb.net code which will reboot my modem? Any idea? By the way code in the following link doesnt work for me... http://www.vbdotnetforums.com/vb-net-general-discussion/57513-converting-vbscript-visual-basic-net-help.html
Top Bottom