I'm using Visual Studio 2008 Pro to create a VB Winform App. I have some custom configuration settings as well as a MS SQL connection string in my app.config file.
What is the best method to insure that no one can read these settings in the app.config?
Are there any other area's that would have the connection string in plain text that...
I'm not entirely sure this is possible.
I have a legacy GUI application written in C#. Using AttachConsole(-1) (from kernel32.dll) I can add a console window if it is called from the command line. I've even been able to write a module to run through basic use cases and make it look as if it is a console application. I don't show the win...
Coming from the Ruby community and approching IronRuby for desktop application development, I have little interest in using a .NET based ORM such as Linq. I want to use the ruby-way of data access that I've come to love from products such as ActiveRecord, DataMapper, and Sequel.
After much searching I ran into a brick wall trying to ge...
Is there a way to know how much space a serialized object transmitted in a WCF netTCP binding takes?
I am getting a
The socket connection was aborted.
This could be caused by an error
processing your message or a receive
timeout being exceeded by the remote
host, or an underlying network
resource issue. Local socket timeou...
A window is not showing in the task bar, only in the system tray. How can I make it show up in the taskbar as well?
I tried the following code, but it had no effect:
int windowStyle = GetWindowLong(pMainWindow, GWL_EXSTYLE);
SetWindowLong(pMainWindow, GWL_EXSTYLE, windowStyle & WS_EX_TOOLWINDOW);
And, this is NOT my form! I'm getting...
Hi,
In Silverlight all socket calls are restricted to being Async - I have an API which I share between .NET and Silverlight and its based around blocking socket calls. Is there any way to fake or wrap the async socket calls in Silverlight to make them behave like blocking sockets?
...
I was reading custom serialization article on msdn: http://msdn.microsoft.com/en-us/library/ty01x675%28VS.80%29.aspx
It mentions that there are two ways of implementing custom serialization:
1, using OnDeserializedAttribute, OnDeserializingAttribute, OnSerializedAttribute, OnSerializingAttribute
2, implement ISerializable interface
Ac...
I am faced with the following issue and at this point I feel like I'm severely lacking some sort of tool, I just don't know what that tool is, or what exactly it should be doing.
Here is the setup:
I have a 3rd party DLL that has to be registered in GAC. This all works fine and good on pretty much every machine our software was deployed...
Very simple question, what would be your way of storing 100 KB - 2 MB objects in memory? Object is made of 3 doubles and two strings (both mostly under 5 chars long). Would using struct instead of class be any better?
EDIT: I don't know why I said double, it is float .. :S
...
I want to do the following:
<TextBlock Text="{Binding Result}">
I want to Color this based on an equality check on Result, what's the view centric way to do this? I remember reading about template selector, is that the right choice here?
example:
Text="Pass" Color="Green"
Text="Fail" Color="Red"
I'd like this to be dynamic so t...
I have a WCF webservice that needs to return data in table form, basically just columns and rows of simple text.
Right now, I am using a datatable but that is giving me headaches. Would another type such as a 2D array of strings work effectively well, maybe even better?
What datatype would be best with the least amount of complications?
...
Is there a library out there that can input SQL create/schema statements and construct a XSD or some sort of in memory schema model. Even if it's a DataTable. It needs to have a binding to .NET.
...
I'm maintaining an ASP.NET Web application that was originally created by an outsourcing firm but is now in-house. I've noticed that the previous Developers added several Javascript functions to the Master Page that seem to handle postback events. Here's a code sample -
var isPostBackEvent=false;
function ValidatePostBack()
...
I am creating an application in C# that is essentially automating a submission process. I am using an arraylist of web browser to make it multi threaded. The browser windows are never displayed they are just in memory, and from there i navigate them, and submit the form on the document completed etc. And for the most part it works fine....
I am curious to know if I should minimize the code that goes inside a try/catch block or it really does not matters.
public bool ObjectExists(string stringTest, string againSomethingElse)
{
if(true) {}
else {} //Code here is better/worst/same
try
{
//Versus code inside try/catch block...
I would like to know if there is a way to use .NET's CacheDependency infrastructure, but cache to a database table or file, rather than the in-memory cache. I think the Enterprise Library may be able to do this but I would prefer something simpler if possible.
I want the cached data to be put in an SQL table or into a file on disk, rath...
Hi All,
I am using a CustomPeerResolverService (running in a windows service which hosts it in a ServiceHost) with a number of peers on a peer to peer network. My server address is,
net.tcp://127.0.0.1/Server
The idea being that the server and peers would work on a local machine when there was no network connection.
I have extended t...
I have a large website that seems to be sucking up all the memory that is being allocated. There is nothing else on the server beside this site. Within a week it eats away the 2 gigs and requires a restart. Currently this is server 2008 32 bit using IIS 7. We are reinstalling to use 64bit and add more memory. It would be nice to be able ...
The question title pretty much says it all.
But, how does COM support them? Does C++ support them? Is is ignorant of me to assume that all COM code is written in C++? Or is COM just a methodology, a way to architect your app?
I'm curious. I've been writing lots of COM automation from C# lately and this question just occurred to me....
Dear Friends,
What exactly is the use of DUMPBIN.exe as well as COREFLAG.exe?? and when to use it??
...