Click here to Skip to main content
Page 1 of 1
Page Size: 10 · 25 · 50


Author filtered by: Nnorss [x]
Question 12 May 2013   license: CPOL
Hello, i m doing a c# project with ADO .NET data entity model, i have a table Subjects with columns (idSubject(int), nameSubject(nvarchar), subjectNoted(bit/boolean). I'm getting from the table the first subject that have `subjectNoted==false` then i change the value to `==true` after clickin a...
Question 12 May 2013   license: CPOL
I'm developping an application with C# and ADO.Net entity data model. I have a table Users in SQL Server database with 3 columns (idUser, nameUser, statusUser). How can i retrieve the second or the third or the Nth user of the table that have statusUser == 0?
Question 12 May 2013   license: CPOL
I'm developping an application with c# and ADO .NET entity data model. I have a table Articles(idArticle, nameArticle, statusArticles). I want to retrieve the first article where statusArticle=false, and update her value to true. Someone can help me with this code please: private void...
Question 12 May 2013   license: CPOL
i have a form with a webKitBrowser. The user should surf on internet, and when he click a *.doc link, the word document must be shown. where can i tell the browser what to do when the user click on a .doc link?update:i've done this (using System.Web.dll):namespace testGoogleDoc{ ...
getting informations from database by Naourass Derouichi
Answer 11 May 2013   license: CPOL
here is the code:using (YourDatabaseContext context = new YourDatabaseContext()){ User firstUser = context.Users.FirstOrDefault(u => u.statusUser == 0); if (firstUser != null) { lblUserName.Text = firstUser.nameUser; }}
getting informations from database by Naourass Derouichi
Question 11 May 2013   license: CPOL
i'm developping an application with ADO .Net entity data model, i have a table Users, with 3 columns (idUser, nameUser, statusUser), from an sql db. What is the code to, select the first user of the table that have (statusUser = 0), and show her name in a label?
Answer 11 May 2013   license: CPOL
Solution by SA, it work perfectly:public class MyForm : Form { const string viewer = "https://docs.google.com/viewer"; const string viewerUrl = viewer + "?url={0}"; const string docSample =...
Answer 11 May 2013   license: CPOL
here's a solution by SA, it works perfectly:public class MyForm : Form { const string viewer = "https://docs.google.com/viewer"; const string viewerUrl = viewer + "?url={0}"; const string docSample =...
Question 10 May 2013   license: CPOL
how can i show a ms word file in webKitBrowser after clicking on http:\\link.doc ?
webKitBrowser *.doc link click by Naourass Derouichi
Question 10 May 2013   license: CPOL
I try to show the clicked link of the browser in a label. Every time the user click on a link, the link is shown in the label, exept when i click on a *.doc, the value of the label dont change and nothing happen! I know It will be much easy with the default browser, i changed to web kit because...
Answer 10 May 2013   license: CPOL
very simple:string browserSelextedText = webKitBrowser1.SelectedText
Question 10 May 2013   license: CPOL
how can i get the selected text of a web page using webKitBrowser? here is the old code of the default browser:IHTMLDocument2 htmlDocument = webBrowser1.Document.DomDocument as IHTMLDocument2;IHTMLSelectionObject currentSelection = htmlDocument.selection; if...
retrieve the last id of a table by Naourass Derouichi
Question 10 May 2013   license: CPOL
hello, i m developping an application with an ado.net data model. What is the code to retrieve the last recorded id of a table, and show the value in a label?
retrieve the last id of a table by Naourass Derouichi
Answer 10 May 2013   license: CPOL
here's the solution:using (DbEntities db = new DbEntities()) { int IdA = db.Table.Max(a => a.IdTable); label1.Text = IdA.ToString(); }
Answer 8 May 2013   license: CPOL
here is the solution:public Form1() { InitializeComponent(); textBox1.Text = "http://www.site.com/Documents/file.pdf"; Match matchPdf = Regex.Match(textBox1.Text, @"^.*\.(pdf|PDF)$", RegexOptions.IgnoreCase); ...
Question 8 May 2013   license: CPOL
hello, i have a form with a textBox and a label, i want to check if the textBox Text is finishing by ".pdf" or ".jpg", then i want to show the extention in the label :public Form1() { InitializeComponent(); textBox1.Text =...
Question 6 May 2013   license: CPOL
i have a form with a comboBox, a textBox, and a button. the comboBox shows items from an sql database using dataBindingSources. after filling the textBox and clicking the button, a new item is added to this database, but i can't see this new item in the comboBox until i close and re-open the...
Answer 6 May 2013   license: CPOL
Thank you guys, i found the solution, here is it: private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { string url = listBox1.Text; webBrowser1.Navigate(url); }It work perfectly.
Question 5 May 2013   license: CPOL
helloi have a form with a listBox and a comboBox, the combobox contains the subjects, and the listBox must show only the articles of that subject. i'm using an sql server db and i dont find how to show in the listBox only the articles of the subject selected in the comboBox, help me...

Page 1 of 1


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid