When deploying a software package containing a VB6 executable and a .NET component, is the .TLB file needed?
If not, would it be sufficient to include the .DLL and have it regasm-ed during installation?
...
Hi all,
I saw with Reflector a very interesting method in System.Web.UI.Page : DecryptString(String s).
But it is a "internal static method", so how can I use it ? (I dont find it in msdn doc)
Thanks a lot !
...
I have found a situation where a WCF client can crash a WCF ServiceHost if the ServiceHost has a UserNamePasswordValidator that takes a while to process. I would like to hear any suggestions on solutions before I go throw this at Microsoft.
The steps to reproduce is:
Open a channel
Call an API method which takes 10 seconds to return.
...
I have a hierarchy in my website project as below:
[CustomControl1 - folder]
- CustomControl1.ascx
- CustomControl1.css
- CustomControl1.js
I load css and js files dynamicaly based on which controls are used on particular page. I am doing it by using following code:
protected void Page_Load(object sender, EventArgs e)
{
CustomCon...
Possible Duplicate:
Is .NET Remoting really deprecated?
I read somewhere that with the addition of WCF, the old thing Remoting is obsolete. I guess Remoting was in version 2.0 whereas from version 3.5, WCF is there.
...
I have a .NET 4.0 WPF application where the user can change the language (culture)
I simply let the user select a language, create a corresponding CultureInfo and set:
Thread.CurrentThread.CurrentCulture = cultureInfo;
Thread.CurrentThread.CurrentUICulture = cultureInfo;
In the C# code this works fine. However in the WPF controls the...
Hey Friends, Please help me. See, I have created lots of sites in .net from a long time, bz i just know .net and mvc, mvc2. but every time google not support my sites, when i launch google come and got my site pages fastly but after that google just come everyday only my site homepage that's it. I don't know what the reason? is i m doing...
What is the most straightforward way to add a black button with white text in a WinForms Application? Simply setting the BackColor to black and the ForeColor to white the button border remains as before.
Do I need to subclass the System.Windows.Forms.Button class and take control of the OnPaint() drawing?
Thanks.
...
I am trying to utilize the OptionSet class in the following way:
string resultsFileName = null;
bool isHelp = false;
var p = new OptionSet() {
{ "r=|resultsFile=", "The file with the results", v => { resultsFileName = v; } }
{ "h|help", "Show this help", v => { isHelp = (v != null); } },
};
try
{
p.Parse(args)...
So this is something I guess many people want to do, mock a collection. In the past with Rhino I have done this with something like:
var col_mock = MockRepository.GenerateMock<ICustomCollection>(); // returns ICustom let's say
List<ICustom> col_real = new List<ICustom>();
col_real.Add(custom_mock1);
col_real.Add(custom_mock2);
col_real...
Hi,
can anyone tell me how to achieve the below scenario:
I have a windows form in which a windows user control(first user control) is present. On click of the button in the first windows user control I want to show another windows user control(second) and hide the first one.
Please let me know the procedure to do this.
Thanks in Adva...
I found that you can use Pick activity and this activity will contain a few PickBranches, each of which contains a Trigger and an Action. How do I tie the Trigger activity to any .NET event? for example, Timer.Tick event, Key pressed event, or perhaps my own event?
...
Hi there.
I have a very strange problem. I have a WCF service and a console application that invokes some of it methods. At some point, it can't invoke one of them any more. It just calls the method, but it never enters it. It just waits and waits.. and nothing ever happens.
Should I maybe somehow refresh the service client? I tried cr...
We're having mysterious network problems with MySQL. Simple update query (updating single row using index) usually runs immediately, then sometimes (let's say 1 in 1000 times) fails with timeout. Same with simple insert query. Database is not overloaded.
We suspect network problems and are looking for solution, so if anyone has had this...
A bit similar to this question.
My aim is to evocate a notebook-like look of the textbox.
OneNote does something similar, by setting background image of the editing surface. Of course it is not possible to align the lines in OneNote because the text can be freely formatted.
I would like to do this with constant font (no formatting)...
Hello!
I have a routing service of type System.ServiceModel.Routing.RoutingService shipped with .NET 4.0, two different services (contracts are different) and a client.
The idea is to use the Routing Service as an intermediary between a client and these two services.
I want a routing service to dispatch messages to a target service base...
The following method thrwos an exception in the line:
Point childPosition = vb.TransformToAncestor(surfaceWindow).Transform(new Point(0, 0));
But if you look at the code, the vb is surely a child of surfaceWindow. So why isn't this working?
if (!isExpanded())
{
Viewbox vb = new Viewbox();
...
Hi All,
I have a form with 2 dropdown (say: cmbA and cmbB) and 1 checklistbox (say: chkbox) and a button(say: btnsubmit). When I select drop down values (cmbA and cmbB), clicked on chkbox and after that when click on btnsubmit, application has to check the cmbB name in a excel sheet (Sheet1) (here sheet1, sheet2 are nothing but cmbB dro...
Hi everyone, currently I'm an internee and about to join in a project in which I have to take responsible for implementing the server side part.
The scenario:
_There are many kiosks, each runs a winform application, this application read barcode from customer's card and then send the info to server.
_The server has several web services,...
I'm logging exceptions to a database using a DatabaseTraceListener from Enterprise Library (code is pretty much as described here). Now I want to create another field in the database table and log some custom information (user id) there.
From what I understand I have to subclass CustomTraceListener and LogEntry, but I can't find any inf...