Recent content by Herry Markowitz

  1. Herry Markowitz

    How to prevent a TabItem from being selected?

    Solved by myself. Class MainWindow PublicSubNew() InitializeComponent() Me.tab.ItemsSource=NewString(){"A","B","C"} AddHandler tab.SelectionChanged,AddressOfOnTabItemSelecting EndSub PrivateSubOnTabItemSelecting(ByVal sender AsObject,ByVal e...
  2. Herry Markowitz

    How to prevent a TabItem from being selected?

    You know what, one day I will come back here with correct code;) Wait me here ;)
  3. Herry Markowitz

    How to prevent a TabItem from being selected?

    Hi jmcilhinney, If you still interested in this issue I think you are going to help me :love_heart:
  4. Herry Markowitz

    How to prevent a TabItem from being selected?

    Hi JohnH. I am very fresh in vb.net programming. So, I need completed code which is ready to run. So, please post whole code.
  5. 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/...
  6. Herry Markowitz

    Copy UIElement as Image to Clipboard

    Is this correct? Class MainWindow Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click Dim element As New FrameworkElement Dim width As Double = element.ActualWidth Dim height As Double =...
  7. Herry Markowitz

    Copy UIElement as Image to Clipboard

    Is this correct? Class MainWindow Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click Call CopyUIElementToClipboard() End Sub Public Shared Sub CopyUIElementToClipboard(element As FrameworkElement)...
  8. 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...
  9. Herry Markowitz

    Question xlApp = GetObject line error

    I have tried all of them but there is no solution.
  10. Herry Markowitz

    Do While Loop For xlApp Declaration

    Because I want to open excel file in Safe Mode. Process.Start("Excel.exe", "/safemode ""C:\Book1.xlsx""")
  11. 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...
  12. 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...
  13. Herry Markowitz

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

    Thanks JohnH, But I really dont understand how to run it. Could you please send me a file which is ready to use for Windows Form Application with Form Load Event or Button Click Event.
  14. 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...
  15. Herry Markowitz

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

    Solved. c# - PST file in use after delete - Stack Overflow
Top Bottom