Search:
Type: Posts; User: nbrege
Search:
Search took 0.20 seconds.
-
Can you give me a quick example?
-
PD ... I did try HttpRequestException, but it never gets thrown. The only ones that get thrown are generic Exception, as in my code above, or AggregateException. BTW, the code above is running in a...
-
I am using the following code to get a string from a server:
Dim handler = New HttpClientHandler With {.UseCookies = False}
Dim http As New HttpClient(handler)
Dim url1 As String =...
-
I'm sure that no matter how you choose to do this, it will be kludgey. I was also not aware of SortedDictionary. Does that offer any benefit over a SortedList?
-
I found a solution that works exactly how I want, using a SortedList, which I didn't know existed until today.
I just had to handle the error I was getting when setting the SelectedIndex to -1,...
-
There should only be "None" where there's only 1 item per line in the file. So In my test example above, there should be 4 "None"s...
-
Here is the exact code I'm using for testing:
Dim myFile As String = "D:\Temp\ComboTest.txt"
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
...
-
It looks like I spoke too soon. When sorted is True it only sorts the Display member. The Value member doesn't follow, so they become disassociated. It looks like I'm back to figuring out how to...
-
Thanks, that works. I would think that sorting the datasource first would also work, but I haven't tried that. Is there any way to do that with the code you posted in #2?
-
JMC, thank you. This method works fine except I found that if the Combobox.Sorted property is set to True, then it doesn't display the items properly. It displays both values enclosed in brackets. ...
-
If I have a text file with all the state names & 2-letter abbreviations, how do I read that in to a Combobox & set the Display member & Value member? I want the Combo to show the full state name,...
-
Seeing the same thing. Also seeing weird chacters in one of my old posts...
-
Has anyone else noticed any odd behavior with the VBForums website recently?
-
Yes, should only ever be 1 pair of parentheses & the part between the parentheses may not always be the same length.
After playing around a bit I came up with this as a working solution. I'm sure...
-
What's the easiest way to get the string between the parentheses in the following string:
RPM|Cabinet - Tall - -Notch (18.000H x 1.500W) - Black - Edge: Black
In this example the returned...
-
-
That's interesting. I didn't know you could do that. So when I don't convert to a string it gets saved as "2024-02-18T12:04:30.5186749-05:00". It looks like it's more of a universal date/time...
-
I'm saving a date to a JSON file as a string using Date.Now.ToString & then reading it back in & converting to a date at startup using CDate(myDateStr) which works fine, except when somebody from a...
-
Thanks for the reply, but not really what I'm looking for. I know how to use the MailItem object. I just can't figure out how to cast the dropped object to a MailItem object.
-
I want to be able to drag & drop an email message from Outlook onto my form & then save the message to a specified location & also save any attachments to a specified location. I created a label...
-
I have not tried that, so I'm not sure how it would work, but my plan is to have only 1 monitor for now...
-
Ok, no problem. I guess I'll also wait for someone smarter than me to post a solution. For now, I guess I'll have to aclimate to fuzzy text...
-
So have you done anything to resolve the issue?
-
This is not specifically a VB.Net question, more of a VS question. Does anyone here use a 4K monitor for programming? Yesterday I replaced my old monitor with a new 4K monitor. It looks & works...
-
I can't use .RemoveAt() because I wont know the index. That's why I asked how to remove by specifying the actual value...
-
Thanks for the reply. I tried your suggestion & came up with the following bit of code, but it's not working for me..
Dim jsonObject As JObject = JObject.Parse(IO.File.ReadAllText(myFilename))...
-
Suppose I have the following json string:
{
"settings": {
"setting1": "someString",
"setting2": 10,
"setting3": 20,
},
"favorites": [
-
Shaggy ... in my case I am downloading files. I just assumed (maybe incorrectly) that using multiple threads would speed up the process. What would be an example of where using multiple threads...
-
Thank you. I was not even aware of such a thing as ConcurrentQueue...
-
I want to be able to specify the number of threads to work on a common list of tasks. So for example, if I have a list of 87 files to download & I want to use 5 threads to download those files, how...
-
Thanks for the help guys. I'm starting to figure this out, but I'm still stuck on one part. How do I add in a history item to an existing file?
This is what I tried:
Dim json As...
-
Kebo ... thank you for the reply. The code you posted works great. The reason I want a top level node is because there is more to my settings than what I posted. Here is what I really want:
...
-
I want to use Newtonsoft JSON.Net to save & load program settings in a file.
I want the structure of the file to be like:
Settings
Setting1:value
Setting2:value
Setting3:value
-
Does this work in .Net? All the code samples are C++. I know I can embed a Windows Media Player control on a form, but I was looking for something with a few more features...
-
I'm trying to use the VLC media player on a winforms project to play video. I added the VLC NuGet package to my project, added the VLC control to my toolbox items & added the VLC control to my form....
-
I actually did think about doing that way. Since I am creating the database & tables on first start of the program, it would pretty easy to just insert some default values for the settings. I just...
-
I want to use an Sqlite database to save certain program settings. I want the program to load the settings on startup & set the controls accordingly and then save the settings on program exit. This...
-
I'm not sure what you mean by this. Please clarify. I'm adding items to a list called "items", not to the combobox .Items collection...
-
Thanks for the comments. I was missing the data binding part. I actually ended up using Bing AI to get the following working code:
Dim items As New List(Of KeyValuePair(Of String,...
-
I'm trying to populate a combobox in code with values as follows:
Me.ComboBox1.Items.Add(New KeyValuePair(Of String, Integer)("Quick", 10000))
Me.ComboBox1.Items.Add(New...
|
Click Here to Expand Forum to Full Width
|