Question title is basically the entire question. In ASP.NET you can set the Culture/UICulture properties of a page by overriding the InitializeCulture method, or you can set the properties of the current thread.
What are the differences? What are the advantages/disadvantages of both? What situations would you use each option?
...
We are getting a really rare error during HTTP requests:
System.Net.InternalException: System error.
at System.Net.HttpWebRequest.SetAndOrProcessResponse(Object responseOrException)
at System.Net.ConnectionReturnResult.SetResponses(ConnectionReturnResult returnResult)
at System.Net.Connection.ReadComplete(Int32 bytesRead, WebExceptionSt...
Hi all,
I am currently looking for a way to search though a MembershipUserCollection.
At the moment the user will pick the role they wish to see. this could return 100's if not 1000's of records which are paged in a repeater. on the same screen the user can type in part of the user name they wish to find and it should filter the data...
Within Silverlight 4 printing with the printing API will it "auto-scroll" covered areas?
Excuse me if I'm not using the right terminology. For example, If I have a DataGrid and it has 10 items shown and 40 not revealved (but you could scroll to). Is there a way to print the whole DataGrid, rather than just the "screen shot" view.
...
.NET CF 3.5
How can I scale everything on my form ?
If I do this
this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
then the controls directly added on the form are properly repositioned BUT their size is not properly updated !
So how should I propagate the...
I have a ListBox with an altered datatemplate (it contains a hyperlinkbutton and a textbox for each item). I would like the button to not be visible by default, but to turn visible when the mouse is hovered over that particular list box item. The XAML I have tried so far doesn't work and i can't figure out why (by doesn't work I mean it ...
I have a static method that converts a html file and returns an XMLDocument object.
After doing extensive research, the following question has arised:
Can pass an XMLDocument object to a XPathDocument object, to make it easy when simply reading data from the document and not editing it.
Research01
MSDN
Please reply and let me know i...
I have a Windos::Forms::GroupBox which contains a Windows::Forms::ListView. When I add items, I add items to the ListView I tell it to resize but how do I do the same for it's parent GroupBox?
[edit] This is my custom resizing list control:
ResizingListView::ResizingListView(void)
{
}
void ResizingListView::ResizeVerticallyToItems(vo...
Hello
I have VS 2008 Professional and a Smart Device .NET C# project. I have ~100 cs files in total. The build takes very long time, I have to wait for linker approx. 1min (60s) every time i compile the project. I have Core i3, 4GB RAM, 7200rpm disk.
What may be the reason and how to optimize the build? Any Visual Studio options?
Rega...
I know this could be a subjective question, but I want to know your experience and an estimation of how long it would take for a Winforms programmer to switch to WPF and write a simple application.
I'm starting to build a windows application using .Net Winforms. Since the customer cares about the UI, I thought that it's a good idea to...
I am trying to discover whether a TCP connection is being dropped at the server after a given interval and have written the following code;
var tcpClient = new TcpClient();
tcpClient.Client.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.KeepAlive, true);
tcpClient.Connect(Ip, Port);
var status = tcpClient.Connected ? ...
Could some body explain exception vs error in asp.net
...
I'm writting an ASP.NET MVC application and I'm seeing a seemly random performance from a one of my actions. My initial throught is that the garbage collection is kicking in and pausing the app for a little while, but I can't seem to find a button/switch that will prove or disprove my theory.
For none java people out there -verbose:gc i...
hello
i work on an application , my application read serial number's a device , i want check the
serial number and my application work just with this device and does not work with other device
how do i encrypte and check this serial number that my application is not crackeable??
thanks
...
I am exploring the DynamicObject model in .NET 4.0. The application is one where an object will be described through some sort of text/xml file, and the program must create an object upon reading that file.
With DynamicObject, we can add members easily, given that we know the name of the member a priori. But, what if we don't even know ...
I am using Visual Studio 2008 setup project to create our installer. I want to disable msi auto-repair feature programmatically.
I think call MsiSetProperty(IntPtr hInstall, string szName, string szValue); in my installer's custom action maybe a way to go.
Something like:
MsiSetProperty(hInstall, "DISABLEADVTSHORTCUTS", "1");
but ...
Guys, as the title suggests, I am required to control access to a specific file on our server. I suggested, for the time being (rather than affording time for other routes until we can), that we simply use the web.config to lock this file down to everyone by means of a location/system.web/authorization setting.
This soon failed to prote...
I'm attempting to extract data from a number of XML files posted on the Internet using LINQ. I'm working with LINQPad and using C# Statements. All files have the same format and Element names. My goal is to extract the same Elements from each file and then report the elements in one row per file, creating a grid of sorts. This would then...
Is it possible to toggle a window between modal and non modal after it is visible?
This is what I need... call a method passing the window handle and set if I want it to be modal or not.
If possible, any sample will help a lot!
.net, c++ etc
thanks!
EDIT:
Why?
In this case, I'm using TWAIN to scan images, and "some" data sources doe...
Hi,
I've replaced someone at this company, and he was their SourceSafe guy. He kind of sucked at it, but he knew more than anyone else (i.e. anything at all) and so I'm kind of stuck for places to ask this question. Sorry.
Anyway, I've got a StartUp project (StartupProjectA) in Visual Studio that references projects A, B and C. I've go...