No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
48 Posted Topics
Re: Hi Can you provide an example of what you are trying to do. If what you're trying to do is to 'pass' variable between forms then you should try the [B]Parent[/B] property. Other way is to have a 'helper' class with static fields. Thanks, Camilo | |
Re: My idea is to create a 'User Control' that will have to fields a 'Label' and a 'PictureBox' and it will expose both as pulbic properties so you can then intanciate the 'User Control', set the Label's property as the image description and the PictureBox's(PictureBox's Image property) property as the … | |
Re: Hi What you need to understand is that once you instanciate an object(i.e Form2 f2 = new Form2) you can access any public member(field, method...) declare in that object throuth the dot notation( i.e f2.textBox1 ). If you have a form lets call it 'Form1' and this form has a … | |
Re: Hi, Try this code tha use JavaScript. [code] <html> <head> <title>Test</title> </head> <body> <form> <input type="button" onclick="self.close();" value="Close" /> </form> </body> </html> [/code] Regards, Camilo | |
Re: Hi, try this [icode]this.TopMost = true;[/icode] Hope this help. Camilo | |
Re: Hi You can go to [url]www.projecteuler.net[/url]. This are not C# problems but rather problems that can be solved using C# or any other language. Its very interesting. | |
Re: Hi, Try this [code] int id = 2; string idStr; idStr = id.ToString().PadLeft(4,'0'); [/code] Regards, Camilo | |
Re: Hi, If you had used the DataSource property it should not let you modified the ListBox. Can you post some code. Regards, Camilo | |
Re: Hi, This is how to delete it from the CheckBoxList : [code] private void buttonDeleteItem_Click(object sender, EventArgs e) { for (int i = 0; i < this.checkedListBox1.CheckedItems.Count; i++ ) { this.checkedListBox1.Items.Remove(this.checkedListBox1.CheckedItems[i]); string modified = theStringFromWhereYouLoadTheTextBox.Replace(this.checkedListBox.CheckedItems[i].ToString(), string.Empty );//And then Create a new file with same name that the original from modified … | |
Re: Hi, The anwer is in your post. Simply don't use binding. Regards, Camilo | |
Re: Hi, If this behavior its because of some code that you have in the Page_Load method the you should try something like this [code] protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { //Your code here } } [/code] Regards, Camilo | |
Re: Hi, The reason is that every time you drag and drop a control into the designer. What happends under the hood is that a private property is created(say private MenuStrip menuString1 ). just change the access modifier to public. Althoug for what I understand that you are trying to do … | |
Re: Hi, I assume that when you say "getting the docuement formatted differently is not an option" you mean that you don't want to change the original document. So here is my idea 1.Get the XML document as a 'string' with [icode]StreamReader.ReadToEnd[/icode]. 2.Create a method than inserts the quotes and return … | |
Re: Hi, Hire is the code. [code] #include <cstdlib> #include <iostream> #include <sstream> #include <string> using namespace std; int main() { int arrayLength = 0; cout << "Enter the numbers of elements of the array: "; cin >> arrayLength; int array[arrayLength]; int index = 0; int lowest ;//Here you could assing … | |
Re: Hi, C++ and JAVA it's almost the 'same type' I would stick with C++ is very potent and you can use it in .Net . A very simple but very important IMHO is JavaScript(has nothing to do with JAVA ) also you want to know SQL for working with data. … | |
Re: Hi, Try this to see if you are getting any rows. [code] echo mysql_num_rows($result) ; [/code] you can also do [icode]$row[0][/icode] that way you wouldn't have to worry about the spelling. Regards, Camilo | |
Re: Hi, Make sure that your From [COLOR="Red"]has the same namespace[/COLOR] as the class from where you want to cosume it. Regards, Camilo | |
Re: Hi, I don't quite get your quetion. Can you post some code?. Regards, Camilo | |
Re: Hi, I am as newbie to PHP as you but in this line you missed teh '$' symbol. [code]sql="SELECT login,id FROM tblDealer WHERE login='".$email."' and password='".$password."'"; [/code] in front of the sql variable $sql Although you can go to this link [url]http://us2.php.net/manual/en/function.mysql-query.php[/url] Hope this help, Camilo | |
Re: Hi, Seems to me that you need to change the [icode]AttachDbFilename=D:\WindowsApplication1\Database1.mdf; [/icode] to the path where is the database on the server. Regards, Camilo | |
Re: Hi, I have found this link [url]http://www.codeproject.com/KB/database/sqldodont.aspx[/url] You should find articles about multithreading and Background Worker. >I want to just send data in blocks to dataset I think that you may use paging and this way retrieve your rows on demand. Hope this help, Regards Camilo | |
Re: Hi, Go to this link. [url]http://blogs.msdn.com/xna/archive/2008/05/07/announcing-xna-game-studio-3-0-community-technical-preview-ctp.aspx[/url] Regards, Camilo | |
Re: Hi, Write is with capital letter like [icode] Console.Write("Hello"); [/icode]. Remember that C# is case-sensitive. Regards, Camilo | |
Re: Hi, For connecting with the backend database you need ADO.NET, although you can use LINQ tp SQL to. It's your call. An you can add values dinamically to the ComboBox like this [code] this.comboBox1.Items.Add("Item"); [/code] Regards, Camilo | |
Re: Hi, Find anything about OpenFileDialog, SaveFileDialog, RichtTextBox controls. Regards, Camilo | |
Re: Hi, You have syntax errors. It has nothing to do with importing any namespace. Regards, Camilo | |
Re: Hi, C# and C#.NET are the same thing. You need to specify with VB because there are other VB 'versions'(e.g VB 6...) out of the .NET platform. Regards, Camilo | |
Re: Hi, You can call [icode]MessageBox.Show("The test you want to display");[/icode] Hope this help. Camilo | |
Re: Hi, Here is my idea. Paste this into the Main method in a Console App to see it working. [code=csharp] string name = "camilo"; Stack<string> s = new Stack<string>(); string temp = string.Empty; foreach (char a in name) { temp += a; s.Push(temp); Console.WriteLine(temp); } for (var i = 0; … | |
Re: Hi, You can also serialize the objects. This will save the object in a file and then you can retrieve then like objects to. Among the clases that you will need to use are FileStream, StreamReader, StreamWriter,..., this clases are in the [icode]System.IO[/icode] namespace. Also you need to mark the … | |
Re: hi And you are programing in what language? Regards, Camilo | |
Re: Hi, Your problem is that you have deleted rows from the DataTable(this act like a cache but its not related to the fisical DB wich means that whatever you do in the DT doesn't reflecs in the DB) and not in the actual data base what you need to do … | |
Re: Hi, Maybe you are forgetting to attach the Shape_MouseUp method to 'poligon2'. Say [icode]poligon2.MouseUp += new MouseEventHandler(Shape_MouseUp)[/icode]. Hope this Help Regards, Camilo. | |
Re: Hi, Are you refering to a Web Aplication or a Windows aplication?. Regards, Camilo | |
Re: Hi, Maybe you should ask your question in the ASP.NET forum. Regards, Camilo | |
Re: Hi, What is the functionality that you need?. Regards, Camilo | |
Re: Hi, My advice is that you in the constructor of the class PoligonShape should recieve an array of points and a Pen. Add a method called Paint that method shoud recive a Form and you assign the grafic object like this: [code=c#] Grafic g = form.CreateGrafic();//form is the parameter of … | |
Re: Hi [code] Graphics g = this.CreateGraphics(); Pen pen = new Pen(Color.Red, 2); g.DrawEllipse(pen, 20, 14, 20, 20); [/code] Regards, Camilo | |
Re: Hi, Try changing xmlttrc.[x].Value for xmlttcr[0].Value Hint - Whenever you get an exception copi the output an pasted in your question. Camilo | |
Re: Hi, Maybe you should go to this web site. [URL="http://www.asp.net"]http://www.asp.net[/URL] Regards, Camilo | |
Re: Hi, In C# if you are gonig to use the == operator its not defined for type string and boll(ie string == bool)but since you are trying to check it the string 'loginus' is not empty you can use one of this options 1. if(loginus != "") 2. if(loginus != … | |
Re: Hi, For your example I assume that you whatn to remove everything between <data></data> or the result would look like this <place id="opt1"><data>data1data2data3</place> Am I right?. Regards, Camilo | |
Re: Hi, I think that you need to know how to interact with the API of the game. If you can, the you should be able to proccess the hotkeys in the C# program and send the imput directly to the game aplication. Hope this help, Camilo | |
Re: I hope this help you to decide. [url]http://searchsqlserver.techtarget.com/tip/1,289483,sid87_gci1063700,00.html[/url] Regards, Camilo | |
Re: When you drag and drop a control into the Windows Form in the Designer It automatic crate a private field that represent the control you just added. What you need to do is go to de Designer File it and change the access modifier to public. You can find the … | |
Re: This is how to add a new control. [code] public class Form1 { private UserControl1 userControl; public Form1() { InitializeComponent(); userControl = new UserControl1(); this.Controls.Add(userControl); } } [/code] Mi idea is. 1.On the UserControl1.cs create a 2 propertys one for 'toolStrimpButton1' and another for 'toolStripButton2'. 2.On the Form2.cs create a … | |
I love to program and I love technology and I am glad of being part of this community. | |
The End.