genius! :)
Blekk
Posts
-
The 500,000 GB MP3 Player -
Virtual Stripper used to create spammer e-mail addressesNo not pedantic, just correct. Red, Blue and Yellow are the ONLY primary colours, green, purple and orange being secondary as stated.
-
Why is it called plug and play??From the plug and play hardware I use it seems pretty straight forward. Webcam Keyboard Mouse Speakers Just plug them in, install drivers and then it works, never had to reboot after installing drivers. And wasn't it originally called that for mice and keyboards because you didn't have to shut down then plug your mouse/keyboard into the serial port and then boot up, you could just attach it once the OS had loaded up? I may be completely wrong by the way.
-
Can anyone recommend a PC game? [modified]Definetely The Orange Box from Half-Life/Half-Life 2 developers Valve. Even though it is set in the near-future-alternate-reality (heh), it is basically in our time, with different weapons and more human and robot-like enemies than anything else, it is just amazing. The Orange Box is only $50 (£28 with tax, if you are British) and comes with Half Life 2 (The best game ever), Half Life 2: Episode 1 (the awesome sequel), Half Life 2: Episode 2 (The even better seqeul), Team Fortress 2 (Comic stylee, fun online multiplayer FPS, most anticipated online game for some time) and Portal (The joint best game in the pack (with hl2) and has an awesome twist at the end. Here is the orange box link: orange.half-life.com A review of the orange box by the best review out there: http://www.escapistmagazine.com/articles/view/editorials/zeropunctuation/2541-Zero-Punctuation-The-Orange-Box I definetely recommend it!
-
Why does electrical equipment get hot?I think you'll find that there are small cash registers inside quarks as discovered by me and my friends in a physics lesson in school.
-
IPhone hackedLol :)
-
Dynamic textcolor change in RichTextBox in visual C#Ok thanks, I'll have a look at that chapter later. I have already learnt lots on ado.net and database work in C# and so now want to move into something different. When I said I was just beginning, I meant beginning GDI stuff, not C#. But thankyou for the links.
-
Dynamic textcolor change in RichTextBox in visual C#Ok thanks, I am very early on in my learning of c# and so wouldn't really know how to go about painting the text myself etc. Any tutorials? Thanks.
-
Dynamic textcolor change in RichTextBox in visual C#Hi, I am wanting to create an effect like that in FrontPage and DreamWeaver (and many other code IDEs). For example, I am using DreamWeaver and I type this automatically turns blue to show it is code. This is what I would like to do. I already have something going, but it only does it when the file is first loaded, not while it is being edited, so I need to put it in a loop or something like that, also another problem was that all subsequent text after the last string () was also blue. Here are my two functions so far, CheckAllText() runs in the Load function of the Form. public void TextColor(string text) { int iReturnValue = richTextBoxZedit.Find(text); if (iReturnValue >= 0) { richTextBoxZedit.SelectionColor = Color.Blue; } } public void CheckAllText() { string[] HTMLArray = new string[4] { "", "", "", "" }; for (int i = 0; i < HTMLArray.Length; i++) { TextColor(HTMLArray[i]); } } Any suggestions? Thanks in advance.
-
Using Microsoft Visual C++ 2005EE Compile ErrorOk thanks but I even just tried compiling this in a new solution and it didn't work: #include using namespace std; int main() { cout<<"This should work..."; return 0; } Any ideas?
-
Using Microsoft Visual C++ 2005EE Compile ErrorHi, I used to code in C++ but stopped for about a year, anyway I am back but have ran into a problem on my first project: Any solution I now create doesn't work, when I try and build it it builds fine, but when I try and run it, I get the error that: "Unable to start program "C:\\...projects\test\debug\test.exe". The system could not find the file specified" I realise this means that it hasn't created the debug information, but it hasn't created the release information either. Also I can Build Solution, and it says it is fine, but the Compile option is greyed-out and I don't know what to do. Is there an option in MVC++EE when you can turn off compiling it until you do something? Any suggestions? Thanks, Any reply is appreciated. -- modified at 8:47 Monday 11th June, 2007
-
Disabling Windows Buttons: Minimize,Restore,CloseI just tried it out, it is amazing, thankyou very much. Except I don't understand the:
this.FormClosing += new FormClosingEventHandler(MyForm_FormClosing);
VC# EE just gave me a load of errors on that, and I don't quite know what it's doing anyway. Well, thanks for the great help.
-
Disabling Windows Buttons: Minimize,Restore,CloseThankyou, that helps a great deal. Thankyou for all the effort you put in to finding out about it also.
-
Disabling Windows Buttons: Minimize,Restore,CloseHi, I have created a little button on the form called "Close", and when a user clicks it, it displays a messagebox saying "Do you really want to quit?" with an Ok and a Cancel. Then if they click Ok it does : this.Close(); and if not it doesn't do anything. Now, I want to be able to get data from the X (Close button) on the form to display the same text box or disable the X (Close button) so users have to use the close button that I have created. Any way of doing this? Thanks.
-
Displaying a message when closingThankyou for your help, it works now :)
-
Displaying a message when closingHi, I need a little help. I am wanting a message such as "Do you really want to quit?" to be displayed when a user clicks the X (close button) in the corner of the form. I have tried some methods that just haven't worked, as I do not know how to make the Close(); function display a bool to then be used in an if statement. Any ideas? Thanks.
-
Filling a dataset not workingOk thanks, I'll try this, but I'm just a beginner at ADO.NET so I may come back here for help if I have misunderstood what you mean.
-
Filling a dataset not workingHi, I need a little help. I have created an untyped dataset on my form called dataSet1 and am trying to create a parent/child relationship with a datagrid displaying the data. But I am getting a weird exception on the code:
da.Fill(dataSet1);
The exception says: "Incorrect syntax near '*'" I don't understand this exception atall. Please help me, Any reply is appreciated. P.S. here is the full code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;namespace NorthwindTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}private void Form1\_Load(object sender, EventArgs e) { string strConnect = @"server = (local)\\SQLEXPRESS; integrated security = sspi; database = C:\\SQL\\NORTHWND.MDF"; string strQuery1 = @"SELECT \* FROM employees"; string strQuery2 = @"SELECT \* FROM orders"; string strQuery = strQuery1 + strQuery2; SqlConnection conn = new SqlConnection(strConnect); SqlDataAdapter da = new SqlDataAdapter(strQuery, conn); da.TableMappings.Add("Table", "employees"); da.TableMappings.Add("Table1", "orders"); da.Fill(dataSet1); DataRelation relation = new DataRelation("employeeorders", dataSet1.Tables\[0\].Columns\["employeeid"\], dataSet1.Tables\[1\].Columns\["employeeid"\]); dataSet1.Relations.Add(relation); dataGridView1.DataBindings.Add("datasouce", dataSet1, "employees"); } }
}
-
DataGrid and DataGridViewthanks for the help, But I found out how to do it another way before your post:
dataGridView.DataBindings.Add("datasource",dataSet1,"customers");
-
DataGrid and DataGridViewHi, I have got the Apress book Beginning C# Databases: from Novice to Professional, and have been very pleased with it, But because it was written before Microsoft Visual C# 2005 came out, some things are a bit out of date. I have managed to get around most of them except this one: It tells me to add a DataGrid to the designer view, but all I could find was DataGridView, and after some scripting, I have to "Bind the data grid at run time" using the script:
dataGrid1.SetDataBinding(dataset1, "employees");
I understand what the code is doing but the class DataGridView does not have a SetDataBinding function and so do not know how to bind the DataGridView1 object to the dataset. Please help. Thanks, Any reply is appreciated. I will also post this in the C# section