Search results for query: *

  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
  16. 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.
  17. Herry Markowitz

    Html - Button Color Question!

    Solved. <!DOCTYPE html><html> <body> <table style="width:100%"> <tr> <td bgcolor= " & Button9.BackColor.Name & ">Jill</td> <td>Smith</td> <td>50</td> </tr> </table> </body> </html>
  18. Herry Markowitz

    Html - Button Color Question!

    No css.. You have a button in the your project and you want to get that button color... That is the simple question...
  19. Herry Markowitz

    Html - Button Color Question!

    Hi John, Following code is okey. <!DOCTYPE html><html> <body> <table style="width:100%"> <tr> <td bgcolor=Blue>Jill</td> <td>Smith</td> <td>50</td> </tr> </table> </body> </html> Following code is not okey. Do you know why? <!DOCTYPE html><html> <body> <table...
  20. 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...
Back
Top