- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hey guys just joined.. So I'm learning C#, and kinda having trouble with finding the command prompt? Installed Vistual Studio 2008 Express with C# and visual basic. After that I installed XNA 3.1. It's supposedly in a folder in the start menu under 'Microsoft Visual Studio Tools', but I have … |
|
I've created an image with PIL, and I'm trying to get it show on a Tkinter GUI, but I get a blank window. Any ideas? [CODE]import Tkinter import Image, ImageTk, ImageDraw #create an image image = Image.new('RGBA', (100, 100)) i = 0 draw = ImageDraw.Draw(image) ## draw some lines for … |
|
Hey guys. I'm having some trouble with this error. [CODE] class App(): i = 0 def updateCount(self): i = i +1 app = App() app.updateCount() input('Enter') [/CODE] I have tried global i but get an error 'global name i is not defined'. Can someone clue me in? Cheers :D |
|
If someone could help me I'd be extremely grateful! Thank you! :) :) :) Here is my xml: [CODE]<?xml version="1.0" encoding="utf-8"?> <quotes> <quote> <name>Bob</name> <id>2</id> </quote> <quote> <name>Bob2</name> <id>4</id> </quote> </quotes> [/CODE] I am using this to try and delete the entire 'quote' node that contains the id of value … |
|
Hey guys, I'm kinda late on a college project and being kinda noobish to C# doesn't help either... Anyway: [CODE] using (XmlReader reader = XmlReader.Create("myXml.xml", settings)) { reader.MoveToContent(); reader.ReadStartElement("users"); while (reader.ReadStartElement("user")) { string userID = reader.ReadElementContentAsString("userID", ""); string userName = reader.ReadElementContentAsString("name", ""); reader.ReadEndElement(); lstContent.Items.Add(userID + " : " + userName); … |
|
Do you see anything concerning? Would you do something differently? Any comments? [CODE] public partial class mainForm : Form { public mainForm() { InitializeComponent(); } // String array private string[] myWords = new string[4]; private string currentWord; private int wordIndex; private void parseWords() { myWords[0] = "The "; myWords[1] = … |
|
[CODE]public string bob = "hello";[/CODE] This works [CODE]public string bob; bob = "hello";[/CODE] This does not? Thank you |
|
Hey guys can anyone tell me what am I doing wrong? I basically set up a method which has an array, it will return a specific element in the array according to an ID set within my property. I get the following errors: [CODE]Error (wordIdFunc = 2;): Invalid token '=' … |
|
I am finding it hard to do this the in OOP/event driven environment. I am trying to make a typing tutor in Visual C#. So I've already made an array where each elemnt is a single word. Now my next steps are, parse the first word, seperating each letter. Then … |
|
I have an array with 100 elements. How can copy only 10 element to a new array? [CODE]string[] NewArray = (string[])MyArray.Clone();[/CODE] Thank you. |