- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
38 Posted Topics
| |
Re: //designer.cs [code] this.button.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.button_KeyPress); from.cs- private void button_KeyPress(object sender, KeyPressEventArgs e) { if(e.KeyChar()=='n') {//ur code} {} } [/code] | |
[CODE] textBox1.Text = File.ReadAllText(ofd.FileName,Encoding.UTF8);//working richTextBox1.Text=File.ReadAllText(ofd.FileName, Encoding.UTF8)//not working;[/CODE] i write the above code, in file there are some of my native language, which came nicely in textbox but not in richtextbox, richtextbox showing some boxes. i m now use multiline textbox to get rid of that, but it would be nice … | |
Re: this type of post waste time, should delete this, because in urgent search i get these ridiculous page. :( | |
[CODE]FileInfo[] Images; Images = Folder.GetFiles("Image Files (JPEG,GIF,BMP)|*.jpg;*.jpeg;*.gif;*.bmp|JPEG Files(*.jpg;*.jpeg)|*.jpg;*.jpeg|GIF Files(*.gif)|*.gif|BMP Files(*.bmp)|*.bmp|All Files|*.*", SearchOption.AllDirectories);[/CODE] getting error here [B]An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Illegal characters in path.[/B] completely confused because it works nice in other app. what i m missing? help | |
i convert some opengl code from visual c++ 2006 to visual c++ 2010 i mean visual studio framework. problem is in visual studio 10 they r running but mainloop is not working, i mean windows r supposed to wait for key input but it shows and gone at instant. no … | |
[CODE] OleDbDataAdapter o = new OleDbDataAdapter("select * from tblExam1", conn); DataSet ds = new DataSet(); o.Fill(ds, "tblExam1"); DataRow r = ds.Tables["tblExam1"].NewRow(); r["exam1ID"]=324; r["patID"] = patid; r["ypsos"] = 32; ds.Tables["tblExam1"].Rows.Add(r); ds.AcceptChanges(); [/CODE] no error message. execute code normally, but row did not inserted in db what i m missing? its access … | |
Re: use dataset, make some selective query to fill data grid, rest r easy | |
Re: if u have visual studio, why u need visual web developer!!!! | |
Re: [CODE] xmlWriter.Close();[/CODE] missing | |
Re: i face similar problem fewdays before, i solved it by using a way, which is not so logical or intelligent, but my jobs was done when mousepress event occureed i redraw the cursor and set the flag and when again mouserealeased event occured i released the flag and agin cng … | |
i find this code in a forum [CODE]using System.ComponentModel; using System.Drawing; using System.Windows.Forms; static class Program { static void Main() { string pointText = "11, 19", rightToLeftText = "Inherit"; Point point = Parse<Point>(pointText); RightToLeft rtl = Parse<RightToLeft>(rightToLeftText); } static T Parse<T>(string text) { // might need ConvertFromString // (rather than … | |
Re: [CODE] if (dialog1.ShowDialog() == DialogResult.OK) { string nameD = dialog1.SelectedPath; resultString = File.ReadAllText(nameD); } [/CODE] how abt this? | |
i have a c# application which is use for from design, it creates .kd file on save option , After running application i have to browse my saved files and open them in my application. but i want a way that that a click on file with .kd extension will … | |
Re: my main from is midiparent and i want to use the file data in childfrom , in this way i cant get the fule to child from, @scru , can u help me? | |
Re: do u have exp in prolog language? because in ur way it could be a heavy proj with light action. | |
i have some gif image which i converted to .cursor file and trying o use in my winfrom like that [CODE] Cursor c ; public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { c = new Cursor("cursors\\newcursor.cur"); panel1.Cursor = c; }[/CODE] but i getting error that cursor … | |
my job is 1.maximize 2.smoothing when i just write maximize part and ran it work fine for 550-600 pixel and when i just write smoothing part and ran it work fine for 5500-6000 pixel. but when i attached both code failed at maximizing point. i want to know why and … | |
Re: [CODE] private void pictureBox2_MouseClick(object sender, MouseEventArgs e) { int i = e.X; int j = e.Y; }[/CODE] | |
Re: [CODE] 1. int main() 2. { 3. int A = 0; 4. 5. cout << "Enter a number from 1 - 5 " ; 6. 7. cin >> A; 8. 9. do 10. { 11.if(A == 1) { cout << "your number was 1"; 12. cout << endl; 13. } … | |
Re: [CODE] <asp:GridView ID="GridView1" runat="server" onselectedindexchanged="GridView1_SelectedIndexChanged"> </asp:GridView> protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { //urcode } [/CODE] | |
Re: i refresh datasource after one user updated his work. but before the refresh , if other user already open the datasource in his pc, his datasource will not be updated. because update will happen in other users who open after the refresh. So some user who open just before refresh … | |
Re: [QUOTE][CODE] try { MailMessage mail = new MailMessage(); mail.To.Add("xxx@gmail.com"); mail.From = new MailAddress("xxxx@gmail.com"); mail.Subject = "Test Email"; string Body = "<b>Welcome to CodeDigest.Com!!</b>"; mail.Body = Body; mail.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(); smtp.Host = ConfigurationManager.AppSettings["SMTP"]; smtp.Credentials = new System.Net.NetworkCredential(ConfigurationManager.AppSettings["FROMEMAIL"], ConfigurationManager.AppSettings["FROMPWD"]); smtp.EnableSsl = true; smtp.Send(mail); } catch (Exception exc) … | |
Re: is it necessary to get the id from url ? save it in any control to use again . | |
what is the difference between httppathrequest and server.mappath. i mean r they return different path ? i uploading file use httppahrequest and it works fine in my pc iis7, but when i run in server it didnt work. but server.mappath work in both | |
Re: insert a picturebox and navigation button in a ajax update panel. write the change of image location url of imagebox in buttons event click function. | |
Re: send the progressbar object as a parameter when calling the descript function | |
Re: If u write ur connection string in config file that would be good, however as a basic tutorial can look that, can get coon string from db properties STRING USER=TEXBOX1.TEXT; STRING PASS =TEXBOX2.TEXT string connectionstring = @"data source=.\\sqlexpress;attachdbfilename=database1.mdf;integrated security=true;user instance=true"; sqlconnection connection = new sqlconnection(connectionstring); string str = "select * … | |
Re: U can use ajax update panel place the timer there and can bind with another control. | |
Re: [QUOTE]this.DataGridView.Rows["ROWSNAME"].Cells["CELL"].Style.ForeColor=COLOR.BLACK[/QUOTE] TRY IT | |
Re: [QUOTE] <UpdateParameters> <asp: Parameter Name="SALARY_MODELINGl" /> <asp: Parameter Name="APPL_GA20" /> <asp: Parameter Name="LETTER_APP" /> <asp: Parameter Name="UNIQUE_NO" /> </UpdateParameters>[/QUOTE] change parameter name like above . sortexpression and query parameter may be mismatch | |
Re: see this link, it may help [URL="http://www.daniweb.com/forums/thread256640.html"]link[/URL] | |
| |
i don't want to use crystal report. i want to print a fromview or gridview in my printer by c# code in a webfrom. window.print() pint the whole page i want only the selected part will be print by pressing print button. .................................................thanks | |
Re: every item has value propery and text propety in listbox, bind name as text and indexid as value then u can easily access listbox1.item.value or listbox1.item.text when what need | |
Re: is optimistic concurrency enabled in ur gidview? | |
Re: ur code is right if both from in same project. but if other project add other project in ur reference and the use using WindowsFormsApplication1; namespace WindowsFormsApplication4 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.Hide(); WindowsFormsApplication1.Form1 f … |
The End.