I am trying to figure out Drag And Drop using the features in the FluidKit.
I downloaded the Demo app and both the drag and drop have this line of code in it:
private static DataFormat SupportedFormat = DataFormats.GetDataFormat("FluidKit");
What is this doing? I don't see anywhere that the format that is being gotten is set. How d...
Roughly a month ago (after christmas) i found this post and realized how useful reflection is. So i decided to learn and got carried away and spent around 10days on this which became a ORM for sql(ite).
My question is, is there anything wrong with this ORM is used? I never used an ORM before and i heard you should not write one yourself...
My datagrid (DevExpress) automatically will populate a grid based on the public fields of a business object.
What attribute can I place on the field to tell WinForm databinders to ignore it?
[???HideFromDataBindingSources???]
public bool IsSecurity
{
get { return _isSecurity; }
set { _isSecurity = value; }
}
...
I am using:
Response.Clear();
Response.ContentType = "pdf";
Response.AppendHeader("Content-Disposition", "attachment; filename=test.pdf");
Response.WriteFile(this.txtFileName, true);
Response.Flush();
Response.End();
which shows a prompt to download the file and the prompt by default has "Open", "Save" and "Cancel" buttons...
My .NET app uses a WebService and, in some clients, I am getting HTTP 407 (proxy authentication required). So I need to ask the user to input his user/password credentials.
So, how to use the default Windows dialog? (see below)
Is it possible in .NET? Or will I need to build my own custom form?
...
in .net, I have a Toolstripcontainer in a base form
When I inherited this base form, the inherited form not allow to modify the toolstripcontainer and a themed toolstrip on it is not visible
Anyone have a good approach to inherit it or reuse it without to put it in any form?
...
I am looking to modify a .NET application that has a SQL Server backend to make it work with Oracle. Has anyone done this? Any pitfalls that I can avoid?
...
i have written a simple java stand-alone program that calls a .net 1.0 web service. no problem. if i take that same program structure and call a .net 3.5 web service, the java program fails. for whatever reason, the parameters passed to the 3.5 service are NEVER received.
so can someone point the way to an example or tutorial where i ca...
I'm using Visual C#.NET, and am making an app that uses winforms. I essentially need to open multiple files as strings, and manipulate the data in various places without saving the information back to the file. How do I go about storing this data so that I may use it in various parts of my code?
...
I am wanting to write a WCF web service that can send files over the wire to the client. So I have one setup that sends a Stream response. Here is my code on the client:
private void button1_Click(object sender, EventArgs e)
{
string filename = System.Environment.CurrentDirectory + "\\Picture.jpg";
if (File.Exists(filename))
...
I'm confused about one point, if i declare an instance of Object class. It will be reserved on the heap, but when i declare, any primitive type instance which derived from System.ValueType which is further derived from Object class, then the part of it used by Object class is also reserved on the stack.
Why is that, or is it the case th...
I am trying to figure out what I am doing wrong in the below LINQ statement. It doesn't like the third SELECT. It finds tblAddresse.tblAdminCounty in Intelisense when I am typing the query but when I type the SELECT after it it freaks.
Does it have to do with how tblAddress and tblAdminCounty are related? I would have thought that ...
I have an sql server table with a timestamp column. Is there a way to force the timestamp column to change without an actual update of the record?
The reason I am asking is because I want the record's timestamp to change when a record is inserted/updated/deleted in a child table.
Timestamp may not be the best way to go about doing this...
I have to below 2 LINQ statements. They both return (seemingly) the same result set. Can anyone explain to me why I should use one way versus the other? Is it as simple as "You say potato, I say potato; you say tomato, I say tomato"?
Here are the two flavors of LINQ -->
1) The two lets below are to private Methods that take an ID an...
I am using the DateTime.ToFileTime and FromFileTime methods to store and retrieve timestamps in a database. The mininum windows file time is midnight, Jan 1, 1601. Is there a constant similar to DateTime.MinValue, that describes this value?
...
I am attempting to store a variable length number that can have leading zeros as a part of that number.
Is there a class in the .NET framework capable of storing values like this without losing information about leading zeros, and could surpass the upper limit of a long?
I am currently storing them in a class like this, is there any wa...
This has already been asked Here, but not by me and the OP accepted an answer which did not help me. Thus far, I've tried logging in from different browsers, changing the web config, clearing cookies, and loading from an external machine.
In fact, I eventually did discover that the problem is specific to my own machine; when I publishe...
I'm trying to get the value of a property that is a single dimensional array via reflection
I tried something like this: (try catches removed for clarity)
string[] fieldOrder;
PropertyInfo fieldOrderColumn;
fieldOrderColumn = targetType.GetProperty("OrderArray");
if (fieldOrderColumn == null)
throw new Exception(targetType.Name +...
I'm trying to stream a pdf file. Most of the files open without any problems but sometimes it fails. When it fails, it also looks like file size is smaller than the original one. For example, I was trying to open a 47K file but when the streamed output to the browser it's only 44.5K. When check the size of the stream (result.FileStre...
I notice i do this pattern a lot. Is there a better way to write this?
bool hit=false;
foreach (var tag in tags)
if (tag == sz)
{
hit = true;
break;
}
if (hit) continue;
//tags.add(sz); or whatever i w...