456 Posted Topics
Re: Try making the plans for it, think of what data your system will be handeling and what you want the system to do with the data (what functions your system will carry out). once you know what data needs to be input and what functions you will implement you can … | |
Re: Post this in the Linux and Unix form, you might get a quicker response | |
Re: Have a look at these's threads. Reading and writing to Xml has been discussed in the past so they might help you with your problem. If not just ask. http://www.daniweb.com/software-development/csharp/threads/420976/easiest-way-to-read-and-write-xml-files#post1796401 http://www.daniweb.com/software-development/csharp/threads/406137/dealing-with-xml#post1734164 Best of luck | |
Re: make sure you have instantiated, assigned all you instances correctly and have all the correct DLL's at the top of your .cs files (example below). Using UIHelper; hope this helps | |
Re: you could possibly update the Players and Managers table in the same update. The Draft table may need to be kept in it's own update because it has the year in it's where clause. Try something like: DECLARE @old_team_id AS int; DECLARE @new_team_id AS int; UPDATE Players SET Players.team_id = … | |
Re: I did a quick google and found quite a lot of info on running background processes, Have a look at the two links below and see if they help at all (i typed "running background processes in C#" into google) http://msdn.microsoft.com/en-us/library/hybbz6ke.aspx http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/26396b5e-6ebf-426a-86ae-a767719db9b9/ Hope this helps | |
Re: Is your problem that in the time between loading your form (which will populate your comboBox automatically because it's databound) and selecting a comboBox item the data in the database may have changed and you would like your comboBox to update if the data in the database is changed ? | |
Re: use a lable instead of a textbox or just set the ReadOnly property of the textbox to true that will stop the user from being able to type in the 2nd textbox | |
Re: Theres also XHTML which is a mix of Xml and HTML and i think it's used like CSS to style the website rather than for adding functionallity to a webpage. | |
Re: This should do i i think, let me know if it works or not. SELECT INP1.PatientID, PatientFName, PatientName, Gender FROM INP1 LEFT JOIN OTP1 ON INP1.PatientID = OTP1.PatientID; | |
Re: If you're using Windows you can just go to Start->Search and then start to enter the name of your program. to get the .exe you need to publish your program and save the published version to your desktop. Hope this helps . . . | |
Re: > Really? How could you say such a thing without any thought? I haven’t seen or read any news about food (or money) given to Greece for free… (If you have any such news –not loans- please share them). Don’t carry away, the problem certainly are not peoples. You really … | |
Re: Code will be alot more organised if it's OOP developed and have more generic object and variable names than none OOP programs. Best thing to do might be to create an OOP program in something like Visual Studios to see how the code to create object is organised when you … | |
Re: It's suggesting that you use threading to avoid your application from hanging while a process is waiting for resources. For example if you have a mobile IM application for a mobile if you don't use threading and one device trys to send a message but has to wait for resources … | |
Re: Restrict your test box to only except ints so that the user can't enter charactors into the textbox. | |
Re: Have a look at this [Click Here](http://msdn.microsoft.com/en-us/library/ms187922.aspx). Also do **WANT** to select COTDetails that **are** NULL or that are **NOT** NULL ? | |
Re: As NormR1 said you don't appear to call the getNumDots() method. Also why are you returning value in getNumDots() when you haven't done anything with value in that method. Other than that your methods look ok you just need to call them at some point. | |
Re: I don't know about the localization or configuration bit but i did the code below to import data from an Xml file. I used an OpenFileDialogBox (fileOK method belongs to OpenFileDialogBox) and created a class called ObjectTypeState containing get/ set properties to store the imported data which was then displayed … | |
Re: If you carID column is a primary key field and it's a foreign key in another table i don't think you're allowed to update them because the foriegn key basically means it references the record in another table. For example if there is an ID of 1 and and it … | |
Re: > expecting output which should be made in XSLT Good for you thanks for telling us i'll sleep better tonight now i know that! What problem are you facing ? you haven't stated that you're having a problem getting this output or what you're doing to get this output you're … | |
Re: put .**E**xecuteScalar instead of .**e**xecuteScalar (use a capital E) Why are you doing: > convert.ToInt16(cmd.executeScalar().toString()); take off the .toString() (plus its **T**o.String()), convert it straight to string and put a capital C on convert. Hope this helps | |
Re: What is the problem you're facing, does the application not run? or are you just not seeing the correct answers being shown at the end of the test ? I noticed the arrary below is never used after it is declared, are you supposed to use it to check the … | |
Re: To answer your first question: No they are assigned different IP addresses. 192.168.0.1 is usually the default IP and is usually reserved for a router, the first computer connected to the router will have an IP of 192.168.0.1, the second 192.168.0.2 and i think you can guess the 3rd. to … | |
Re: Instead of using: > invalue = textBox1.Text; > guessedNumber = int.Parse(invalue); use: guessedNumber = Convert.ToInt32(textBox1.text); Hope this helps edit: if you enter any charactors into the textbox you will get an error because charactors cannot be converted into a numerice value the way you wish, you may have to do … | |
Re: > string SearchText = "7,true,NA,false:67,false,NA,false:5,false,NA,false:5,false,NA,false"; > string Regex = @"\btrue\b"; > int NumberOfTrues = Regex.Match(SearchText, Regex).Count; stirng doesn't contain a Match() extention method so you can't do Regex.Match(). take a look at this [Link](http://msdn.microsoft.com/en-us/library/cc165449.aspx) it might help you | |
Re: I don't know much Java but by the looks of the error you're getting it looks like the ClassicRoom.Occupy field should never be null but is null at the point the error is thrown. | |
Re: Next to "Logged in as" click your name and in the community contributions box click total posts. this will list all of your posts, it's a little confusing at first but they are all there | |
Re: When you renamed it did you click yes on the messagebox that asks if you want to change the the name everywhere it's references (if you've referenced form1 in other classes) ? i renamed the Designer file maulally i think . . . | |
Re: You don't need to a static class just pass the username to the username variable Something like this: This would go in your login: private void button1_Click(object sender, EventArgs e) { a = comboBox1.Text; Form main1 = new main(); mail1.username = comboBox1.SelectedItem1.ToString; main1.Show(); } This would go in you main … | |
Re: Yeah it's not too difficult to get the hang of in C# if you've done it in another language reading data is just the This is to use the SQL DLL: using System.Data.SqlClient; and this is the code to read the data: string sql = "SELECT * FROM MyTable"; //creates … | |
Re: open your Program.cs file in your solution, and in the Application.Run(); type new MyLoginForm so would be like: Application.Run(new LoginForm()); This specifies the form that you wish to run first. Hope this helps. | |
Re: If you've got ears as saggy as a 90 year old bits and you go for the same job as someone who is clean cut, equally as qualified and experienced you're more than likely not going to get the job. If that wasn't the case i would have rocked up … | |
Re: I've never done this myself but i would assume you need to create your own custom event handler and event. have a look at [URL="http://stackoverflow.com/questions/585837/in-c-sharp-how-do-you-create-an-event-with-a-custom-event-handler-as-part-of-an"]this[/URL] | |
Re: i've only ever used a backend database to populate a list box but i don't know about the "Directory.GetFiles(@"C:\Users\James\Pictures\", "*.jpg").ToList();" part, but to put the names in the list box try this (the foreach section) [CODE] private void popListBox() { try { List<string> imgNames = Directory.GetFiles(@"C:\Users\James\Pictures\", "*.jpg").ToList(); foreach (string str … | |
Re: What is it you mean by browsing the grid values ? do you do any functions or are the any functions that are triggered by something your doing whilst browsing the grid ? | |
Re: Have you tried: [CODE] string variableName;[/CODE] And using this in-line: [CODE] '" + variableName + "'[/CODE] | |
Re: Yeah i would assume the GUID works the same way an ID field works for a database records. | |
Re: "An individual or collaborative enterprise planned and designed to achieve an aim." Thats the Google definition, so it's the entire process of creating a program including the design implementation and testing. | |
Re: If you have a WHERE clause you can't use the selected value from your comboBox you need to specify what field in the database table you want to check e.g. commandString = "Select * from tableadd where customerName like '%" + textBox1.Text + "%'" ; This will return all records … | |
Re: My advice is to do a project and not a dissertation if possible. I.T. is a practical profession, if you want to be database admin a project (which is documentation, the app or DB) will be better than a dissertation as it shows that you can walk the walk and … | |
Re: You need to provide a lot more detail before anyone will be understand what you actually asking. What do you mean by only view the website ? why would you let a user do anything other than view your website ? what are you trying to stop the user from … | |
Re: [QUOTE=bencash;1612210]im a computer science student and i need three topics for my final year project....can anyone help pls[/QUOTE] I've just done mine but i did mine for the company im working for now and it was a C# winForm app that manipulates data in an SQL server DB, exports selected … | |
Re: [QUOTE=ddanbe;1771876]Do NOT assume anything about a user. Users tend to know what you assumed about them and are going to do the exact opposite.[/QUOTE] [QUOTE=ddanbe;1771876]Do NOT assume anything about a user. Users tend to know what you assumed about them and are going to do the exact opposite.[/QUOTE] Too true … | |
Re: I use Chrome and have that problem but i don't need to log in i can just click on any link that is linked to a daniweb page and it logs me in automatically. Bit annoying but like you should always do with word documents, save your work, just copy … | |
Re: basic of C# and a little of SQL, Java and HTML (although i haven't used the last two in a long time) ![]() | |
Re: As kamilacbe said you need to use execute reader, your code should be something like this, try to understand it and change it to suit: [CODE]public List<string> getName() { //SQL statement to select Name from MyTable string sql = "SELECT Name FROM Mytable.Name"; //SQL command establishes database connection and executes … | |
Re: I'm sure a quick Google will give you the answer but I'd say built-in functions are simply functions that are built into what ever it is your using. A C# example would be DateTime.Compare() which is a built-in function within the C# libraries. | |
Re: Take a look at this [URL="http://msdn.microsoft.com/en-us/library/5011f09h(v=vs.71).aspx"]link[/URL] and give it a go. Bare in mind that you can get the length of the text box value by using: [CODE]myTextbox.Text.Length[/CODE] (use this in your if statement). | |
Re: Do some of your own research, try it yourself and the post a proper question with your own code rather than just "help me to get code as i m new to c#" isn't a question and "How can i get Combo-box values by typing in TextBox" isn't nearlly good … | |
Re: [QUOTE=jbennet;1760431]Yeah, but generally a lower starting salary in a smaller business. Ie 22-24 rather than 24-26.[/QUOTE] Thats a bit generous ! i did 2 days a week in a company for a year while i was at uni and now working for them and am on less than 20G a … |
The End.