I have a windows application which is published on a website and can be installed by users using 'Click once' method.
I have several users, who will be working on the app at any given point of time.
I'm thinking of implementing a Messaging system, wherein system administrator can broadcast messages to all the currently running instance...
I am not sure if XSP2 is using mono or .NET in my Windows box.
How can I be sure?
...
Hi Guys!!
I am reading data and filling a data set and want to return xml, in a .net web service.
so far I am trying to use
return mydataset.getxml();
but it is not helping as my method return type is "DataSet"
so is there any way I can get a well formatted xml.
Thanks
...
How can I open a console window from within a non-console .NET application (so I have a place for System.Console.Out and friends when debugging)?
In C++ this can be done using various Win32 APIs:
/*
EnsureConsoleExists() will create a console
window and attach stdout (and friends) to it.
Can be useful when debugging.
*/
FI...
Hello,
I need to InterOp Win32 code (unmanaged Win32 DLL's and Exe) completely with .NET. I need to call Win32 unmanaged code(DLL exported functions) at runtime i.e (knowing the types of data types in Win32 signatures and need to pass data according to that type at runtime).
This is 100% possible in case of COM. You can convert COM unm...
I have a form and have dropped a vertical scrollbar on it.
Whatever I set the "Maximum" property to, the scrollbar will only scroll up to that value minus 9.
Why is that?
I'm using C# in Visual Studio 2008. (WinForms)
...
Not sure if the question wording is accurate, but here's what I want to do: I want to databind a class with some strings in it:
class MyClass
{
public string MyProperty { get; set; }
public string MyProperty2 { get; set; }
}
When databinding, everything behaves normally. On the back end, I'm writing to a file and I want MyProp...
I know it's a simple question but I really can't find anything on Google. Sorry if I'm not searching right.
I created 2 pages and in the first one I have a button.
What should I write in the C# code to change to redirect me on the second page?
I usually know my way around C# but I'm totally new in ASP.
...
When I try to create an object of Graphics, why doesn't the following work?
System.Drawing.Graphics graphicsObj = new System.Drawing.Graphics();
(I am aware that I could create a private System.Windows.Forms.Panel Obj; and then do CreateGraphics() if I wanted it to work)
I tried to find a custom constructor for Graphics, but I couldn...
I'm trying to put row header text based on a converter function of the index of the row.
I found a way to bind to the datagridrow like below, but i can't find how to get the row index of the datagridrow object.
<DataTemplate x:Key="MyRowHeaderTemplate" DataType="DataRowView">
<TextBlock HorizontalAlignment="Center" VerticalAlignment...
You'll appreciate the following two syntactic sugars:
lock(obj)
{
//Code
}
same as:
Monitor.Enter(obj)
try
{
//Code
}
finally
{
Monitor.Exit(obj)
}
and
using(var adapt = new adapter()){
//Code2
}
same as:
var adapt= new adapter()
try{
//Code2
}
finally{
adapt.Dispose()
}
Clearly the first example in each case is more readable. ...
I'm trying to create a set of button which have an off or on state, much a checkbox without the check. Ideally I want the colour to change to represent the two different states off(red), green(on). I've tried setting a control template but this only changes the colour for a selection, then reverts back to it's original colour once the ...
Can someone please explain the difference between ViewState and Session?
More specifically, I'd like to know the best way to keep an object available (continuously setting members through postbacks) throughout the lifecycle of my page.
I currently use Sessions to do this, but I'm not sure if it's the best way.
For example:
SearchObje...
I currently have some XML similar to the following
<First Node>
<Second Node>
<Third Node>
<Fourth Node>
'Lots of Children in here
</Fourth Node>
</Third Node>
</Second Node>
</First Node>
The issue is I know the exact names of the First, Second and Fourth Nodes. However t...
I want to know if one class is inheriting from another, is it better to have the classes share a lock object that is defined at the base class or to have a lock object defined at each inheritance level.
A very simple example of a lock object on each level of the class
public class Foo {
private object thisLock = new object();
priva...
Hello everyone,
I'm using soft deleting in my database (IsDeleted field). I'm actively using LoadWith and AssociateWith methods to retrieve and filter nested records.
The thing is AssociateWith only works with properties that represents a one-to-many relationship.
DataLoadOptions loadOptions = new DataLoadOptions();
loadOption.LoadWi...
Hi all,
My app Windows forms .NET in Win XP copy files pdfs in shared network folder in a server win 2003.
Admin user in Win2003 detects some corrupt files pdfs, in that shared folder.
I want check if a fileis copied right in shared folder
Andre Krijen says me the best way is to create a MD5Hash of original file. When the file is co...
I am creating a project template.
I want the project template (at creating / opening the new project) to prompt an installation for a ClickOnce application.
How do I do that?
This did not help: http://stackoverflow.com/questions/502896/visual-studio-setup-deployment-adding-pre-requisits
...
I've been writing client/server applications with Winforms for about six years now, but I have yet to venture into the web space (neither ASP.NET nor web services). Given the direction that the job market has been heading for some time and the fact that I have a basic curiosity, I'd like to get involved with writing web services, but I d...
Hey,
My problem is that when i try to insert a GridView in ASP.NET webpage it doesn't appear in the Browser.
...