698 Posted Topics
Re: Are you getting this error from within TOAD? If so, you might want to try posting on the products own forums as its unlikely you will get product specific help here. The error message itself is pretty straight forward, the user you are connecting to the database with does not … | |
Re: SQL is pretty close to spoken language...just write out what you are asking for: SELECT transactions FROM yourtables WHERE transaction date between date 1 and date 2. All you need then is to use the right table and column names and you're pretty much done...for the between you can either … | |
Re: This can occur if the frist eight rows of the column contain only numeric values. By default, the ODBC driver will read the first eight rows and then guess the datatype based on the values. You can specify a higher number in the conenction string but a current bug prevents … | |
Re: arnab_zico, its great that the answer here helped you, but try to avoid resurrecting old htreads unnecesarily :) | |
Re: I may be overlooking the obvious here since i dont really work in ASP.NET much, but doesnt Enabled = "false" in your validators declaration mean that it is not active? | |
Re: Start time is a secured property, you can add your user to the Performance Log User Group to access most processes but i think there are still a few that are denied. Do you need the start time for ALL processes or are you trying to get the info for … | |
Re: You might wanna check [URL="http://en.wikipedia.org/wiki/Subset_sum_problem"]this article[/URL]. The subset sum problem is used to demonstrate the NP-Complete complexity class. Also, hats off to apegram for simultaneously presenting a well written method and demonstrating the best way to right one :) | |
Re: Apologies if i've missed something here; trapped an app? Could you explain what you mean (with code sample if possible). You can apply transformations to the graphics object in the panels Paint event to resize whats drawn, but i'm not sure how that would apply to what you are doing. | |
Re: First off, i'm impressed that as a new coder you used a single button for the numbers 0-9. Most beginners would have had 10 different buttons for that, you are already thinkin like a coder :) If you want to mimic the windows calc then when the user presses a … | |
Re: alternatively, take a look at the dock and anchor properties in the designer. They control the size and location of a control relative to its container. | |
Re: Why are you replacing the Query string over and over? each time you assign the command text it replaces the previous query, so i would imagine (based on the code you posted) the search will work when you have typed in a genre, but will fail if you are trying … | |
Re: There are many ways to manipulate strings in C#, but i think for what you are hoping to do Regular Expressions are probably best suited. If you havent worked with them before they can be a bit daunting, but they are an incredibly powerful string parsing tool. Check out [URL="http://www.regular-expressions.info/"]regular-expressions.info[/URL] … | |
Re: Check out the [URL="http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument(VS.71).aspx"]PrintDocument [/URL]class. | |
Re: Im not familiar with the class, are you sure its not a component of the open source program you are using? You need to add a reference to your project but to do that you need to know the right file. Have you checked the documentation etc that came with … | |
Re: I wonder how long they drove around before they realised they left their wire cutters on the top camera in link 4 lol..i moved down the street a bit and they are still hovering overhead :) That or they captured an alien invasion : / Alien 1: What do we … | |
Re: Am i correct in thinking you placed your user control inside a tabControl? If not, what do you mean by moving to another tab? If you have used a TabControl then this has a TabIndexChanged event, alternatively, each TabPage in the control has its own Enter and Leave events which … | |
Re: hitesh bhatt, you have posted a completely unrelated problem ina thread that has been dead for months. Please do not resurrect old threads, and certainly dont post a question that has nothing to do with the thread. If you have a question, please start a new thread. | |
Re: Can you specify what form you are using? DialogResult is a property of a form which can be returned if it is shown modally (ShowDialog). Are you using a form you have designed, a MessageBox or a 3rd party control? If you have a 3rd party control then it will … | |
Re: you need to look at persistent graphics. When you minimise the form all of its controls are invalidated, when it is restored they each call their paint method. Unless you draw your custom images inside the paint methdo they wont be kept when the control repaints. | |
Re: You could add an extra field to your query to create the display value: "SELECT ID, NAMA, CAST(ID AS nvarchar) + ' - ' + CAST(NAMA AS nvarchar) AS DisplayValue FROM REF_SALES_OFFICER WHERE..." Then assign DisplayValue to your control. | |
Re: The other option is to leave the label where it is and scroll the text instead. Whichever way you do it, you will need some kind of timing mechanism. I would use a timer with a low interval and change the text/position in its OnTick event. But if you have … | |
Re: It sounds like you need a DateTimePicker control, but i'm not sure if they exist in ASP.NET controls. | |
Re: You need to insert some logic here. If the value for i is less than or equal to 3 (the maximum value for j) then you need to make j start at i to avoid duplicates. If i is greater than j than 3 then there wont be duplicates so … | |
Re: As ddanbe pointed out, i gave you the outline for a set of class and subclasses to store each item you draw. Then use a List<DrawnItem> to store each of the objects you draw. You can then redraw them in the Paint method using foreach(DrawnItem item in ListofItems). In your … | |
Re: One small aside, which i know apegram will agree with; unless you are 100% certain that the value you are converting is a valid integer, you should use int.TryParse() to convert strings to integers. TryParse accepts a string as input, an int variable as an output location and returns a … | |
Re: Like so many things in application design..the end result may seem simple (you click an area and it gets filled with colour) but the means to accomplish it are not. Read through the article and figure out what you can, if you need us to clarify parts of it then … | |
Re: Also, when you deploy the program, is the work.txt file included as part of the installer? Does your Vista machine have the same file structure and drive letter? When working with files, it is always possible that the file has been moved/deleted or the system has a different file structure. … | |
Re: Totally agree with the use of .Tag. The tag property is for "User-defined data associated with the object". You can access it in Code as [CODE]label1.Tag = "Something here"; string s = label1.Tag.ToString();[/CODE] but it isn't displayed on the UI so the user never sees it. | |
Re: An alternative way is to pass a handle to the form in its constructor: [CODE] public partial class Form2 : Form { //default constructor public Form2() { InitializeComponent(); } //overloaded constructor with handle to Form1 public Form2(Form1 frm1Handle) { //its important to include this in your custom constructors //it calls … | |
Re: If you want values to persist outside of the event handler, then you need to store them in variables that exist outside the scope of the event handler. Any variables you declare inside the event handler code block are lost when the block exits. You can create variables at the … | |
Re: there are a great many threads on Daniweb about passing data between forms, you should really try to find them and read them as there is a lot of helpful info there. In order to set the contents of the viewers picturebox, you could either add an overloaded constructor method … | |
Re: [QUOTE=csckid;1161884]yes it does [CODE] public Form1() { InitializeComponent(); } public Form1(string st) { this.st = st; } [/CODE][/QUOTE] No..it doesnt. The code you posted here is an example of method overloading; providing different implementations of a method with the same name but different parameters. If you call [iCODE]Form1 f = … | |
Re: the MSDN page [B]has[/B] an example. You can send the parameterised thread delegate an object containing your values. Sicne object is the base class of all classes you can send it any type of variable you like. If you need to pass it more than one variable then encapsulate them … | |
Re: The snippet ddanbe has given you uses thread.sleep to slow the draw process down. Another option is the Timer class which has a tick event that fires at a set interval. | |
Re: [QUOTE=trippinz;1159898]No i only bumped because i have been waiting STUMPED for 38 minutes. I am trying to think. MY BRAINS EXPLODING !!!!!!![/QUOTE] Please remember that this is a free community website. The solvers aren't paid to answer your queries and they may have jobs/studies/projects/lives of their own. Be patient and … | |
Re: You have the " in the wrong place. You need one at teh start and end of strings. You have one at the end of your first line so the compiler has read "; Console.WriteLine(" as your string and then failed to work out what {0} ... \{ means as … | |
Re: if you only want to draw the rectangle when the user presses a certain key i would use a boolean flag: [CODE] private bool keyPressed = false; private void Form_Paint(object sender, EventArgs e) { if(keyPressed) { Graphics gfx = e.Gaphics; Pen myPen = new Pen(Color.Azure, 1.0f); Rectangle myRec = new … | |
Re: That depends on what code you are running and where you are running it, we can offer more specific help if you can be more specific about what you are trying to achieve. You can use the datagridview's many events to run code. If you want to do something when … | |
Re: Calling [iCODE]this.Invalidate()[/iCODE] will cause the Paint event to fire. | |
Re: Have a go for yourself first. The best way to learn is by trying. Just think it through step by step. For each section you need to pick from either array 1 or array 2. So section 1 will be either array1[0] OR array2[0], section 2 will be array1[1] OR … | |
Re: edgias, the OP states they want to present a form they have already created. If they used that code in the form they are showing they wont be able to re-display it...and if they use it in their main form it will close that instead. Please try to be more … | |
Re: Show us what you have so far and we'll point you in the right direction doh..pipped by a wide margin there :p | |
Re: Is it intentional to have the same exam scheduled twice? Using your example [1,2,2], and assuming that the student is taking exam 2: When j = 1 then element in the chromosomeArray is equal to testexam; So you then test j+1 and j-1 against ALL the exams in the students … | |
Re: converting switch to if-else is easy (although somewhat redundant i think...). Just take out the switch(copy) part at the top and replace [CODE] case "md": //code here break; case "copy": //code here break; [/CODE] with [CODE] if(code=="md") { //code here } else if(code == "copy") { //code here } [/CODE] … | |
Re: Firstly, you are implicitly converting strings to int values which should be throwing an exception: [iCODE]int a = row.Cells[0].Value.ToString());[/iCODE] You also have an extra ')' on the end that shouldn't be there. Try something like: [CODE] int a = Convert.ToInt32(row.Cells[0].Value); [/CODE] although if you cant be certain the value will … | |
Re: I think you have hit a very common problem amongst new coders. You are trying to access members on your [B]instance[/B] of Form1 via its name instead of a handle. Unless you are dealing with static classes/members you cannot access them via their name alone. When your application runs, in … | |
Re: What apegram has suggested will allow you to compare line by line. In your example you are comparing x with x2 but i dont see where you have declared them and you aren't populating them. You either need to populate them with the next line from the streamreader [iCODE]x = … | |
Re: Its quite possible that you are exceeding the physical memory available to your application and/or the stack. If you want to see if it is still running, try adding a reference to System.Diagnostics and put the following inside your for loop after you increment q: [CODE] if (q % 500 … | |
Re: My advise would be to utilise the Rectangle.Contains method. You can create a rectangle and then use .Contains to see if a point falls inside the rectangle. The following example has a Grid Class to store the rectangle and name for each area of the picturebox (i made it 252 … | |
Re: what design package are you using? If you are new to C# but have already built a working platform game i'm gonna assume you are using XNA Game Studio, or the like. If so it is probably a software specific problem. In c# winforms you would either use a Paint … |
The End.