Say I have an array
array<double>^ buffer = gcnew array<double>(100);
And I want a function that does something like:
void foo(array<double>^% buffer)
{
Array::Resize(buffer, 10);
}
but that don't allocate and/or move &buffer[0] when you want to trim the array.
...
I would like to make a vb .net application that auto logs into places and retrieves data from them. I have already succeeded in doing this by opening internet explorer programmably and tabbing to enter name and password. But this is messy, and needs to be well timed. I'm using VB .Net. Is there a way to interface with sites to auto login...
This is one of those times when only the hive mind can help - no amount of Google-fu can!
I have an array of structures:
Structure stCar
Dim Name As String
Dim MPH As Integer
Sub New(ByVal _Name As String, ByVal _MPH As Integer)
Name = _Name
MPH = _MPH
End Sub
End Structure
How do I sort the array on...
Hey everyone,
Is it possible for me to set the opacity of a button or textbox? I know that you can set the opacity for a form, but I'm not so sure about a button or textbox.
Thanks
...
Hello experts,
I am using the below mentioned code in my VB.net application to print two copies of pdf document.
js.Append("var pp = this.getPrintParams();")
js.Append("var iCopies = 2;")
js.Append("var iPages = this.numPages;")
js.Append("pp.NumCopies = iCopies;")
js.Append("pp.interactive = pp.constants.interactionLev...
I’ve been professionally writing VB.NET software for seven years. However, I don’t have a strong computer science background – four courses while studying education at university in the 90s that gave me some CS basics and exposure to Pascal, C and Lisp. Anyway, there are a whole bunch of practices that I’m missing – testing, patterns, ...
So I have a dataGridView and a textbox on a form. I want to be able to search through the dataGridView and sort it compared to the string in the text box. ex:
I type "acv" in the text box and all strings containing "acv" are sorted to the top.
I'm accomplishing this with a bunch of gymnastics involving datatable.select and some clearin...
Does anyone out there have any experience programatically retreiving the lat/long from a GPS attached to a mobile PC? A team I'm on is currently looking at hardware options--as the programmer who will eventually have to live with whatever is selected I was wondering if anyone out there has had experience writing .Net programs that inter...
I've been working on automating our build processes and wanted to come up with a painless way to run unit tests on a regular basis. To that end I've thrown together a simple app that examines the project files and prepares a list of solutions to test. The prototype works in that the tests are executed with the expected results, but as ...
I have a SQL server table that has a list of Usernames and a list of points ranging from 1 to 10,000.
I want to display the number of points in my VB.NET program from the username given. For example, if I type in "john" in the first box the program will give me a message box saying whatever amount of points "john" has. I'm not really s...
I expected this to work:
Public Shared Function ToShortDateTimeString(ByVal dateIn As Date) As String
Return dateIn.ToShortDateString & " " & dateIn.ToShortTimeString
End Function
The date gets formatted according to local settings, but not the time.
I seen API examples but, dangit, this should be easy and built into the framewo...
Hi,
This is a fairly generic question in that I'm just wondering what potential options there are for this.
Say, I have a simple class:
Public Class Example
Private _One As String
Public Property One() As String
Get
Return _One
End Get
Set(ByVal value As String)
_One = val...
Hi guys!
I have a really weird thing happening in my wpf application.
Every time I close something (a dialog box, a window, etc...) the ENTIRE application closes, instead of only the window/dialog which is beeing closed.
This not only happens when I call the Close method directly, but also when the element closes on it's own, eg: when...
On sending data over bluetooth from PC to my mobile(N73), the Input Stream seems to hang up.
InputStream is derived from StreamConnection.
PC software is built in VB.net.
Mobile in Java ME.
Does the InputStream have an internal buffer that needs to be emptied while reading large chunks of data?
Data is being received in chunks of 10Kb ...
I'm wanting to write a program in vb .net that could monitor outgoing print requests from any program on the PC, prompt the user if they would like to add a header to the document, and if they say yes, then tack it on (if the user has printed something in the space where the header will go, just print on top of it).
Is this possible? I...
I need to display a toolstrip directly beneath a menustrip in my application, but setting RenderMode = Professional for each does not give identical results. They both show a background gradient, but not the same one.
Is there some way to use menustrip rendering for the toolstrip, or vice versa?
Or can someone advise how best to impleme...
I have a project in VB.NET 1.1 and was wondering if there are any equivalent approaches to build events that will allow me to manipulate a project while being built?
...
Hi,
Can any one help me to change the below code to VB .Net.
var(query = From row In dtInvoice.AsEnumerable())
group row by new { InvNo = row.Field< string >( "InvNo" ),
EmpUNID = row.Field< decimal >( "EmployeeUNID" )} into grp
OrderBy(grp.Key.InvNo)
...
I was wondering which of the two code samples would be more efficient (or is the difference between the two negligible)?
For Each apple in AppleController.GetRedApples().Where(Function(a) PriceController.OnSale(a))
'do something
Next
or
For Each apple in AppleController.GetRedApples()
If PriceController.OnSale(apple) Then
...
I made a program which uses a filesystemwatcher component, but it seems to record absolutely EVERY change made, and I want to set it to ignore some file types. How can I set the filter to ignore certain types? For example, .LOG files. I don't want it telling me that that file updates, cause it does it every second practically.
Even bett...