Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Alan Burkhart

@Alan Burkhart
About
Posts
714
Topics
84
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WebView2 - Send Script with a Value
    A Alan Burkhart

    Thank you!

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    JavaScript tools career

  • WebView2 - Send Script with a Value
    A Alan Burkhart

    Could possibly contain quotes but no newline chars. I was trying to give my old spell checker a facelift. I wanted to use the WebView2 for the error text ("Not In Dictionary"). It's one line from the text editor with the error highlighted. So I'd need to send it the error start/end positions plus tell it to scroll to that position. All easily done if I could figure out how to send it a value in a variable.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    JavaScript tools career

  • WebView2 - Send Script with a Value
    A Alan Burkhart

    I'm using WebView2 to display data in my app. If I send a string literal it works fine. But if I send a value in a variable I get nothing. This works:

    wb.ExecuteScriptAsync("document.body.innerHTML=" & ChrW(39) & "HELLO" & ChrW(39))

    This doesn't ("lStr" is my string variable):

    wb.ExecuteScriptAsync("document.body.innerHTML=" & ChrW(39) & lStr & ChrW(39))

    I assume I'm doing something wrong here. Any advice is appreciated.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    JavaScript tools career

  • Historical Question
    A Alan Burkhart

    :thumbsup::thumbsup::thumbsup:

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge question data-structures career

  • Historical Question
    A Alan Burkhart

    Once I got my memory jogged I remembered it clearly. Where I was using it way back when (Houston, TX) it was green bar. But it's likely that it had other names, too.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge question data-structures career

  • Historical Question
    A Alan Burkhart

    :thumbsup::thumbsup::thumbsup:

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge question data-structures career

  • Historical Question
    A Alan Burkhart

    :thumbsup::thumbsup::thumbsup:

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge question data-structures career

  • Historical Question
    A Alan Burkhart

    Thank you! I was at least close with "green band." For me it was using a Wang OIS with that giant 4 megabyte hard drive.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge question data-structures career

  • Historical Question
    A Alan Burkhart

    Back in the 80s when we had noisy dot matrix printers with continuous paper feed from a stack on the floor... What was that green-striped paper called? Was it "green band?" When I Google it I get all manner of "green" products and political BS. I did find one picture of the paper but the blurb was about the printer not the paper. Anyone remember what it was called? I'm adding a couple of style options to a DataGridView and want to use the name of that paper for an option with alternating row colors. TIA. :)

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge question data-structures career

  • Bought an HP printer lately? You probably want to avoid like the plague
    A Alan Burkhart

    Good information. I'm about to go printer shopping myself. :)

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge sysadmin question

  • What is your C64?
    A Alan Burkhart

    Way back I had a TI 99-4A. Loved that little machine. Still have the BASIC programming guide as a keepsake. Also a TRS-80 Model 100 portable, which I guess was the first laptop computer. Worked on a gob of D batteries and had a big old 4 line / 40 column screen. It's in my closet and still works if I spend a fortune on batteries.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge question hardware learning

  • Using a custom renderer for toolstrip, but only first button is properly painted
    A Alan Burkhart

    I'm using ToolStripProfessionalRenderer to customize a toolstrip. The toolstrip buttons are generated programmatically as needed. The program starts with three buttons. I'm using a LinearGradientBrush to paint the ToolStripButtons, but only the first one (left) gets the gradient. Using the renderer is new to me, so I'm probably missing something obvious.

    Private Sub menuRndr_RenderButtonBackground _
    (sender As Object, e As ToolStripItemRenderEventArgs) _
    Handles Me.RenderButtonBackground
    Try
    If e.ToolStrip.Equals(main.tabs) Then
    Dim p As New Pen(Brushes.Black, 1)

    			Dim lgb As New LinearGradientBrush(e.Item.Bounds,
    											   Color.SteelBlue,
    											   Color.WhiteSmoke,
    											   LinearGradientMode.Vertical)
    
    			e.Graphics.FillRectangle(lgb, e.Item.Bounds)
    
    			e.Graphics.DrawRectangle(p,
    									 New Rectangle(New Point(e.Item.Bounds.Left, e.Item.Bounds.Top),
    												   New Size(e.Item.Bounds.Width, e.Item.Bounds.Height)))
    		End If
    		MyBase.OnRenderItemBackground(e)
    	Catch ex As Exception
    		MsgBox(ex.ToString)
    	End Try
    End Sub
    

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    Visual Basic graphics career

  • Microscopes: USB/HDMI
    A Alan Burkhart

    The 100x zoom was a deal breaker. I really appreciate the info. :)

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge com algorithms question learning

  • Microscopes: USB/HDMI
    A Alan Burkhart

    I'm entertaining a similar interest, for myself and 2 teenage grandsons. I haven't touched a microscope since the 70s but I'm wanting a new hobby for my declining elderly golden years. Main interest would be protozoa, grains of various minerals, etc that displays to my computer screen. This is the one I'm leaning toward buying: Click[^] Looks like a good one to my inexperienced eye but any opinions are appreciated.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge com algorithms question learning

  • Issue With JavaScript and ClearScript
    A Alan Burkhart

    Graham Breach wrote:

    and any other attributes it has

    I didn't realize that. Thank you. I was thinking in terms of the For Each loop in VB.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    JavaScript help javascript html com tools

  • Issue With JavaScript and ClearScript
    A Alan Burkhart

    I'm learning to script an application with ClearScript. My program is a tabbed text editor and the idea is to have access to all the open files via a List. For scripting, the program opens a separate window (so that the script is not part of the scriptable collection). Results are written to a second textbox. And there is where I discovered the problem. At present I'm just having the Javascript display the "FilePath" property of each item in the collection. This works fine with this script:

    parent.OutPut.Text="";
    var i;
    var y=0;
    for (i = 0; i < parent.OpenFiles.Count; i++) {
    y += 1
    parent.OutPut.Text += y + " " + parent.OpenFiles[i].FilePath + "\r\n";

    }
    parent.OutPut.Text += parent.OpenFiles.Count;

    I get the following correct result in the textbox: 1 C:\Users\Alan\Documents\Transfer\From Toshiba\Projects\alanburkhart.com\WikipediaCrimeData_RawText.txt 2 C:\Users\Alan\Documents\Transfer\From Toshiba\Projects\alanburkhart.com\conspiracytheory.html 3 C:\Users\Alan\Documents\Transfer\From Toshiba\Projects\alanburkhart.com\USConsSearch.html 4 C:\Users\Alan\Documents\Transfer\From Toshiba\Projects\alanburkhart.com\wordley.html 5 C:\Users\Alan\Documents\new 1.txt 6 C:\Users\Alan\Documents\10Comms.txt 7 C:\Users\Alan\Documents\testfile.txt 8 C:\Users\Alan\Documents\Transfer\From Toshiba\TestSpellChecker.txt 9 C:\Users\Alan\Documents\Projects\NetPadd2 Help Files\AdntlRsc.html 10 C:\Users\Alan\Documents\Projects\NetPadd2 Help Files\intro.html 11 C:\Users\Alan\Documents\ForLoop.js 12 untitled_2.txt 13 C:\Users\Alan\Documents\ForEach.js 13 ("13" is the number of items in the collection.) However, if I use this script:

    parent.OutPut.Text="";
    var x;
    var i=0
    for (x in parent.OpenFiles) {
    i+=1
    parent.OutPut.Text += i + " " + parent.OpenFiles[x].FilePath + "\r\n";}
    parent.OutPut.Text += parent.OpenFiles.Count;

    I get the following result: 1 C:\Users\Alan\Documents\Transfer\From Toshiba\Projects\alanburkhart.com\WikipediaCrimeData_RawText.txt 2 C:\Users\Alan\Documents\Transfer\From Toshiba\Projects\alanburkhart.com\conspiracytheory.html 3 C:\Users\Alan\Documents\Transfer\From Toshiba\Projects\alanburkhart.com\USConsSearch.html 4 C:\Users\Alan\Documents\Transfer\From Toshiba\Projects\alanburkhart.com\wordley.html 5 C:\Users\Alan\Documents\new 1.txt 6 C:\Users\Alan\Documents\10Comms.txt 7 C:\Users\Alan\Documents\testfile.txt 8 C:\Users\Alan\Documents\Transfer\From Toshiba\TestSpellChecker.txt 9 C:\

    JavaScript help javascript html com tools

  • Someone help me choose which to learn first, can't and lost
    A Alan Burkhart

    John Simmons / outlaw programmer wrote:

    I recommend that ALL programmers learn Assembly language first,

    Back in the 80s I tried my hand at assembly. At the time my only programming experience was with TI Basic on a little home computer. After a few days (daze) I finally managed to put a 8x8 colored square on the TV screen. That was the end of my "career" with assembly. :-D

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    The Lounge python php html css help

  • Ellipsis In Title Bar Of Window?
    A Alan Burkhart

    I use .Trim a lot but never thought about needing it for the title bar of a form. Still curious about how it happened but I doubt I'll ever know.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    .NET (Core and Framework) javascript visual-studio com design question

  • Ellipsis In Title Bar Of Window?
    A Alan Burkhart

    Yep. We finally figured that out. Thing is it was filled with spaces past the text. No clue how that happened.

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    .NET (Core and Framework) javascript visual-studio com design question

  • Ellipsis In Title Bar Of Window?
    A Alan Burkhart

    Richard MacCutchan wrote:

    lots of spaces following the text

    OK, where the heck did all the spaces come from? Never encountered that before. Thank you! :-D

    Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.

    .NET (Core and Framework) javascript visual-studio com design question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups