I know VB.NET and i want to develop a program. Which i think later will be open-source if i fail to keep updating it. My question is : Is it possible to build open-source project by using .NET languages ? Or do i have to build open-source projects only using open source languages like Java,Ruby, Python etc ? ( I mean is there any restri...
There is no IdentityEqual item in ExpressionType enumeration. How can I construct expreesion tree with VB.NET Is operator?
...
Hi,
in my VB.Net application I've created a Dataset that call an existing MS SQL Server stored procedure but after the wizard close no columns where added... how can I add all the columns returned by the stored procedure without adding them manually (off course the stored procedure might change in the future) in which case manually will...
Hi, I was wondering if anyone knows how to programatically get things like the version and copyright details out of a true type font. If you open it in explorer as well as the preview you get this info in the windows font viewer. I've looked at the Logfont structure but the info doesn't seem to be in here
Cheers
Luke
...
I got that line of code and it's getting duplicated a lot
myString = If(myObj1.myProp Is Nothing, "", If(want = "abr", myObj1.myProp.abr, myObj1.myProp.desc))
that line x n, just change "myObj1" to "anything" and "myProp" to "anything"
I tried this
Public Function getDesc(Of t)(ByVal obj As t) As String
Return If(obj Is Nothing,...
Possible Duplicates:
Getting the path of the current assembly
C#: How do I get the path of the assembly the code is in?
Using VB 2008, how can I get the file name of a running .EXE from inside itself?
EDIT: This is for a console app, so Application.ExecutablePath will not work.
...
I have a program that checks if a file is present every 3 seconds, using webrequest and webresponse. If that file is present it does something if not, ect, that part works fine. I have a web page that controls the program by creating the file with a message and other variables as entered into the page, and then creates it and shoots it o...
Hello,
say if I have a string 010451-09F2
How to I get left of - from the above string in vb.net
I want 010451
The left function doesn't allow me to specify seperator character.
Thanks
...
To query an excel sheet via SQL, I used to use either:
Dim excelConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strPath + ";Extended Properties=""Excel 8.0;IMEX=1;HDR=YES;"""
or
Dim excelConnectionString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source= " + strPath + ";Extended Properties=""Ex...
I seen this in legacy code. What, if any, is the purpose of a single Throw within a Catch?
Try
'Some Oracle access statement
Catch err As OracleClient.OracleException
Throw
Finally
'Do something
End Try
Is the outcome the same as if the original error was not caught? Would ...
I'm using Visual Studio 2008 Pro to create a VB Winform App. I have some custom configuration settings as well as a MS SQL connection string in my app.config file.
What is the best method to insure that no one can read these settings in the app.config?
Are there any other area's that would have the connection string in plain text that...
I figured I would ask... but is there a way to have the Get part of a property available as public, but keep the set as private?
Otherwise I am thinking I need two properties or a property and a method, just figured this would be cleaner.
...
This might seem to be a silly question at first, but please read on.
I know that LINQ queries are deferred and only executed when the query is enumerated, but I'm having trouble figuring out exactly when that happens. Certainly in a For Each loop, the query would be enumerated. What's the rule of thumb to follow? I don't want to acci...
Hello,
When the first cell of an excel sheet to import using ExcelStorage.ExtractRecords is empty, the process fail. Ie. If the data starts at col 1, row 2, if the cell (2,1) has an empty value, the method fails.
Does anybody know how to work-around this? I've tried adding a FieldNullValue attribute to the mapping class with no luck. ...
i get a HRESULT 0x80131047 exception in Microsoft Visual Basic 2008 express when debug my application. this happens whenever i click "start debugging" and it doesn't matter what application i load. this is a brand new vista x64 bit machine with a fresh install of VB2008 express.
...
How do I open, edit, read excel columns in vb.net? Like, for example, I want to know the values of column B up to the cell that it contains values. Thank you.
...
Hi,
I want regular expression validator for my telephone field in VB.net. Please see the requirement below:
Telephone format should be (+)xx-(0)xxxx-xxxxxx ext xxxx (Optional) example my number would appear as 44-7966-591739 Screen would be formatted to show +44-(0)7966-591739 ext
Please suggest.
Best Regards,
Yuv
...
In my project I am using a session table. I am binding this session table to the gridview,
in gridview row updating event.
I keep the records of session table to a datatable and I use the code below code for updating:
dttable.rows(e.rowindex)("name")="arun"
dttable.Acceptchanges()
My problem is when using PageIndexChanging, I can edit...
Can someone enlight me about the version bindings between VSTO and the targeted office version?
I am using VS2008 with VSTO 3.0 to build and deploy an addin for Outlook 2003. I am totally confused about what is required on the target machine:
VSTO 2005 SE runtime or VSTO 3.0 runtime?
.NET Framework 2.0 or 3.5
Primary Interop Assemb...
I have a few classes (about 15 or so) in VB.net (2005) that I would like to be able to serialize to xml. Unfortunately they are labeled as friend classes and cannot be exposed outside of the assembly.
The assembly is a dll that is a com interop plugin to a CAD system. I have set all of my classes as friends so that they are not exposed ...