Im in a fix. need to download a zip file from network location and then decompress it on local machine and use the files. The only constraint is i cannot use any third party dll.
Please reply fast. its very urgent.
...
Possible Duplicate:
How to copy value from class X to class Y with the same property name in c#?
C# 4.0
If i have N numbers of POCO objects with the same properties (the same names and types)
I want to convert them one to another. They dont have any parent relations, the just POCO.
I may type converted function to copy just ...
Hi.
I have same settings for all of my forms
for example color , font , align, etc
How can i do these settings for one form and inheriting it on all forms.
thanks.
Edition 1 :
i am using Windows Forms.
...
I am maintaining an application which currently checks to see whether MS Access 2007 is installed. It does this by verifying that a registry key exists.
public bool IsAccess2007Installed()
{
RegistryKey rootKey = Registry.ClassesRoot.OpenSubKey(@"Access.Application.12\shell\open\command", false);
return rootKey != null;
}
How...
As the title says, it is possible to launch Download Manager (such as Orbit) passing the URL of the file to download?
Edit:
How can I check how those programs are expecting the url???
What parameters are needed to be passed ??
My problem is , I do NOT know how those programes are expecting their inputs.
Before that, I also would like ...
Consider a simple setup:
// _conn is the OdbcConnection with a MySQL-Server (MySQL-Connector 3.51)
// _cmd is a created OdbcCommand
// Constructor has created the objects successfully
public void DoSomething() {
if(_conn.State == ConnectionState.Open)
_cmd.ExecuteNonQuery();
}
Now my problem is, that OdbcConnection.State...
I am working on a smartphone application, where I have a DataGrid in winform.
I want to get the value of cell of the selected row..
...
hello.
i have both a web gui written in C#, running on IIS server and C++ written engine, running on apache.
i need my web gui to encrypt and the C++ engine to decrypt the data.
what equivalent function can i use to achieve my purpose ?
...
Hi everybody, I have a database like this:
My question is "How to mapping this database using castle active record?"
I've tried this code:
Campaign:
[ActiveRecord("[Campaign]")]
public class Campaign : ActiveRecordBase<Campaign>
{
private long m_ID;
[PrimaryKey(Column = "`ID`")]
public long ID
{...
Initial conditions:
DateTime moment
string key
double value
somewhere across the code i want to
Add("2010.08.09 12:55:34", "px_ValX", 10);
Add("2010.08.09 12:55:35", "px_ValX", 1);
Add("2010.08.09 12:55:35", "px_ValY", 12);
Add("2010.08.09 12:55:35", "px_ValZ", 100);
Add("2010.08.09 12:55:38", "px_ValZ", 5);
and then i want to ...
I'm stuck in getting the direct link of the video file on dailymotion and blip.tv website.
Ex:
direct video url of http: //www.dailymotion.com/video/x96bku_the-forest-short-animation-film_shortfilms is http: //proxy-36.dailymotion.com/video/684/114/15411486%3amp4_h264_aac_hq.mp4?auth=1281348558-2a834e9c8537ef9c8301dcae7c5c565a
http: //b...
i want to view the functions being called one after the other when i click on some web page ... obviously i have the code running on my local machine..
i have used Visual studio 2010 for the development....
is there a tool to do that where i can see which function is calling the other in VS 2010????
Apart from using breakpoints ....
...
Hello,
Let's say that I have a form which runs a stored procedure.
This stored procedure creates some rows in a table with pre-generated values and returns me a DataTable containing the rows created by this stored procedure.
On the form, I need to display this information on 3 different DataGridViews, so the user can change it.
The sch...
Hello,
I've been spending about an hour searching for a concensus on something I'm trying to accomplish, but have yet to find anything conclusive in a particular direction.
My situation is as follows:
I have a multi-threaded application (.NET web service)
I have classes that use objects that take non-negligible time to load, so I wou...
I have created a application for Net Suite which returns all the Net Suite contacts to the assistant.For this i have used the web service which lookup for the net suite contacts.
This web service returns me the records and working fine on my machine but the problem is that
when i put this application dll in the 3CX Assistant it gives me...
Hi, i wont to code somethink like this:
i have a ListView with some labels (this labels can be increment[+1] and decrement[-1]) by the user via buttons.
now i have the problem, that each of this list items have a details view at which the user can look at. but when he return to the overwiev page, all labels ar set back to the default 0....
How to get logged-in user's full name (the one he/she entered as his/her real name) using windows API or something else? For example how to get "John Smith", not "john" (as it were his username).
GetUserName(...) doesn't do the job because it returns the username, not the full name.
...
Hi,
This is related to my previous question, and thought will make this as a sparate question as it will make more sense.
I have created my Struct as :
public struct Smb_Parameters
{
public byte WordCount;
public ushort[] Words;
}
Without Assigning any Values when I try to get the size of the S...
Hi,
I'm trying to execute a Redirect from a method attribute. It seems to work:
public class MyAttribute: ActionFilterAttribute {
[..]
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
[..]
filterContext.HttpContext.Response.Redirect(urlToRedirectTo, true);
[..]
The onl...
Hi,
What I want to do is basically take any generic DataTable and then
Convert all the DateTime columns into SqlDateTime Columns. (i.e if the datetime column value = datetime.MinValue then Set it to SqlDateTime.Null)
Is there anyway I can do this without altering the original datatable (i.e withoutadding computed columns ) or having t...