.net

Debugger runs only once per IDE startup.

Hi there, I have been using MS VS2010 debugger for quite some time now and didn't came across any problems untill today. As a tester I start my debugger in testing mode (single test debugging) right after loading the project and it starts a whole batch of tests written. Despite starting all the tests the debugger itself works properly...

System.NotSupportedException. The URI prefix is not recognized.

I have a WCF service, in two machine in Preproduction environment, machine A and machine B. Only in machine B, the service fails when I call it (from biztalk proccess), another machine is right. The configuration of service in both machines is the same. I get this error: System.NotSupportedException, mscorlib, Version=2.0.0.0, ...

Transparent picturebox over another picturebox.

How can I put a transparent PictureBox on another PictureBox? One transparent PictureBox works on my form but i can not put a transparent PictureBox over another PictureBox. Here is a picture from my problem. ...

VB.Net WinForms Form OnPaint() Transparency Refresh

Hi All, Long story short, I'm trying to write some toast-style popup notifications (similar to Growl) which should appear next to the system tray and stack as appropriate. I can handle the instantiation/location/etc... but I want to add a capability for non-rectangular toasts. I'd also like to have Alpha transparency so a semi-transpar...

Get PC's Monitor Information Using .NET / WMI

Is there anyway using WMI/.Net to grab monitor information such as Manufacturer, Serial Number, Monitor Size etc.? Using a script is an option as well, or can I query the registry directly to get this information? SELECT * FROM Win32_DesktopMonitor doesn't really return any useful information for me in this case. ...

Pass data from parent to dialog box

I have a combobox in a dialog box form. I need to fill this combo with the List<> from parent form. How to do that as I cannot pass the List<> via dialog box constructor. frmChild frm = new frmChild(); frm.ShowDialog(); ...

How can I know if a .net event is already handled?

I've written some code to handle an event as follows: AddHandler myObject.myEvent, AddressOf myFunction It seemed that everything was working at first, but when I ran the debugger, I discovered that oftentimes, myFunction would run several times each time myObject.myEvent fired. I figured out that I had allowed the code to add the ev...

Silverlight window boundaries

say your silverlight area on a webpage is 200px by 200px. you open a child window, is there a way to make it moveable outside the 200x200 silverlight area? or say you drop down a combo box, let the drop down go out side of the 200x200 aea? Thank you ...

ASP.NET - Dynamic Control Values & Postback

I'm trying to persist the contents of a textbox through a postback, and I've exhausted all of my effort but can't get it working right. What should happen is: User selects a radiobutton Depending which button was selection, a usercontrol is loaded to specify some data and a viewstate to say which enum type it's equivalent to. When th...

How to Call javascript function with argument from code behind ASP.NET ,C#?

I want to pass some argument to javascript function from code behind. My Javascript function as follow. how to send arg to this func. from server side code. function addTab(tabid,tablist) { //to Find the Panel var Panel = $find("<%=RadPanelBar2.ClientID %>"); //To find the Tab Strip var t...

.NET 4.0 MCPD Certification

My employer recently offered to pay for my training materials and exam for MCPD certification. Doing research, I've found that the only certification Microsoft lists on their site is for .NET 3.5. Does anyone know any information regarding when the 4.0 exams will be out? I'd really rather not go for 3.5 if it will be replaced by 4.0 in ...

How can I copy the selected contents of all cells in a DataGrid (including DataGridTemplateColumn) with Silverlight 4?

With Silverlight 4, I can select one or more cells (or rows and columns) in a DataGrid, hit Control+C and the contents are copied to the clipboard. Which is really cool. Upon Control+V, it can be pasted into Excel or some other editor. However, the if one of the columns is a DataGridTemplateColumn it's values are blank when pasted. Whi...

Event Handling in C++/CLI

I have a function, singleFrameEventHandler, that I wish to be called when a certain event, OnNewFrame, occurs. After doing some research, it seemed to me that functions which handle events have a void return type and take a parameter of the type that contains the event. From what I could find online, that is done like this: Function dec...

What class actually does the formatting of a composite format spec?

If I specifiy a FormatString property for some databound value of {0:00000}, where I want a number to always have five digits, padded with '0' where necessary, what method on what class is actually invoked to perform the formatting and return the formatted string? ...

Graphics library for .net, mono and silverlight

I have a C# application which renders 2D graphics into bitmaps using System.Drawing.Graphics. I now want to port this application to work on normal .net on windows, mono on linux and in Silverlight/Moonlight. But at least Silverlight is lacking System.Drawing. Since I don't want to maintain several copies of my rendering code I need one...

.NET convert Datetime to format Sortable date/time pattern ("s");

Guys, Im working with VS2008, .NET and C#, and I need to send to one of our clients a DATETIME variable. The problem is that they want the Date in the format Sortable date/time pattern ("s"). When I get the actual datetime, it is a Datetime object. When I format it to the given format is now a String object, and it has the format I w...

crystal report library for visual studio 2008

I have an rpt file that was created usign crystal report version 8 is there a library that is available for vs2008 that can convert the rpt file results to a pdf file? i tried to install crystal report runtime 2008 in windows 7 but it is not installing nor giving any errors pls help -Vivek ...

.Net WinForms TabControl Steals Focus on form activation

Hi Guys, I wonder if there is anyone who can help me? The issue I have is a windows form TabPage stealing focus upon form re-activation. The form has a TabControl with four or five TabPages. Each tab page has many various controls. The scenario is as follows: A user tabs through a few controls on the first TabPage and a new form is sp...

Is it possible to debug a ASP.NET Web Application that's not started from within Visual Studio?

The default ASP.NET web server that launches from within Visual Studio (Casini) is a little buggy on my development machine, so I like to publish to a local IIS instance on my dev machine and look at the web application there. However, I'm not automatically in "Debug Mode" when I launch the application this way. I know that VS 2010 has...

how to do this using linq?

hello, please help me to figure out how to replace the loop below with a linq expression: using System.Web.UI.WebControls; ... Table table = ...; BulletedList list = new BulletedList(); foreach (TableRow r in table.Rows) { list.Items.Add(new ListItem(r.ToString())); } this is a contrived example, in reality i am not going to co...