- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 3
Studying in University of Piraeus and recently a undergraduate from University of Hertfordshire. Interested in software Development, Windows & Windows-Oriented platforms.
- Interests
- Gaming, Music, X-treme Sports
82 Posted Topics
Re: Greetings, The basic idea behind socket programming, is having a client and a server application (As you stated in your post). In your case, if you want to execute simple cmd commands, then you need to transmit the command text from the client to your remote server, and have your … | |
Re: Greetings, here's a couple of examples stating when interfaces should be used by [Microsoft](http://msdn.microsoft.com/en-us/library/3b5b8ezk(v=vs.90).aspx): Interfaces are better suited to situations in which your applications require many possibly unrelated object types to provide certain functionality. * Interfaces are more flexible than base classes because you can define a single implementation that … | |
| |
Re: Good Day, From my personal expirience, i think that you should go to the .NET side,and begin learning c#. C++ is another option, if you're pointing to work in the game industy, cause it has many features that will help you, plus , its a portable language, since you dont … | |
Re: Hey there, What could you do is to run a [B]SELECT[/B] statement like this: [B][I]SELECT * FROM [TableName][/I][/B] After you got the query results into a DataTable Object, you should run a [B]For each[/B] loop like this: [CODE] For each(DataRow dr in DataTable) { TreeNode trnode = new TreeNode(); if(dr["ParentCategory"].Value … | |
Re: Hey there, You first have to download the MYSQL Connector for .NET, from the official site: [URL="http://dev.mysql.com/downloads/connector/net/1.0.html"]MySQL :: Download[/URL] When you do that you need to write a few lines of code to interact with database, like this: [CODE]dim _cn as New MySqlConnection([I][B]Connection String[/B][/I]) dim cmd as new MySqlCommand With … | |
Re: Can you provide us with the functionality that fetches the data from your database? | |
Good day to all, Im currently writing a document about my software's design spesifications. Im following a guideline in order for me to write it, but i dont understand this: [QUOTE][B]1.1 Design Map[/B] Summarize the information contained within this document or the family of design artifacts. Define all major design … | |
Re: Hi there, welcome to our community , which i think that you will find very helpfull. Now on topic, instead of : [CODE]StudentAdapter .Update(StudentDS , "StudentInfo")[/CODE] Try this: [CODE]StudentAdapter .Fill(StudentDS)[/CODE] Here's another piece of code, that i was using to add a row into my DB: [CODE]OleDbConnection Con = new … | |
Re: In order for other people to help you, we need to understand first what you're saying.. :) | |
Re: Hey there, In order to convert all of your ANSI encoded files to utf-8, you first need to get a list of your files in folder. After that you could use this code snippet.. [CODE] StreamReader sr = new StreamReader(infile); StreamWriter sw = new StreamWriter(outfile, false, Encoding.UTF8); sw.WriteLine(sr.ReadToEnd); sw.Close(); sr.Close(); … | |
Re: Hi there, When you create/open your project, then right click the [B]Service1.cs[/B] ( or whatever your service file is) and click show designer. Then you can drag Windows Controls just like any other form. Hope i helped :) | |
Re: Hi there, In order to connect to the MS Access 2007 you should use this snippet of code: [CODE] string ConnStr = @"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=C:\resources\pw.accdb; Jet OLEDB:Database Password=password"; OleDbConnection DBCon = new OleDbConnection(ConnStr); [/CODE] When you have established a connection with the db, all you have to do is to … | |
Re: Hey there, First of all, in order to add a new [B]PARENT[/B] node at runtime you should use this code: [CODE] TreeNode parent = new Node; TreeView1.Nodes.Add(parent); [/CODE] for a [B]CHILD[/B] node: [CODE] TreeNode child = new Node; TreeView1.SelectedNode.Nodes.Add(child); [/CODE] Now, what has to do with the Data show, then … | |
Re: To drag you out of trouble, here's a simple BSort Algorithm: [CODE]For outer = n - 1 to 0 step - 1 For inner = 0 to outer - 1 If list(inner) > list(inner + 1) then temp = list(inner) list(inner) = list(inner + 1) list(inner + 1) = temp … | |
Re: Please fix your post, its a bit confusing.... | |
Re: From a quick check on your code i thought that you should change your SQL Query:[B][I]select top 3 * from (select row_number()[/I][/B]. Instead you should try selecting all the rows from your table, and then "page" them, just like the GridView Paging functionality. Hope i helped. :) | |
Re: Hello there, In order for us to help you, you should post some of your code and show us the error message. Thanks | |
Re: Hi there, What could you do is to load all Candidate's data into a list, and then on the [B][I]TextChanged()[/I][/B] event of the textbox you could use linq to list to retrieve the data. :) | |
Re: Hey there, The thing you're asking is simple. All you have to do, in your UserControl, create some public properties that will interact with the ListView's properties: [CODE] public ListView.ListViewItemCollection Items { get { //Code for Getter } set { //Code for Setter } } [/CODE] Hope i helped :) | |
Re: Hello, Microsoft's Combobox takes objects of type [B]Object[/B], such as strings, and not spesific Objects. | |
Re: If i got that right, you have a textbox which shows the current Time... So what you need to do is, instead of the hard-coded Time: [CODE]DateTime.Parse("6:02").ToString("t");[/CODE] You should change your code to this: [CODE]DateTime.Parse(TextBox1.Text).ToString("t");[/CODE] Hope i helped, Alex | |
Re: In order for you to achieve this, in your current solution you have to create a Setup project. There are two options: 1)Create a blank setup project and add things by yourself 2)Create a setup project with the aid of a wizard. Hope i helped, Alex | |
Re: Hi, What could you do is use the standar "key=value" style in you configuration file. Then you should be able to read the whole text, then split the keys & the values, by setting the seperator to be the '='. Then when you want to write back to the file, … | |
Re: Hey, If i got that right, when the user clicks one row on the Employees Grid, then you want to show all the info that are related to the selected Employee. Here's a simple way to do this: Catch the [B]SelectedRowChanged[/B] event on the grid. Then get the value of … | |
Re: Hello there, What you could do is, on the FormLoad() Event, you could write the following code: [CODE]Form1 secForm = new Form1(); //this is the new form that you want to show. secForm.Show(); this.Hide();[/CODE] Hope i helped, Alex | |
Re: Hi there, I think that the the conversion is only one-way. This means that you can only see VB 2008 files from within Visual studio 2010, not vice versa. | |
Re: In the properties of your VB Project, there's one option called 'Splash screen'. There you should select your splash screen form, and then the splash screen functionality will be implemented. :) | |
Hello everybody, For the last 2 days im trying to deal with a treeview. What i want to do is to copy the structure from one tree to another. I know there are other ways to do this, but the way i want is to iterate through any node-of any … | |
Re: Hi there, here is a link that i found during a quick search i did: [URL="http://www.codeproject.com/KB/database/sql_in_csharp.aspx"]Code Project[/URL] | |
Re: When you execute this Update, in order to see the updated data, you have to re-run the SELECT statement that you use for your GridView. Btw, if you're not 100% sure that the query that is being created is correct, try and debug the application and then take the value … | |
Re: [I][B]Sealed classes[/B] A sealed class cannot be used as a base class. For this reason, it also cannot be an abstract class. Sealed classes are primarily used to prevent derivation. They add another level of strictness during compile-time, improve memory usage, and trigger certain optimizations that improve run-time efficiency.[/I] | |
Re: Hi, I tried to post on the contact form that you have, but it seems that there is a problem. So contact me via PM to provide you with more info about me. Cheers :) | |
Re: You could replace the current file path, with a relative path OR you could also add the .wav file in your project's resources so that you dont have to spesify a different path everytime that you install your app. Hope i helped :) | |
Hi all, I was always a bit confused about how to create a recursive function, so thats where i need you help. :) I have a treeview, in wich the user adds/removes dynamicaly nodes and a button wich should save the treeview structure in a database table when clicked. The … | |
Re: Through a quick search i found this, that might help you :) [URL="http://www.plus2net.com/sql_tutorial/sql_limit.php"]LIMIT Syntax[/URL] | |
Re: [QUOTE=farooqaaa;1215702]You can get it like this: [I]int current[/I] holds the current index number. [CODE] int current = 0; // Get the "aaaa, bbbbb ...." HtmlElement pageElement = wb.Document.GetElementById("tableid"); this.textBox1.Text = pageElement.Children[current].InnerText); // Get the "hrefs" HtmlElement href = pageElement.GetElementsByTagName("a")[current]; MessageBox.Show(hrefs.GetAttribute("href")); [/CODE][/QUOTE] I agree with Farooqaa, but there are other more … | |
Re: A more simple way is to use the 'While' statement as follows: While true { }Do() Hope i helped, Alex | |
Re: Hi there, The link you provided, shows a Class named INIFile... So in order to use that code, you should create a new Class file in your project(Dont know how its is done in SharpDevelop :p ), delete every text in the file, and paste this code. Since you have … | |
Re: [CODE] String connString = "..." SqlConnection conn = new SqlConnection(connString); String strSQL = "<Query here>"; SqlDataAdapter da = New OleDbDataAdapter(strSQL, conn); Dataset ds = New DataSet; da.Fill(ds, "Municipalities"); TestGridView.DataSource = ds; [/CODE] Hope i helped, Alex | |
Hi all, I would like to ask a question. Is the way that we connect an Access 2010 with a C# application the same. Are we still using the JET ENGINE 4.0? Thanks in advance, Alex | |
Re: Hi, You could try this: [CODE] int PrinterPort = Convert.ToInt32(<The binary Value>,2); [/CODE] Hope it works :) | |
Re: Hey, You should add this to your existing SQL query: [CODE] String query = @"Select * From Employee ORDER BY <Put the column name that you want the result to be sorted out>;"; [/CODE] Hope i helped! :) | |
Re: I think that Dataset.Row has a method called AddRange(), but im not sure... | |
Re: If you're using VB.NET, then you can go and declare a setting in your Project's properties window, so every time the form loads you change+save your new number in the setting variable. ;) Cheers, | |
Re: What do you mean by the word " Status bar notification"? Could you be more spesific? | |
Re: Hi, What you could do is to declare some public Variables on form2, and when the user clicks the button to show the form, then you pass the data you want into these variables... :) Hope i helped, | |
Re: You could also use the Hide property of the form, so when you click the next button as you mentioned, then the form will be hiden and maintain its data. Hope i helped :) | |
Re: Through a quick search that i made, i found this helpful tutorial [URL="http://www.developershome.com/sms/howToSendSMSFromPC.asp"]Developers Home[/URL] Contact me for more help, Hope i helped :) | |
Re: You should go to the events of the listview and handle Keypress event. Then in the event, you should use the case method like this: [CODE] Select Case e.KeyChar case 37: // <--- left arrow. // do stuff for Left Arrow here. case 38: // <--- up arrow. // do … |
The End.