- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 4
- Posts with Downvotes
- 2
- Downvoting Members
- 4
125 Posted Topics
Re: Image.FromFile(/*put your path here*/); | |
Re: int fact(int rank) { for(int i = 1; i<rank;i++) i *=1; return i ; } try this, I don't test it you can test it | |
Re: Ok, I give u details or a road map about ADO.Net I think it's interessant to know that from at first. At contrast of the ADO plus where the connected mode is only connected , In the ADO.NET there are two modes, namely, the connected mode and the disconnected mode. … | |
Re: I guess that I understand your question u can use the code treeView1.Nodes.Insert(2, new TreeNode("Forth tree node")); | |
Re: Ok, IT_Techno there is a library that could helps you to perform your task [URL="http://itextsharp.sourceforge.net/"]The iTextSharp[/URL] Here is a tutorial how to use it to convert your own document to pdf files within your own application Tutorial [URL="http://itextsharp.sourceforge.net/tutorial/index.html"]http://itextsharp.sourceforge.net/tutorial/index.html[/URL] | |
Re: try this link it is for free and also consistant [url]http://www.c-sharpcorner.com/Beginners/[/url] | |
Re: I understood what you mean exactly, but the datagridview doesn't offer this possibility because cells have to be from a unique type for a given column | |
Re: first of all you must install the visual tools for office in your computer Excel.Worksheet oWorksheet = (Excel.Worksheet)YourApplication.ActiveWorkbook.ActiveSheet; oWorksheet.Cells[1,1]="populated"; | |
Re: You can use any culture that supports the dd-mm-yy format like the french one, for example to format the date time now in a format dd-mm-yy i can do as follow: cultureInfo culture = new cultureinfo("fr-FR"); string oFormatedDate = dtNow.ToString("d", culture); but the Ketanbece solution is better even it uses … | |
Re: I think that in addition to what has said in [url]http://fci-h.blogspot.com/2008/03/oo...rfaces_05.html[/url] about interfaces witch i find very interesting in fact. I can add other think Interfaces are comming to the world to avoid the multiples inheritences concept adopted for example by C++ language that causes somes problems and confusions when … | |
Re: You can also connect to the database using the connection wizard Data>Add new data source | |
Re: Here is a code to do that public void ConnectToAccess() { System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(); database. conn.ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data source= @"path \AccessFile.mdb"; try { conn.Open(); // Insert code to process data. } catch (Exception caught) { MessageBox.Show(caught.Message); } finally { conn.Close(); } } | |
Re: I guess that u didn't update your dataBase after each operation u know that the ADO.Net works in a disconnected mode that means every changements are made at the data set level and not in the dataBase to update your data Base u must use the DataAdapter.update() method | |
Re: I guess that u should use this way that I give for u it is more professional add using `System.Text.RegularExpressions;` to your project then Define a Regex object `Regex FormatControl = new Regex(@"\D");` the `@"\D"` indicate that only numeric expressions would be accepted then and this if block rtbQuantity if … | |
Re: I give u a brief peace of code First u must include using System.Net.Mail; //Initialize an SMTP client SmtpClient objSmtpClient = new SmtpClient(); MailMessage objMail = new MailMessage(); // Precise the mail adress sender and reciever MailAdress oSenderAdress = new MailAdress("dsd@dsdd.fd"); MailAdress oRecieverAdress = new MailAdress("sdsd@dsdsd.fd"); //Parameter the objMail objMail.From … | |
Re: u can do that using the GDI+ built in library witch contains a very useful classes to accomplish such purposes | |
Re: [URL="http://www.programmersheaven.com/2/CSharpBook"]http://www.programmersheaven.com/2/CSharpBook[/URL] | |
| |
Re: There are for algorithms of encryption/decryption with in the .Net framework DES algorithm, RC2 algorithm, Rijindael algorithm and TripleDES algorithm they are represented as classes First step is to include directive of cryptography witch is System.Security.Cryptography Second step is to create your own key, to do that string password = … | |
Re: I guess that u want print a current DataGridViewCell value to the text box u should implement the DataGridView_Click(object sender, dataGrideventArgs e) event handler by the appropriate code public void yourDataGridView_Click(object sender, DataGridViewEventHandler e) { /*Put the value of the current cell that has the focus into oString */ string … | |
Re: [url]http://msdn.microsoft.com/en-us/library/az4se3k1.aspx[/url] | |
Re: The Uri type is not string so you have to implement the code as follow [CODE] webBrowser1.Url = new Uri( "file:\\webpage\Maphs v1.htm"); [/CODE] | |
Re: Are you sure about the path wheather it is right or not | |
Re: [url]http://itextsharp.sourceforge.net/[/url] May this library helps you to handle pdf using C# | |
| |
Re: This is a sample using 4 columns id quantity unit price and a dynamically added column that caucates the total for the grand total you have to add a text box at the bottom of the page and summarize all values in the column 3 DataGridViewTextBoxColumn TotalColumn; private void Form1_Load(object … | |
Re: Windows application is the desktop application like word excel those are windows applications web application are simply the web site like dany web | |
Re: Why you don' use an UDF user defined function instead of a stored procedure | |
Re: If you use the console to input data then use Console.ReadLine() as follow Say that you want to enter a string Console.WriteLine("enter your name"); string Name = Console.ReadLine(); Now if you want enter variable other than string Console.WriteLine("Enter your age"); int Age = Convert.ToInt32(Console.ReadLine()); | |
Re: There are a didderence between abstract classes and interfaces, the abstrac classes are used to derive new objects, like humanoid that we could use to derive Persons, Monkey chid types public class Humaoid { public Humanoid(){} public void StandOnTwoFeet(){} public void Walk() { //TO DO some code implementations here } … | |
Re: Could you tell me what is your final purpose may I give you better idea | |
Re: What is your request, do you need some help on doing a C# project for example? | |
| |
Re: It is impossible to add a datagridviewrow to a data bound data grid, if you do you will recieve an exception at run time | |
Re: if you want video streaming [url]http://www.cogitance.com/files/videoprocessing/videoprocessing.htm[/url] If you want to use webcam [url]http://www.c-sharpcorner.com/UploadFile/yougerthen/810262008070218AM/8.aspx?ArticleID=ff4fcbec-be17-45ee-9a84-556c5a2107a7[/url] | |
Re: No, If you have the right tlb you have to generate a dll file issued from it using the dotnet tool Regasm.exe statr>all program>visual studio 200*>Visual studio tools>Command prompt then type regasm path\yourfile.tlb path\yourSugesstedName.dll then register it using regsvr32.exe tool using the console C:\WINDOWS\System32\regsvr32 path\yournew generated dll | |
Re: You can create an Isolated storage files within the flash and set the securitypermissions so that reading accessing and writting from and to that isolated storage file is under control | |
Re: you can identify each assembly by its version you can go the the assemblyinfo.cs within the project you will find there all information about a given assembly | |
Re: In addition to what LizR said You can create your costum exception too ex: public class OddNumbersException:ApplicationException { public OddNumbersException() :base("Odd numbers not accepted"){} } in the Core programm you can throw and catch the new exception for example if( x Mod 2 != 0) { throw new OddNumbersException(); } … | |
Re: It's very simple you can do this in one single line First, include the System.IO; if you have permission to read from files string Contents = new StreamReader(path).ReadToEnd(); | |
Re: In addition to what the charmant Antenka said you can derive an object form the datagridview and ovveride the protected method OnCellValueChanged to change the cell backcolor you can use the celltemplate property of the datagridcolumn object | |
Re: A static method belongs to the class rather than to the objects of the class. using System; class MyClass { private static int x = 20; private static int y = 40; public static void Method() { Console.WriteLine("{0},{1}",x,y); } } class MyClient { public static void Main() { MyClass.Method(); } … | |
Re: In the configuration file the *.config file make this modification using the binding redirect element to redirect your appliation to use the new version and it will work <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="AssemblyName" publicKeyToken="32ab4ba45e0a69a1" culture="neutral" /> <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration> | |
Re: when we go for webservices in .net webapplications? example plz? 2.what is mean by delegate and asynchronous delegate in .net 3.static method with example?plz A web service is used like any other applications that provide services like dll for example it could hold a set of web methods those serves … | |
Re: OK, for the first question The dictionaries are a sort of collections those represent a collection of keys and values, each value corresponds to a unique key, they could be used also in a generic context exemple: Dictionary<int, string> oDictionary = new Dictionary<int, string>(); oDictionary.Add(1, "One"); oDictionary.Add(2, "Two"); oDictionary.Add(3, "Three"); … | |
Re: Check if the remote server is not the server may be shut down |
The End.