I am developing a Windows Forms application.
I have four forms which is inherited from Baseform in another project.
In all four forms I am using a label to show some transaction count based on network status. I have implemented a thread which gets the active form of application and setting up the text. The code works fine if application ...
private bool ValidDateCheck(){
bool _isValid = true;
try{
DateTime.Parse("07/&*/2009");
DateTime d = Convert.ToDateTime("07/&*/2009");
}
catch{
_isValid = false;
}
return _isValid;
}
How does the above code not throw an exception?
...
So I'm in charge to deploy my project on the productive server where some other ASP.NET-Websites are also set up.
The problem now is that I wrote my whole project under .NET 3.5 but on the webserver the current installation is .NET 1.1 as some of the other projects require them (don't ask me why, I can't figure it out either but my PM s...
I'm "cloning" objects in my code. For instance:
objClone = objOriginal
My question is:
Does the assignment operator in VB.NET 1.1 do a member-by-member copy of the objOriginal to objClone or does objClone simply point as a reference to memory referenced by objOriginal?
...
I have converted this existing C# .NET 2.0 code (which appears to take in a string with any characters and return only the numbers in that string):
private static string StripMIN(string min)
{
string result = string.Empty;
int digit = 0;
for (int i = 0; i < min.Length; i++)
{
if (int.T...
First of all, The Winform application is based on .Net Framework 1.1. I have 1.1 SDK installed but 1.1 is not listed in the Target Framework(VS 2010 Beta 2) so I cannot choose the same, the minimal available is 2.0. Am I supposed to install an add-on or something for building 1.1 apps in VS 2010 beta2. Further more, I am using a Clickonc...
I'm using VS.NET 2003 and VB.NET. I have placed my log4net.config file in the same folder as the source code and I want to automatically copy the log4net.config file to the bin folder just as the app.config file is copied to bin. Is there an automatic way to do this?
...
I need to be able to store a node set in variable and then perform more filting/sorting on it afterward. All the examples I've seen of this involve either using XSL2 or extensions neither of which are really an option.
I've a list of hotels in my XML doc that can be sorted/filtered and then paged through 5 at a time. I'm finding though ...
I have an existing app in which I made the mistake of using String.GetHashCode and persisting it to disk. Now that I'm upgrading the app to .Net 2.0 I find that that decision has come back to bite me in the butt.
I'm interested to know if anyone knows about a .Net 2.0 implementation of a .Net 1.1 compatible string hashing algorithm.
O...
Recently I developed a internal framework in .NET 2.0 version, which is basically classes and helpers.
The problem is I have some .NET 1.1 sites and applications and would like to use my framework from them. I know that I can't call .NET 2.0 in .NET 1.1, but I have an idea.
If I create another 2.0 project with ComVisible and reference...
By best I mean:
Cheapest development cost (1.1 project is unlikely to live > 6 months)
Easiest migration to WCF or similar
By communicate between I mean:
Remote communication between computers
Most likely no firewall restrictions
With .Net 1.1 the options appear to be: sockets, remoting, and various flavours of web service.
The ...
Hi Everyone,
How can I change the following code to write to the database null instead of empty strings?
Public Sub SetChangeRequest(ByVal referenceLeaseID As Integer, _
ByVal referenceCustomerID As Integer, _
Optional ByVal custUnitNum As Object = Nothing, _
...
Are there any DAL generators or ORMs that will work on .NET 1.1 with SQL CE 3.1?
This is only for a short lived project, so cost would be an issue
...
Now, i am working in .NET FX 1.1 C# windows application. For doing data bound, i am using "DataGrid" control (due to missing of DataGridView in Fx 1.1). In this, we are binding "DataTable" object to DataGrid's DataSource. It is showing fine.
Problem is, i am getting error messages, "while inserting additional data to a DataTable which ...
Hi,
Following is the format of the data stored in my arraylist.
A-Amsterdam
B- Brussels
C-Canada
so and so forth.
I wan to search my array list by passing just the first few characters till '-'
So if i have something like AA-Test then i want to pass just 'AA' to check if it exists or not.
I know that i can use contains or binarysearc...
How can I remove the closing tag of element c in a XML document?
The converted XML will go through a schema validation and it is rejected because it has a whitespace within. I'm using C#, .NET 1.1 (I'm updating a legacy application :-( ).
Note: I must not resort to string manipulation to convert the XML document.
Current:
<main>
<...
What is the best way for create a sitemap for google using .net 1.1 and use this sitemap in a treeview into a webpage .aspx?
...
I am looking at this event example http://msdn.microsoft.com/en-us/library/aa645739%28VS.71%29.aspx
This all makes sense to me except that the following line
public event ChangedEventHandler Changed;
What does this do?? Is this some sort of list of EVentCallbacks?? Why is new not used here??
EDIT: Why does this not need a NEW keywo...
In IronPython Studio -> Properties -> General Tab i see a Property with Name Target Plataform and found Microsoft Framework 1.0, 1.1 and 2.0, selected 1.1 and next opened my Visual Studio 2003 -> Add Reference and for my surprise this not work. Not compatibility. Why? What i do wrong?
...
Hey guys,
I'm working on some legacy code for a client, involving Microsoft Content Management System (MCMS).
Currently, everything is local, the code, MCMS, SQLServer, and IIS (5.x).
I copied the project folder, and then opened the new copied solution in VS2005, and let it do it's conversion thing.
But now nothing works. I've nnotic...