I thought this would have been quite common but can't find anything on this. I'm trying to query columns that have spaces immbedded within them. For the life of me I don't see a way of selecting them when I'm trying to assign them to an alias when creating an anonymous type result. Here's the code, but not sure how to go from here:
D...
I would like to import a VB.net dll into C++/CLI. I am having trouble referencing my dll. I have tried to find tutorials but with no luck, in particular, I usually find how to import managed libraries directly into native code through COM. I would like to import an existing VB.net dll into my C++/CLI project.
Do I require a header file...
the message was variable j is used before it have been assigned value.If in php language, it's not a problem at all.
Dim j() As String
Dim i As Integer
If (i = 1) Then
j(0) = "x"
Else
j(0) = "d"
End If
...
I'm killing myself and dehydrating trying to get this array to sort.
I have an array containing directories generated by;
Dim Folders() As String = Directory.GetDirectories(RootPath)
I need them to be sorted so they appear like in windows explorer in win7 / vista. -- numerically and alphabetically by folder names.
The folder names co...
I'm using in my winform project a RichTextBox control to display a kind of old console screen.
This works perfectly but there is a space between the lines.
Is it possible to change this space to be 0 or anything near that.
If i paint a line from vetical line from line 1 to line 5 i don't want any spacing between the line.
Hope you can ...
I inherited an old vb6 app that handles .rpt files. i need to extract the data in the files into a csv format so i can import into sql server.
Please help.
thanks
...
I've written a vb.net application to populate a Crystal report and output it to PDF. The problem is that every text box in which I have the letter "t" is being printed out to the PDF as "tt". eg, instead of "customer", it prints "custtomer". The design time layout is perfect. And this only happens with text boxes on the report; value...
I am developing an ecommerce app that is using the UPS shipping webservice. I have read that it is good to create a singleton so there is only one instance of a webservice at any time. My code for that is below.
Public Class Ship
Private Shared sync As New Object()
Private Shared _Service As New ShipService
Public Shared ...
I have a partial answer. Starting with:
newHeight = Height * cos(radians) + Width * sin(radians)
newWidth = Height * sin(radians) + Width * cos(radians)
I can reverse the equations to get:
temp = sqr(cos(radians)) - sqr(sin(radians))
Height = newHeight * cos(radians) - newWidth * sin(radians) / temp
Width = newWidth * cos(radians)...
I have following code and I can filter data on grid but when I pick same date in 2 datepicker it shows nothing. How can I fix the problem. Any help will be appreciated.
con = New SqlCeConnection(constring)
con.Open()
cmd = New SqlCeCommand("SELECT * FROM tblMeter WHERE (Date >= @startDate) AND (Date < @endDate)", con)
Dim p...
i would like to take any input string and delimit it into groups. each group may be at least one character and no more than 4 characters. How do I loop to create all possible combinations?
Example:
in-string:
xoox
output:
x|o|o|x, x|oo|x, x|oox, xo|o|x, xo|ox, xoo|x, xoox
I'm writing an asp .net app using VB, but I really just need t...
Hi guys,
I would like to append 0 before a number if it is single digit. ie. it should be 01,02,03... 09, 10, 11, ... and so on
I am using vb.net... how can i do that?
Edit:
It was really nice to c alot of responses...
I am thankful to you all for help. your suggestions worked correctly but i can choose only one correct answer so n...
Hi,
I'm developing an intranet web app and I'm learning how to hook VB into the Active Directory. We're going to be doing some location specific permissions, and my boss wants (if possible) me to hook into the Active Directory to get the users location.
I think that all I need to do is get the user name, but I'm not sure what is the be...
I have an owner-drawn control where performance is an issue during quick repaints such as object drags, resizing and painting the selector square. i have noticed that several other apps, including Picasa, will temporarily draw a reduced-quality image during fast repaint scenarios and then update the image with a higher-quality version wh...
The MSDN Documentation: MemberInfo.GetCustomAttibutes Method (Type, Boolean) states in the remarks:
This method ignores the inherit parameter for properties and events. To search the inheritance chain for attributes on properties and events, use the appropriate overloads of the Attribute.GetCustomAttributes method.
This basically m...
hey everyone,
I have created an application using Visual Basic .NET, the application use an access data base which must be shared in server of a local network.
The problem is when i run the application in a client machine (connected to the network) I can't connect to the data base.In the same machine the connection work wich it's no...
Hello,
I used to have a single DataGridView (DGV) on a form. I formatted and populated this, then used DGV.Show to make it appear on my form. This worked fine.
I upgraded my form, to included 2 DGVs. Within a sub I dim a new DGV, populate and format it as before then set this equal to whichever DGV on the form it's meant to be. For exam...
Sorry for the newb question but I am an experienced old-school programmer but I am new to a lot of the .NET ways and want to do it right. Please forgive any bad terminology or ask for clarification of I butcher it too much.
I have an ASP.NET Web Site I am creating in Visual Web Developer 2008 Express using Visual Basic as the languag...
I have another program (which I do not have the source for, already compiled) that is calling a DLL. I want to swap the DLL out and put my own in its place, to run my own model (inside the DLLs) rather than this other one that comes with the software.
I have made DLLs in fortran using the G95 compiler that work declaring them dynamical...
I have an array that is a list of files in a folder, I'm processing the files and renaming them. It takes about 15 minutes to rename them all, this is done daily. I currently have 1 Backgroundworker to handle this and update the UI.
My question is, this: How can I use more than 1 Backgroundworker to use more than 25% of the CPU to do t...