|
how can we use printdailog control in an application?
|
|
|
|
|
how can we use this control?
|
|
|
|
|
Hi ,
Can anyone please tell me how to completely stop the Outlook Security Alert whenever I am trying to access emial data .( the security alert that asks the user whether to allow the access to the outlook for maximum 10 minutes )
Thanks,
|
|
|
|
|
I doubt you can.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi guys,
I need your help on doing the following:
I am creating an outlook addin project and I need to have an event whenever an item is Sent I popup a messgeBox to the user with the Sent item data ex: Sent To or by SentOn
Thanks,
Nermeen
|
|
|
|
|
hiii,
iam working on a application using asp with C#.net,
iam not able to get how to insert data from textbox into database.
hope u will help me out of this..
suhasini
|
|
|
|
|
first u need SQLDataSource object
you can drag drop it from the toolbox.
set the connection string
and specify the query/stored procedure for the insertion and then set the datasource of your text box equalts to your SQLDataSource..
or
u can do that through coding.
in old .net(1.1) style
make a object of SQLConnection class (set the connection properties)
make a object of SQLCommand object (set the query)
call SQLConnection's object's Open method
and then execute the query
there u go !!!
|
|
|
|
|
What is the database ? Does google not work where you live ? Even this site has heaps of info on how to work with a database.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Try this article.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi,
I am using "Setup and Deployent" first time, and I need to know some tips, technics or samples to make Installer Patch.
Thank you
|
|
|
|
|
Hi bashir,
Follow the links given below.
Hopefully, they will help you.
http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/SetupProjects12022005022406AM/SetupProjects.aspx?ArticleID=0488bf0b-7cf6-4e31-a9b5-38aa4ae8cd47
http://www.c-sharpcorner.com/UploadFile/mgold/CustomInstallMG11102005235312PM/CustomInstallMG.aspx?ArticleID=d53df0bd-9088-4b42-a919-e9eb51158856
Praveen Raghuvanshi
Software Engineer,
Wins Infotek Pvt. LTd.
India.
|
|
|
|
|
Thank you praveen raghuvanshi
|
|
|
|
|
1 - it's better to use setup and deployment wizard to detect all the dependencies..
2 - if your application uses a dll from CommonFiles folder than u have to add those dll's manually
|
|
|
|
|
|
Hi
Ever since I read an article about test animation I have been trying to build a program to run and log me in to some of the many sites I check daily. However I have run into a few problems i can not get around. The site I read the article at is (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/)
1. when I have ie.DocumentComplete.WaitOne(); in the code i get the error
The event 'SHDocVw.DWebBrowserEvents2_Event.DocumentComplete' can only appear on the left hand side of += or -=
I don't understand why I am getting this error because it worked in the example
2. When debugging after i get to HTMLDocument doc = (HTMLDocument)ie.Document; in the cmd window i get this error
Unable to cast COM object of type 'System._ComObject' to interface type 'mshtml.HTMLDocument'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}' failed due to the following error: No such interface supported <exception from="" hresult:="" 0x80004002="" <e_nointerface="">>.
internetExplorer ie = null;
Process p = Process.Start("iexplore.exe", "site using php login");
InternetExplorer ie = // code to find correct IE
HTMLDocument doc = (HTMLDocument)ie.Document;
Console.WriteLine("Setting Text Box 1 to 'UserName'");
HTMLInputElement textBox = (HTMLInputElement)theDoc.getElementsByName("username");
textBox.value = "Bla";
Thanks for all the help
|
|
|
|
|
I have a https page and i need to click the 'Save' (it is a graphical button ),want to automate from c#
|
|
|
|
|
|
I m already doing it with internet explorer ,i ve alredy done what u told me to do ,kindly provide me with the chunk of code for graphical button ,thank u
|
|
|
|
|
I'm sorry but I can't "provide" you with something I do not have. Keep trying and I'm sure you'll find the answer.
Good luck!
|
|
|
|
|
what are generic in c#
Ashwani
|
|
|
|
|
its a new feature in c#2.0
Ashwani
|
|
|
|
|
it avoids object type casting
Ashwani
|
|
|
|
|
Whats this ? question is yours and replies are also from your side
Take a look
Generics are classes, structures, interfaces, and methods that have placeholders (type parameters) for one or more of the types they store or use. A generic collection class might use a type parameter as a placeholder for the type of objects it stores; the type parameters appear as the types of its fields, and the parameter types of its methods. A generic method might use its type parameter as the type of its return value, or as the type of one of its formal parameters. The following code illustrates a simple generic class definition.
Visual Basic Copy Code
Public Class Generic(Of T)
Public Field As T
End Class
C# Copy Code
public class Generic<t>
{
public T Field;
}
C++ Copy Code
generic<typename t=""> public ref class Generic
{
public:
T Field;
};
When you create an instance of a generic class, you specify the actual types to substitute for the type parameters. This establishes a new generic class, referred to as a constructed generic class, with your chosen types substituted everywhere that the type parameters appear. The result is a type-safe class tailored to your choice of types, as the following code illustrates.
Visual Basic Copy Code
Dim g As New Generic(Of String)
g.Field = "A string"
C# Copy Code
Generic<string> g = new Generic<string>();
g.Field = "A string";
C++ Copy Code
Generic<string^>^ g = gcnew Generic<string^>();
g->Field = "A string";
The following terms are used to talk about generics in the .NET Framework:
A generic type definition is a class, structure, or interface declaration that functions as a template, with placeholders for the types it can contain or use. For example, the Dictionary class can contain two types: keys and values. Because it is only a template, you cannot create instances of a class, structure, or interface that is a generic type definition.
Generic type parameters, or type parameters, are the placeholders in a generic type or method definition. The Dictionary generic type has two type parameters, TKey and TValue, representing the types of its keys and values.
A constructed generic type, or constructed type, is the result of specifying types for the generic type parameters of a generic type definition.
A generic type argument is any type that is substituted for a generic type parameter.
The general term "generic type" includes both constructed types and generic type definitions.
Constraints are limits placed on generic type parameters. For example, you might limit a type parameter to types that implement the IComparer generic interface, to ensure that instances of the type can be ordered. You can also constrain type parameters to types that have a particular base class, that have a default constructor, or that are reference types or value types. Users of the generic type cannot substitute type arguments that do not satisfy the constraints.
A generic method definition is a method with two parameter lists: a list of generic type parameters, and a list of formal parameters. Type parameters can appear as the return type or as the types of the formal parameters, as in the following code.
Visual Basic Copy Code
Function Generic(Of T)(ByVal arg As T) As T
Dim temp As T = arg
...
End Function
C# Copy Code
T Generic<t>(T arg) { T temp = arg; ...}
C++ Copy Code
generic<typename t=""> T Generic(T arg) { T temp = arg; ...};
Generic methods can appear on generic or nongeneric types. It is important to note that a method is not generic just because it belongs to a generic type, or even because it has formal parameters whose types are the generic parameters of the enclosing type. A method is generic only if it has its own list of type parameters. In the following code, only method G is generic.
Visual Basic Copy Code
Class A
Function G(Of T)(ByVal arg As T) As T
...
End Function
End Class
Class Generic(Of T)
Function M(ByVal arg As T) As T
...
End Function
End Class
C# Copy Code
class A
{
T G<t>(T arg) {...}
}
class Generic<t>
{
T M(T arg) {...}
}
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Have a look at Wikipedia's article on generic programming[^]. It's a broad article, but still applies to C#.
|
|
|
|
|
The Article by Ansil Generics[^] In CP will help you.
Regards,
Satips.
|
|
|
|