I am working with old ASP code and I am not sure about semantics of on error goto 0 and error resume next construction.
Can you recommend me some useful resources or enlight me directly?
...
Hi,
I have a string like this:
This <span class="highlight">is</span> a very "nice" day!
How should my RegEx-pattern in VB look like, to find the quotes within the tag? I want to replace it with something...
This <span class=^highlight^>is</span> a very "nice" day!
Something like <(")[^>]+> doesn't work :(
Thanks
...
Hi all
I need to be able to detect which version of Excel I have installed in my machine from some .NET code I'm developing. I'm currently using Application.Version for that, but it doesn't give me information about Service Packs.
I would preferably to steer away from something like this:
http://www.mvps.org/access/api/api0065.htm
Ma...
Sorry for the basic questions, but I've been searching the web for a number of days and can't find the answer to these questions.
I've created a Custom Control, and I will be placing a large number of instances of that Custom Control on my xaml page. In working with that Custom Control in the VB Code Behind, how do I do the following?
...
hi,
I have created reports using crystalreports in my asp.net application(vb).It was fine.But when i run it in another system, the report loading fails.so i modified my code like this.
sub Loadreport()
try
Dim sreport as new ReportDocument
sreport.Load(Server.MapPath("ClientList.rpt"))
sreport.FileName=Server.MapPath("ClientList.rpt")
...
Hi, I've got a simple Visual Basic 2008 Express Edition form which looks like this:
[link Screenshot of simple form][1]
I need some help with a skeleton script, which checks to see if each checkbox is checked or not.
I've got a set of Word templates which all contain a macro.
And I want to run the macro of each template, if the templa...
Is it possible to define two variables in a vb2005 For loop in a similar way that jscript does it?
the javascript example is
for(i=0,l=0;i<20;i++){}
...
Hi, I'm trying to figure out how to do this as I'm not sure what's the proper way of doing this.
I've got several strings that I want to store/save permanently, even after the application is closed. How should I proceed? Do I read or write from a textfile?
...
hi guys,
i have value in hdnField in form1.aspx .Iam assigning value to hiddenfield in javascript.I want to get that value in aspx.vb in another form,form2.aspx.Can anybody help
...
Hi,
I have created crystal report in asp.net.It worked in my system.But when i try to run the report in another system, it displays "Your report requires additional information".
Then it asks to provide the server name,database name, userid and password.Actually,I have attached my database in that system.I have also modified my web.conf...
Suppose I have an IEnumerable such as a List(TValue) and I want to keep track of whether this list is being accessed (to prevent issues with, say, adding to the list while it is being iterated over on a different thread); I can always write code such as the following:
Dim List1 As New List(Of Integer)
Dim IteratingList1 As Boolean = Fal...
And if so, why?
and what constitutes "long running"?
Doing magic in a property accessor seems like my prerogative as a class designer. I always thought that is why the designers of C# put those things in there - so I could do what I want.
Of course it's good practice to minimize surprises for users of a class, and so embedding tru...
Is there something that needs to be done with the following code to release the memory it uses?
Dim objImage As MemoryStream
Dim objwebClient As WebClient
Dim sURL As String = Trim(m_StationInterface.PicLocation)
objwebClient = New WebClient
objImage = New MemoryStream(objwebClient.DownloadData(sURL))
m_imgLiftingEye.Image ...
How do i dynamically call a function with delegates by passing a string to a background thread in vb2005.net?
currently my code is this
Public Sub invertImageBK(ByVal image As Bitmap)
Dim snxl As System.ComponentModel.BackgroundWorker = createBW()
snxl.RunWorkerAsync(New ImageProperties(image.Clone, "invertImage", Nothing))
End...
For example:
BitmapImage bitmap = new BitmapImage();
byte[] buffer = GetHugeByteArray(); // from some external source
using (MemoryStream stream = new MemoryStream(buffer, false))
{
bitmap.BeginInit();
bitmap.CacheOption = BitmapCacheOption.OnLoad;
bitmap.StreamSource = stream;
bitmap.EndInit();
bitmap.Freeze();
}
...
Within a Web Service CarService,
- I have a class called Car.
- Car has a bunch of properties i.e. Car.Color.
- CarService has a method called GetCars().
- Within GetCar, I have a loop that appends a List of, you guessed it.. Cars.
Dim carList As New List(Of Car)
Do While rdr.Read()
If rdr.GetValue(1).ToString().Length > 0...
This is interesting. We've spent the last day attempting to patch a problem with the following (legacy) code that continues to grow its process size. This is done in Visual Studio 2003.
We have a form on which we display an image (from MemoryStream) and some text and a button. Nothing fancy. Looks something like this:
Protected Overr...
Hi,
I am Gerhard and I just thinking around a problem, without getting a fine solution uptil now.
Scenario: Users type in complex data (WPF frontend) and persist the data with some OR-mapper into SQLServer. I use OpenAccess by Telerik, my favorit.
But now think about following situation: One nearly finished the work on some use case, ...
I'm working on an application that is about 8 years old, and it uses version 8.0.0.4 of the Crystl32.ocx file for viewing reports.
The issue is, when I go to view the report, it shows a parameter screen, that the user can CANCEL from. But, if you click CANCEL, the report window STILL opens, and shows a report with no data... (Or data ...
The program starts. When I click the Start button the original form disappears just as I intended, but then it just hangs there. No picture shows up. The CPU heats up and gets louder. It freezes and I sometimes have to CTRL+ALT+DELETE just to exit the program.
'Reaction.exe
'Picture comes up once, user presses left side of keyboard (...