16,015,809 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Nnorss (Top 86 by date)
Nnorss
3-Jul-13 1:37am
View
Big respect Sergey. I think you must start writing a book about programming and thank you.
Nnorss
3-Jul-13 1:35am
View
I am completely convinced by what you just say, and more I am happy. I'm not a child but a part of me will never grow up I think.
Nnorss
3-Jul-13 1:34am
View
Deleted
I am completely convinced by what you just say, and more I am happy. I'm not a child but a part of me will never grow up I think.
Nnorss
2-Jul-13 20:13pm
View
Yes it's a terminology, but i think this doesn't involve that you downvote the question. By the way you downvoted all my questions, an act that will not really motivate a new programmer bearing in ming that a solution for my problem can helps another one in the future ... It seems now that it's a personal matter for you against me... exept if you're a moderator of the the website and that your task is to ensure the quality and the relevancy of the answered questions, and even if it's the case, youre reaction was very decouraging. If you were in my place, wich term will you use instead of 'real time'?
Nnorss
2-Jul-13 17:57pm
View
The runtime duration of this case is the period when the user is typing. If this one types 100 words (for ex), the runtime duration will be approximatly 5 minutes so I think we can use "Real time". You don't agree?
Nnorss
2-Jul-13 14:58pm
View
Deleted
The runtime duration of this case is the period when the user is typing. If this one types 100 words (for ex), the runtime duration will be approximatly 10 minutes so I think we can use "Real time". You don't agree?
Nnorss
29-May-13 9:58am
View
It's because some content of the navigated page must be added to a database, a text document must be generated, a Category and a Topic must be programmaticly detected, and few more ToDo things... And mainly I want avoid Copy/Past manually the selected link.
Nnorss
29-May-13 9:45am
View
Actually I can't create a new separate app even if it's just Rss, apparently this agregator is highly developped and very strong for new content notification... I will try to use Sendinput to interact with the app as an interactive user would do :D
Nnorss
29-May-13 9:16am
View
Well, when i Send "Ctrl+N" , I get response from the app, a new windows for adding new feed is opened since "Ctrl+N" is a default shortcut for adding a new feed in this app. But when I send "Ctrl+C" or "a" or "b" or another character... I can't get any response and nothing happens. It seems like the selected zone become deselected when I click my button form, or like I'm not sending input to the correct control. (I added a ScreenShot of the app interface).
Nnorss
29-May-13 5:54am
View
Deleted
The first link is for c++ and the second's is not very understandable... What does EnumLib and StructLib means?
Nnorss
29-May-13 3:43am
View
Hello Sergey! Actually I'm working on an add-on for a Rss feed agregator application , when the user select the Url text from the navigation bar of the other application and click the button of my little sized form, the highlited link must be copyed to the clipboard. Should I use "SendInput" for my case? How can I use the usual .NET FCL to realize what I covet?
Nnorss
26-May-13 0:04am
View
He's asking how to create a class "connection to database" in Smart Devise Project(c# phone application)
Nnorss
24-May-13 18:58pm
View
I used my database enities contex instead of dataset and it worked very fine, thank you very much Prassad!
Nnorss
23-May-13 11:39am
View
Google for select from database.
Nnorss
22-May-13 14:42pm
View
Google for insert in database.
Nnorss
22-May-13 6:55am
View
This is an old post... The solution is very simple : string browserSelextedText = webKitBrowser1.SelectedText;
Nnorss
22-May-13 6:12am
View
Ok! Just one more thing please, I usually use LINQ to entities to interact with my database... How should I fill the data to the respective class and form as List..?
Nnorss
22-May-13 5:21am
View
Thank you a lot Prasaad! The code "par.ChildNodes" returns an error: System.Windows.forms.Treenode doesn't contains any definition and any extension method 'ChildNodes'... a directive using is missing?... I'm on framework 4.0, do you have any ideas of how to fix this please?
Nnorss
21-May-13 4:41am
View
Deleted
Solution accepted? You welcome.
Nnorss
21-May-13 4:20am
View
Check the solution please.
Nnorss
21-May-13 4:05am
View
How is the structure of your database? does the table_messages have a column readStatus or something like that...?
Nnorss
21-May-13 3:59am
View
Deleted
This is an old post... The solution is very simple : string browserSelextedText = webKitBrowser1.SelectedText;
Can you help me with the other question please? http://www.codeproject.com/Questions/595869/BindingplustreeViewplusfromplusentityplusdataplusm
Nnorss
21-May-13 3:45am
View
Deleted
Can you help me with this or just show me a good beginners tutorial for binding recursif treeView please?
Nnorss
21-May-13 3:32am
View
Give more informations about your database and your tables content please.
Nnorss
20-May-13 21:51pm
View
Deleted
I have the same problem and I wish someone can helps!
Nnorss
20-May-13 3:13am
View
Thank you Guirec! I want to put the results into a listBox thats why i used a dataTable.
Nnorss
18-May-13 2:55am
View
Many thanks. I aslo founf this: http://support.microsoft.com/kb/317597
Nnorss
18-May-13 0:20am
View
For been honnest, I was looking for a little explication of how to extract the "text" value of the "outline" attribute from a OPML file... (I'm sorry I do have communication problems, maybe with the time my english will be much better)
Nnorss
18-May-13 0:13am
View
Ok thank you but it gives me an error:
private void button2_Click(object sender, EventArgs e)
{
XmlDocument xd = new XmlDocument();
xd.Load("C:\\subscription.opml");
treeView1.Nodes.Add(new TreeNode("Feeds"));
LoadNode(xd.SelectNodes("//body/*"), treeView1.Nodes[0]);
}
private void LoadNode(XmlNodeList xmlNodes, TreeNode trvParent)
{
foreach (XmlNode xmlNode in xmlNodes)
{
TreeNode trnNewNode = new TreeNode(xmlNode.Attributes["outline"].Value); //error: the exeption nullReference is not managed...
if (xmlNode.Attributes["outline"] != null)
trnNewNode.Tag = xmlNode.Attributes["outline"].Value;
trnNewNode.Expand();
trvParent.Nodes.Add(trnNewNode);
LoadNode(xmlNode.ChildNodes, trnNewNode);
}
}
Nnorss
17-May-13 21:57pm
View
All i have to say is thank you for the comment and I promess give me two months and i will be a good developper :D
Nnorss
16-May-13 21:56pm
View
I know what is a classe! When you told me that there are several unrelated classes with the simple name TreeView, I thought that there are many types of TreeView Forms! I readed some tutorials about c# TreeView and some about parsing with regex, I searched on the internet, and I still dont find how can extract what I want from the OMPL file and transform it into TreeView.
Nnorss
16-May-13 21:21pm
View
Oww Ok, it wasn't my attention, thanks for the information.
Nnorss
16-May-13 21:18pm
View
Sorry but I dont know wich of the TreeView classes i use. I'm in visual Studio and I see only one TreeView Control, I have no ideas about the classes of TreeView.
Nnorss
16-May-13 20:41pm
View
I'm sorry this is my second week with c#, i will take that into consideration... I answer my questions because i think it can helps beginners like me, i think i shouldn't do that anymore. By all the way thank you for attention.
Nnorss
16-May-13 19:47pm
View
Sorry but i don't understand what do you mean by "Full name"?
Nnorss
16-May-13 18:40pm
View
Ok Sergey i updated the question and specified the ui.
Nnorss
13-May-13 13:23pm
View
I'm still working with this and i will mark this answer solved when i found the complete solution... please check my other comment and thank you anyway.
Nnorss
12-May-13 16:42pm
View
Deleted
Thank you for attention!! tell me when should i put this code please? can you check my project:
http://www.codeproject.com/Questions/591814/displayplusaccurateplusinformationplusfromplusdata
Nnorss
12-May-13 16:36pm
View
ok thanks i will try this solution!
Nnorss
12-May-13 14:22pm
View
Deleted
@David_Wimbley You did'nt helped me.. you just criticized my question....+oral.
Nnorss
12-May-13 13:29pm
View
Where should i put this code please?
Nnorss
12-May-13 13:25pm
View
db.Articles.Select(a => a.statusUser == false): impossible to convert....
Nnorss
12-May-13 13:19pm
View
Both of ToArray and Tolist are not working. Impossible to convert......
Nnorss
12-May-13 12:55pm
View
I updated the question, please check it.
Nnorss
12-May-13 12:42pm
View
For the first one, i've done it. But for the second, i dont even know from where begin!!!
Nnorss
12-May-13 4:06am
View
Deleted
ok! thanks!
Nnorss
11-May-13 15:43pm
View
another thing to do is getting the right url, for exemple when i search on google for a doc filetype, it gives me an url lick that: {https://www.google.com/url?q=http://www.website.com/TRAQUEOS.doc&sa=U&ei=_Ye3yAfBQ&ved=0CBgAA&usg=AFXq9jj-5OX}, and unfortunatelly this type is not included in the toRedirect bool!..and also sometime there is empty spaces inside the link...
Nnorss
11-May-13 12:58pm
View
ok thannks
Nnorss
11-May-13 12:39pm
View
this work perfectly with webKitBrowser and .doc! infinite thanks and big respect!
Nnorss
10-May-13 20:21pm
View
it's just a joke :s
Nnorss
10-May-13 19:43pm
View
here is the code to convert from doc to html:
using OpenXmlPowerTools;
using DocumentFormat.OpenXml.Wordprocessing;
byte[] byteArray = File.ReadAllBytes(DocxFilePath);
using (MemoryStream memoryStream = new MemoryStream())
{
memoryStream.Write(byteArray, 0, byteArray.Length);
using (WordprocessingDocument doc = WordprocessingDocument.Open(memoryStream, true))
{
HtmlConverterSettings settings = new HtmlConverterSettings()
{
PageTitle = "My Page Title"
};
XElement html = HtmlConverter.ConvertToHtml(doc, settings);
File.WriteAllText(HTMLFilePath, html.ToStringNewLineOnAttributes());
}
}
but how can i retrieve the target link by clickin on it? what is the evenement of the click on a hyperlink in webbrowser?
Nnorss
10-May-13 19:35pm
View
i think you hate Google :D
Nnorss
10-May-13 18:33pm
View
5 stars but it's not a solution :p
Nnorss
10-May-13 18:09pm
View
i placed a stop point... it seems that when i click on a .doc link nothin happen, like if i didn't click anywhere.. like if the .doc click is disabled in webKitBrowser and we should enable it
Nnorss
10-May-13 17:40pm
View
thanks for informing me about the debugger! but where do i navigate?
Nnorss
10-May-13 17:34pm
View
so i navigate to where? how can i use debugger?
Nnorss
10-May-13 17:31pm
View
i try to delete the new post but red error message "insufficient permission to delete"
Nnorss
10-May-13 17:17pm
View
i'm really blocked! i tried several codes.. should i open a new discussion about this?
Nnorss
10-May-13 17:04pm
View
ok tell me if you catch something interesting about that
Nnorss
10-May-13 16:48pm
View
I tried 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 more easy with the default browser, i changed to web kit because it was ver laggy and it freeze the whole application when the user is surfing. can you help me with this please??
Nnorss
10-May-13 16:46pm
View
Deleted
I tried 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 more easy with the default browser, i changed to web kit because it was ver laggy and it freeze the whole application when the user is surfing. can you help me with this please??
Nnorss
10-May-13 16:42pm
View
i got it! thank you very much!
Nnorss
10-May-13 15:59pm
View
can you check my update please?
Nnorss
10-May-13 14:03pm
View
ok for regex... i'm still searching for the solution for showing a word file on webKit browser, the biggest problem is that when i click on a .doc link nothing happens with webkitbrowser! i edited the "doesn't work" :D
Nnorss
10-May-13 13:49pm
View
i binded my combobox by clicking on the combobox arrow and checking use data elementsthen selecting the db and the table.That was in the form design!
Nnorss
10-May-13 13:36pm
View
thank you for the informations.
Nnorss
10-May-13 13:01pm
View
ok i will try to do this with pleasure! just tell me the first step, as i mentionned in my first comment, is to parse every clicked link and check if it's an (http:******.doc) link? is there a way to avoid parsing every clicked link of the browser? thank you for the help!
Nnorss
10-May-13 12:44pm
View
how can i show it in the form of HTML please?
Nnorss
10-May-13 12:38pm
View
here is my code:
webBrowser1.Navigate("docs.google.com/viewer?url=" + currentNav);
i can use regex to fetch the current navigation link if its finishing by .doc or .docx, but i think it s useless to fetch all time all the navigated links...
Nnorss
9-May-13 15:53pm
View
Deleted
i'm a noobie..i think that ado.net is used to linq the database trough a data model, we dont have to create database connexion and close it(no direct interaction with the database)??
Nnorss
9-May-13 15:44pm
View
Deleted
i'm using ado.net to avoid sql command.. is there a way to get the last id of a db table without interacting with sql, just with the entity model??
Nnorss
9-May-13 15:37pm
View
thanks! i just want to show the last id of the table in a label, how can i do that?
Nnorss
8-May-13 10:42am
View
sure!
Nnorss
8-May-13 10:36am
View
problem resolved :D
Nnorss
8-May-13 10:20am
View
No! i'm still searching for the solution :s
Nnorss
8-May-13 10:08am
View
thanks for your attention, it is the first time that i use regex, i really need to validate the extention to tell the program what to do if its, pdf, what to do if it's jpeg.....
Nnorss
8-May-13 0:54am
View
here is the actual code:
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
listBox1.Items.Clear();
string theme = comboBox1.SelectedText;
int idtheme = Convert.ToInt32(comboBox1.SelectedValue);
dt = sources_view(idtheme);
for (int i = 0; i < dt.Rows.Count; i++)
{
listBox1.Items.Add(dt.Rows[i]["Url"]);
}
}
public DataTable sources_view(int idtheme)
{
try
{
myConnection.Open();
SqlCommand command = new SqlCommand("select * from Sources where IdTheme =" + idtheme, myConnection);
SqlDataAdapter adapter = new SqlDataAdapter();
adapter.SelectCommand = command;
adapter.Fill(ds, "theme");
adapter.Dispose();
command.Dispose();
myConnection.Close();
}
catch (SqlException exp)
{
MessageBox.Show(exp.Message);
}
dt = ds.Tables["theme"];
return dt;
}
Nnorss
6-May-13 15:28pm
View
how to rebind?
Nnorss
6-May-13 15:28pm
View
How to rebind?
Nnorss
6-May-13 15:19pm
View
I tried this statement in several places of the code, always the same problem!
Nnorss
6-May-13 14:49pm
View
thank you very much Irshad! i still have a little problem, when i click another subject, the old articles stays so the list box show articlesofSubject1+articlesOfSubject2, i want that the listBox be refreshed when i change the subject in the combobox, so the listBox must show only articlesOfSubjectSelected!
Nnorss
6-May-13 9:39am
View
Infinite thanks!! i still have a little problem, when i click another subject, the old articles stays so the list box show articlesofSubject1+articlesOfSubject2, i want that the listBox be refreshed when i change the subject in the combobox, so the listBox must show only articlesOfSubjectSelected!
Nnorss
5-May-13 20:18pm
View
the listBox shows item from a datasource, i set valuemember = url (url is a colomn of the db table and its nvarchar).
i tried the code that you suggested but it retun an error:
the exeption NullReferenceExeption is not managed
the object reference is not defined to an object instance...
the webBrowser show the first url, when i click on this first url of the listBox, the webBrowser refresh the page, but when i click on another url, nothing happens !
Nnorss
5-May-13 20:06pm
View
right!
Nnorss
5-May-13 18:02pm
View
The listBox must show the "NameArticle" collection of the subject selected, "table_articles" is not exploited in your solution!! Thanks for help anyway!
Nnorss
5-May-13 17:22pm
View
when i changed it, "SelectedText" is underlined by the red line, and when i place the cursor on it it says that "System.Windows.Form.Lisbox doesnt contain a definition for 'SelectedText' and no extention method that accept first argument.. using assembly missing" (sorry i'm using french visual studio so i translated the error message)
i think i must add an assembly with 'using ...;' but wich one?
Show More