Search:
Type: Posts; User: Toph
Search:
Search took 0.07 seconds.
-
Try
Process.Start("notepad")
-
OP read up on Backus Naur Form. It's how language/syntax is defined in computing language. Have a look at that and see if that helps.
-
Last time we spoke, you didn't specially point out my regex exp. You just pointed out how the Regex Exp I wrote wouldn't be suited for matching Ipv6 addresses, whereas the Reg exp only matched Ipv4....
-
Public Class Form1
Private _ingredentsList As New Dictionary(Of String, Measurement)
Private Structure Measurement
Public Property Unit As String
Public Property...
-
I told him how to use it in the beginning.
http://prntscr.com/7j9apo
-
I showed OP how to use the function with a demonstration. Is not my fault he doesn't know how a function works and I've helped enough. I'm sure vbforums is not a spoonfeeding club. Is good to...
-
A function returns a value, that's it's sole purpose.
So, this function.
Private Function GetUnderscoreCount(lstBox As ListBox) As Integer
Return (From item In ListBox1.Items...
-
What do you mean I'm not trying to help? I've literally spent my time coding a working solution for you. I even told you how to make it work. What else do you want me to do?
I believe in helping...
-
Read and learn how a function works but this is the core basics of programming. Learn how it works and apply it here.
-
Label3.Text = GetUnderscoreCount(ListBox1)
-
Private Function GetUnderscoreCount(lstBox As ListBox) As Integer
Return (From item In lstBox.Items Where item.ToString().Contains("_")).Count()
End Function
Just pass the list box...
-
No problem :), I knew you'd work something out
-
VALUES (@p1,@p2,@p3,@p4,@p5,@p6,@p7,@p8,@p9,@p10);"
-
Oops, add @p1, @p2, @p3 and so on. I forgot to include the @ sign in the Insert Statement
-
Also, you might not need to use Convert.ToDecimal, because when you paramterize your queries, they get converted to the right data type automatically.
-
Try this.
Using meldingcmd As OleDbCommand = New OleDbCommand
Make_con()
With meldingcmd
.Parameters.Clear()
.Connection = con
...
-
I disagree. Sure regex is complicated, but it doesn't take you year(s) to learn. It took me around a month to finally learn and understand the basics of regex.
-
See I was right all along :rolleyes:
-
Your statement is saying that one thing can be two separate things at the same time which makes no sense.
Use an OR operator rather than an AND.
So
TypeMode = 'RECEIVABLES' OR TypeMode =...
-
You shouldn't really be storing any sensitive data on the application itself, regardless if it's encrypted.
All this should be done server side.
-
Excel in VB is not my domain. Don't know anything there.
-
Well I'm sure there is some lovely function to do it automatically that I'm unaware of, but here's a MANS way of doing it :cool: .
YourTextBox.Text =...
-
I think that's weird how a Linq foreach on a 1D array is slower than a regular for each on a 1D array. Afterall, both statements are O(n) operations, therefore theoretically both should take the same...
-
There's other ways to do it. When you click the add button, check to see if the txtItem.Text is already in the ComboBoxItems
If it is, don't add, if it is add.
Here's an altered code of the...
-
That's not really a flaw, it all depends on what the user wants/needs. You can just modify the code a bit not to allow duplicates.
-
See OP if you had used my code you would of got this working ages ago.. Just saying.. :rolleyes:
-
Hmmm, maybe I should of used My.Settings then
-
In the past, whenever I used My.Settings, I found it that if the user was to move the .exe file then the settings got erased. I understand that the .exe of a program should never be moved, but in...
-
Here's the code.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim items As String() = LoadSavedItems()
If items IsNot Nothing Then...
-
I coded a solution, but it's in C#, and not VB.NET as I don't have access to VB.NET right now. I'll convert the code and give it to you and hopefully it works.
-
Just save it in your Appdata folder, that would suffice :).
-
I had no idea these exists. Defo going to use it to prank my friends and confuse the hell out of them
-
Yeah I agree, the code is very maintainable and could be shortened to more than 75% of what it is now.
-
In object orientation terminology this is called a destructor. However, I think you're talking more in terms of Windows Forms. Therefore there are events fired right before the form is closed, use...
-
There are many many ways to do this.
1) You could use a dictionary API but it could be slow depending on how fast you're loading the words.
2) You could just download a HUGE list of words and...
-
I had no idea that there was such a thing like IpAddress.TryParse(), thanks for pointing that out. I wonder how IpAdress.TryParse() works behind the scenes, I bet they use Regex too. Anyway, what are...
-
If you're trying to match Ip addresses then you can use this shorter alternative.
(\d{1,3}\.){3}\d{1,3}
Also, whenever you use Regular Expressions, it's good practice to comment what your...
-
I recommend you alert the user that their session has expired only when they they maximize their screen then log them out, that way they know exactly what was going on. It's better than logging them...
-
Set an event to when the window is minimized. Once it's minimized, record the current time stamp.
Set an event for when the window is opened, once it's open, check the timestamp, if the timestamp -...
-
Use AddRange mate :)
Also, Linq return IEnumrable. so change your initial listdecription variable to that.
|
Click Here to Expand Forum to Full Width
|