Search:
Type: Posts; User: vbdotnut
Search:
Search took 0.06 seconds.
-
There is no better way to do it than this.
-
Funny thing, I cant tell if you are bragging or complaining.
It is unwise to roll up on a vb.net forum with that attitude really. You seem eager to dazzle us with your robust references and you...
-
Even more efficient would be to not do it at all. Its just not necessary.
-
When it come to presentation effects with WinForms... what I have learned.... Just dont do it!
-
No worries,
I dont know why, but I do prefer the way I put it. Seems to be closer to satisfying the requirement and less overkill.
-
-
How I would achieve this is breaking it down into total seconds then format the string from total seconds
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim...
-
If you know the name, type, and parent of control you dont need to find it
Controls.Add(New Label With {.Name = "Label1"})
DirectCast(Controls("Label1"), Label).Visible = True
You lost me...
-
3rd the API.
At this point MS is no longer providing/supporting updates to the web API/VB.Net and is steadfast with ASP.NET/Core/C# Web API. You can however still create a 'legacy' VB.Net Web...
-
Would be nice to downvote this gpt response
-
You can also create Public methods or functions and pass arguments in. Here are some examples, obviously the controls in this example are just created for example and dont belong to any container so...
-
Assuming youre not setting the text somewhere in your "lots of procedures" and you are setting the text by means of Ctrl+C or right-click Copy, then you should be sending the text in as a parameter...
-
My opinion is if you are going to use vbCrLf (etc) instead of Environment.NewLine maybe you should also be using VB6 instead of VB.Net. Which maybe thats not fair to say but that is where I will...
-
I always use Environment.NewLine because I feel like its an explicit part of the framework and the other choices are as old as dirt, but thats no reason not to use them. At the end of the day its...
-
You could try ActiveControl=Nothing
-
Sorry, I will spell it out for you then
Dim FirstNumDec As Decimal = Nothing
Dim SecondNumDec As Decimal = Nothing
Decimal.TryParse(TextBox1.Text, FirstNumDec)
Decimal.TryParse(TextBox2.Text,...
-
looking at this i am wondering if you created a Dict to hold the zonename and bool which you would populdate in your iteration, then after iterate the Dict and set the values accordingly. Just a...
-
When dealing with this type of conversion where a user can enter string I like to play it safe and parse the values as such:
Dim FirstNumStr As String = "5.5"
Dim SecondNumStr As String = "100.5"...
-
in a very generic example:
Public Class FormIcons
Private Sub FormIcons_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim UC_Icons As New UserControl With {.Dock =...
-
Instead of using a form to add into pnlContent try using a UserControl instead
Also make sure AutoScroll on pnlContent is set to true
-
One thing I dont do i DL ppls projects.
Paste the entire class instead
-
ive not tried moving the position around on a scroll before, but from here it looks like you should be declaring intFormPos as a class member. Also, after the first mouse leave...
-
it still stands that you dont need to update a cost on assembly/BOM items. if you must, I would still use the CTE type query and join it to the item table where the cost doesnt match the CTE result...
-
from which methods/order does this run?
-
Maybe its just me, but something is just weird about the db/m interface(s) within your solution. In my environment it would be a disaster if concurrent users were updating component costs which would...
-
I think just keep it simple and iterate the dt rows
For Each DRow As DataRow In SampleDT.Rows
If DRow.Item("Col1").Equals("Foo") Then DRow.Item("Col2") = "Bar"
Next
Linq is going to...
-
Shaggy brought that up in post #6
-
this is a comprehensive example of a CTE function that returns a cost rollup which uses component yields, duty%, and shipping rates it also converts some consumption units into grams because we have...
-
where it gets real tricky is calculating yield, which is what youre touching on here.
you really need a table that has itemid,parentid,componentyield,qty, and assemblyqty. so the qty/assemblyqty...
-
THE CTE Query in question was run on SQL Server Std 15.0.2000.5 and the CTE query was introduced in 1999 with SQL3. (Making me feel old here Shaggy)
and no, a google search reveals access does not...
-
To get a cost rollup on your assemblies should not take an epic amount of time to return a result. This is an area where a CTE will shine. If you have a table that holds the item and its parent then...
-
+1 on using parameters instead. if youre not going to use parameters you should use explicit date format of yyyy-mm-dd to avoid the chance of misinterpretation
-
on that note maybe like this:
Ctl.Enabled = If(TypeOf Ctl Is UserControl, True, Not Ctl.Enabled)
so that it will either enable or disable the controls when you run it.
Additionally this...
-
You should have posted this question in the .net forum with a link to this thread in addition to pasting the code youre using.
Have you sorted it. If not please post a new thread in the forum and...
-
updated the code on this recommendation
-
I reckon both issues could be solved like this
TBox.Text = If(DGVCell.Value Is Nothing, "NO CODE", DGVCell.Value.ToString)
-
Perhaps disable all other controls on the parent with the exception of any other user control
For Each Ctl As Control In Controls
If Not TypeOf Ctl Is UserControl Then
Ctl.Enabled =...
-
I had in mind something like this, give or take:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim CurrRow As DataGridViewRow = DataGridView1.CurrentRow
...
-
i was thinking a good ol fashioned text parser as well.
-
maybe try jet or ace instead of txt driver. it has been my experience that extended properties are hit or miss across the board on all drivers.... mostly miss.
|
Click Here to Expand Forum to Full Width
|