I'm making a small scripting engine in C# and I was wondering, is there some sort of #compiler directives or some sort of other header-like file I can compile with my script files to define what Managed Dlls my script files are referencing?
public static CompilerResults LoadScript(
string SourceCodeFile, string[] References)
{
v...
i have a sql query that can bring back a large number of rows via a DataReader. Just now I query the DB transform the result set into a List(of ) and data bind the Grid to the List.
This can result occasionally in a timeout due to the size of Dataset.
I currently have a three teir setup where by the UI is acting on the List of object...
Hi,
I want to compare just the date part (and Not the time) of two VB.NET Date objects.
Is there a way to do that?
Hoping to get some answers.
/Ylva
...
I seem to be missing some information from my stack trace, here is what i'm getting:
at Foo.Bar(DataTable table) in D:\Foo\Bar\authoring\App_Code\FooBar.vb:line 87
Where is the rest of the stack trace infomation?
EDIT:
Custom errors in the Web.Config is set to off, i'm handling the error where it's caught like this:
Catch ex As Ex...
I'm reading an XML file that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<VehicleList>
<Vehicle>
<Item>
<Name>F-150</Name>
<Maker>Ford</Maker>
<Color>Black</Color>
<Price>30000</Price>
</Item>
<ItemSpecific>
<NameValueList>
<Name>Mileage</Name>
<Value>56000</Value>
</NameValueList>
<NameVa...
I'm working on a VB.NET DLL right now, and one of the functions I'm writing is supposed to take a file, and clip out an array of bytes (the method I've got works, and can be abstracted away here). What's the best way to pass a file to this function? Would passing a filename to it be best, or what would be the best way to accomplish thi...
Was looking at some code earlier, and am thinking that there has to be a more elegant way of writing this....
(returnVar.Warnings is a string array, it could be returned as any size depending on the number of warnings that are logged)
For Each item In items
If o.ImageContent.ImageId = 0 Then
ReDim Preserve returnVar.Warning...
When I started at my current employer I inherited a project from a previous developer and in that project was a data access utility class that tries to simplify a lot of the code involved in making calls and retrieving data back from the database. Over time it has been modified to add more overloaded forms of functions, and now I am look...
How do I set a null value for an optional DateTime parameter in a constructor?
I'm using the following constructor below and I want the optional parameter admissionDate to be a null DateTime. Setting it to Nothing actually gives it a value (something like #12:00:00 #).
Public Sub New(ByVal obj1 as Object, Optional ByVal admissionDate ...
I am trying to get a subset of locally declared methods in a webform code behind using GetMethods but cannot figure out the proper BindingFlags settings (see code below)....and some further specific questions:
1) Is it possible to differentiate between Procedures and Functions?
2) Furthermore, I only want to fetch a certain subset of th...
For those who still have lots of legacy code as I do in .NET 1.1, has anyone found a solution for this issue:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=90240
Details are usually as follows:
Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.432...
how to use unicode available in vb6 in vb.net?? is there ny equivalent of vb6 unicode in vb.net??
...
I have upgraded my project from vb6 to VB.NET. The project is used to generate pdf files..
while upgrading I'm getting following problem.
Code:
'UPGRADE_ISSUE: Constant vbUnicode was
not upgraded. Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2070"'
'taptisColor = IIf(mvarEncodeASCII85,
ToA...
I am designing a program in VB.NET that can use an Excel-like grid. I want the grid to be able to handle merging and unmerging of cells. Suggestions?
...
My mdi VB.Net application performs a long operation on some data. Ideally I should use a separate thread to prevent the dreaded “Not Responding” message.
My problem is if I use a separate thread users then have the ability to click on other controls in the application which can directly affect the operation my background thread is worki...
I have a page that contains some dynamically created controls (TextBox and DropDownList). When a postback occurs, the TextBoxes keep their values, but the DropDownLists lose their ListItems.
This is quite confusing, since the page level DropDownList also keeps its ListItems. Can anyone see what's wrong with the code below?
Any help in ...
As example, I login in to the system ad...
But how can i use the session function to recall the current applicationid?
Which I need to store in form and to the other table of database..
Behind code.. vb not c#
Thanks a lot.
Your guide is appreciate .
Example..
1. Login with the session fix (userid) in virtual studio..
2. I wanna reca...
So as a direct result of this global financial hoohar I'm going to start a new job as a VB.net developer tomorrow. Up to this point I've been developing in C# (bit of java, vb6, sql, tibco, etc. here and there)
So the question is this, what are the gotchas to look out for and does anyone have any good advice on writing good vb.net code...
OKay, I'm from a PHP background, but I've just been tasked with developing some custom Web Parts in SharePoint. I've figured out how to create and deploy a basic "Hello world" web part in VB. Okay so far.
What I'm stuck on is a really basic, stupid point - how the hell do I lay out things in a VB web part?
For an example, here's a labe...
I would like to utilize classes that inherit the System.Data name space.
Specifically, I would like to have classes CarColumn, CarTable, and CarSet derived from DataColumn, DataTable, and Dataset respectively.
I would like to be able to add additional properities to each class. As an example this is how I would like to reference items...