VS2008, .NET 2, VB.NET, XP ...
I have a Windows form, with a WebBrowser control and a Close button, which just does a Me.Close. The form's cancel button is set to the Close button, so that I can hit ESC to close the form.
I set the DocumentText property of the WebBrowser control in the load event, and the HTML displays.
Running the ...
Dim x AS New URI("http://www.example.com/test//test.asp")
Dim rel AS New URI("http://www.example.com/xxx/xxx.asp")
Console.Writeline(x.MakeRelativeUri(rel).Tostring())
In here output is:
../../xxx/xxx.asp
Which looks correct almost all web servers will process the two of the following as same request:
http://www.example.com/test//t...
Hello,
I have a Winforms DataGridView in my application. When the user selects a row and hits enter, I load a new form with details related to that row. It takes about a second to get the data and show the screen. Some of the users are pretty fast and they start entering keystrokes relevant to the form e.g Pg Down/Pg Up, even before...
hello,
i have a dual monitor setup and i want my c# application to maximize its window on a specific Screen.
how can i do that?
thanks!
...
I have been keeping up with .NET CLR for awhile now, and my language of choice is C#.
Up until recently, I was unaware that C++/CLI could produce "mixed mode" executables capable of running native and managed code.
Now knowing this, another developer friend of mine were discussing this attribute and trying to determine when and how thi...
I have a WSE 3.0 based web service running in Windows Server 2003 under IIS 6.0. I want the web service process to impersonate the client user that sends the web service request, however the service is not impersonating the client.
The web application has its own app pool, which is currently set to run under the Network Service identity...
Suppose I wanted to create an open source Windows Forms project written in .NET. I am pretty well-established in my opinion that the System.Windows.Forms suck big time. I love Developer Express' controls, but they cost an arm and a leg and I don't see how their per-developer licensing would make it possible to use them on an open sourc...
Suppose I wanted to create an open source WPF project written in .NET. I don't have a copy of Expression Blend, nor do I have the skillz in graphic design to make my own controls that look good. I love Developer Express' controls, but they cost an arm and a leg and I don't see how their per-developer licensing would make it possible to u...
Hello,
When connecting to a Sybase ASE database via ODBC using the code below, I'll occasionally get a '[IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed' error.
Can this be caused by my code? I read here that I should be using the 'With' statement instead, but I don't understand how that would affect this.
T...
I'm looking for this list for Entity Framework. Ideally, I'd like to have a list of other supported methods (or members - e.g. constructors), e.g. for DateTime type.
...
I'm looking for such list for LINQ to SQL. Ideally, I'd like to have a list of other supported methods (or members - e.g. constructors), e.g. for DateTime type.
...
I am trying to write to a HiD driver in C# (V studio 2008) and decided to use the DeviceIoContol function to access the device. I'm however stumped as to what to substitute for the second parameter of this function, trawling the net hasn't yielded anything useful or explanatory so any ideas would be appreciated.
...
Hello Everyone,
I have been using the Windsor IoC Container for my web-based application, to resolve the data access layer implementation the application should use.
The web application's UI will consist of pages, and each page consists of small units called portlets. (Their concept is somewhat similar to widgets.) These so-called port...
I am constructing a regular expression that will contain a number of groups in a logical OR relationship ...
(group A)|(group B)|(group C)
This expression already successfully matches its intended sub-strings, but I need to add a final group that will match anything else, with the result that the target string will be entirely consume...
I have a function:
private string GetPropertyName(Expression<Func<object, object>> f) {
if ((f.Body as MemberExpression) != null) {
return (f.Body as MemberExpression).Member.Name;
}
return "";
}
And it is used this way:
string x1 = GetPropertyName(x => Property1);
string x2 = GetPropertyName(x => Property2);
str...
I have some C# interfaces exposed to COM:
interface IMyInterface
{
IMyListObject[] MyList
{
get;
}
}
interface IMyListObject
{
//properties that don't matter
}
So far I'm testing how our assembly is exposed to COM from C++ and most is working just fine.
My current problem is at one point I have 2 instances of IMyInterfac...
Hello guys,
I have a CheckBoxList that is populated via DataSource (each one with it's value coming from a database so I can't hard-code anything inside it), and I need to Add a button for details on the right side of an specific Item of the CheckBoxList when some event is fired.
Can i do that? how?
...
Any way in Silverlight to write pure XAML code for controlling story boards, by responding to any given event for a given control? For eg, when the user move the mouse over a panel, I might need to start the storyboard, and pause it when he moves the mouse out.
...
Hello Everyone,
I'm trying to wrap my mind around MEF.
There is one thing I don't understand.
Assume that I have an interface, named ISomething, which is a contract, and I have more than one assemblies in a folder that contains my application, and I have no idea how many ISomething implementations are in them, or which one contains one...
I'd like to expose a method over WCF something like GetEmployees(EmployeeColumn orderby), that returns a list of employees in an order.
I don't really want to create an enum EmployeeColumn that contains all possible column so the user can choose.
What do you suggest? I'd like to achieve this using linq-to-entities.
...