Search:
Type: Posts; User: .paul.
Search:
Search took 0.33 seconds.
-
The Add Scan button… Do you upload an image there? It’d be easiest to rename the file ‘YYYYMMDD.jpg’ when uploading
-
https://stackoverflow.com/questions/59800375/how-to-set-the-text-of-a-textbox-to-a-default-value/59803179#59803179
-
Private Const EM_SETCUEBANNER As Integer = &H1501
<DllImport("user32.dll", CharSet:=CharSet.Auto, SetLastError:=True)>
Private Function SendMessage(ByVal hWnd As IntPtr, ByVal msg As Integer,...
-
Or, put a watermark on the blank textbox requesting input as YYYYMMDD. If the user enters the correct format, no problem. But it’s still iffy :D
-
Use a date time picker instead of a textbox. No need to ascertain the date format…
-
A grade calculator is a common programming homework assignment.
You do realise you’ve just revived a three year old thread?
-
Winforms isn’t your best choice for intensive graphical games. That’s the point…
-
You can fool the human eye with 20FPS. Why do you need more?
-
Right click on the project in solution explorer, then select Rebuild
-
As jmcilhinney told you, numbers are numbers and text is text, however much it looks like a number on your screen.
If you try Button1.Text = “20” + “5” what do you get??? You’d expect “25”, but...
-
I have an app, with an animated form that remembers its last location. I’ve had times when the compiled app config file has been corrupted and replaced with default values, resulting in the form...
-
Try this
For i As Integer = 0 To ((bmpData.Stride * bmpData.Height) / 4) - 1
To convert to integer, as the error says
For i As Integer = 0 To CInt((bmpData.Stride * bmpData.Height) / 4)...
-
In 2009, it was the best i could find :D
I understood what the algorithm did, but the kludgy way it did it was what stopped me trying to rewrite it...
-
Something like this?
Dim rx As New Regex
If rx.IsMatch(TextBox1.Text, ?^[a-z0-9]+\@gmail\.com$?, RegexOptions.IgnoreCase) Then
?Email address found
End If
Edit: The question marks in...
-
From several seconds to less than 1/5th of a second, in a top-level language is quite an achievement though
-
Good idea with the codebank entry. I didn't, and still don't understand the 4 way recursive algorithm :D Which is why i asked an expert when i saw the opportunity :D
-
This site is still buggy. Changing punctuation characters in my text input
Edit: Site problem reported to admin
-
I will implement it, when I get round to having another look at my paint app. I know you?re right about the time savings. That was one of the issues that made me limit the size of images in my paint...
-
I didn't time it. Just judging by eye with that simple image (post #31). In a real graphics app, with less regular shapes to fill, i'm sure it'll perform much better than the code i was using...
-
I fixed one bug (first line of code in FloodFill5)
Running the 2 methods side by side on a very simple image, there doesn't appear to be much difference?
Anyway, thanks Niya. I've uploaded the...
-
Ok thanks. This is the slow code. It takes a few seconds rather than milliseconds, and the images i was using aren't large images...
#Region "UnsafeFloodFill"
' Flood the area at this...
-
@Niya
Using this method, how could i create an MSPaint-like floodfill feature? I have an existing method, that radiates out from the clicked pixel that i found on the www a long time ago. The code...
-
The standard TextBox has a MultiLines Property that is False by default
-
In VB.Net?
Short=Int16
Integer=Int32
Long=Int64
-
Basically, where in vb6 you used Long is now Integer, Integer is now Short, Type is now Structure, Byte remains Byte
-
Private Const BI_RGB As Integer = 0
Private Const CBM_INIT As Integer = &H4
Private Const DIB_RGB_COLORS As Integer = 0
Private Structure BITMAP '14 bytes
bmType As Integer
bmWidth As...
-
Sounds like you're using a .Net Core application. That's a specialised type of project. Did you intend to use .Net Core?
-
I don't think you can cast it. While searching, i saw something about creating a new MailItem from an object. Not sure if you can do that with a DataObject
-
You can find some helpful information here…
https://learn.microsoft.com/en-us/dotnet/api/microsoft.office.interop.outlook.mailitem?view=outlook-pia
-
Regex was around in classic vb times. That’s where I first learned Regex…
-
You could use similar methods in modern VB, but different syntax
-
You might’ve found a working solution, but you’re using classic vb functions. Also, you should be warned, the html you’re retrieving may not forever be in the format it is now…
-
Try this...
Private Sub Panel1_Paint(sender As Object, e As PaintEventArgs) Handles Panel1.Paint
Dim Image = New Bitmap(Panel1.ClientSize.Width, Panel1.ClientSize.Height)
Using g =...
-
Regex.Replace(s, "(\+\d{2})", "$1" & " ", RegexOptions.Multiline)
$1 is the highlighted group
-
You realise, the phrase is…
The Quick Brown Fox Jumps Over the Lazy Dog???
-
I think the question is... If you create a DataTable in a Button_Click handler, will the data stay where you've set a DataSource?
Scope is scope, for any Variable or Object. If you need the Variable...
-
The Code Bank is not here for coding questions. You should ask your question in the VB General forum...
-
It had a future 30 years ago…:D
-
If you use a DataGridView, DataTable, DataAdaptor and a CommandBuilder, you don’t have to handle your Add/Update/Delete commands. It can all be done with a few lines of code…
-
To resize...
Dim img As BitMap = 'your Form image
Dim img2 As New BitMap(img, newWidth, newHeight)
|
Click Here to Expand Forum to Full Width
|