698 Posted Topics

Member Avatar for bobbysands

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 …

Member Avatar for nasavietnam
0
600
Member Avatar for chetanbasuray

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 …

Member Avatar for chetanbasuray
0
96
Member Avatar for eyal27

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 …

Member Avatar for eyal27
0
962
Member Avatar for aminit

arnab_zico, its great that the answer here helped you, but try to avoid resurrecting old htreads unnecesarily :)

Member Avatar for Geekitygeek
0
81
Member Avatar for user1980

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?

Member Avatar for user1980
0
188
Member Avatar for Lolalola

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 …

Member Avatar for Lolalola
0
91
Member Avatar for checho

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 :)

Member Avatar for checho
1
741
Member Avatar for tiwas

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.

Member Avatar for tiwas
0
79
Member Avatar for forhacksf

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 …

Member Avatar for Geekitygeek
0
248
Member Avatar for matt.clark.228

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.

Member Avatar for Geekitygeek
0
81
Member Avatar for hamer.mike

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 …

Member Avatar for Geekitygeek
0
58
Member Avatar for StrangeArray

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] …

Member Avatar for Geekitygeek
0
185
Member Avatar for thuyson

Check out the [URL="http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument(VS.71).aspx"]PrintDocument [/URL]class.

Member Avatar for thuyson
0
192
Member Avatar for iliali16

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 …

Member Avatar for Geekitygeek
0
87
Member Avatar for samarudge

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 …

Member Avatar for Geekitygeek
0
171
Member Avatar for Dimansu

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 …

Member Avatar for Geekitygeek
0
121
Member Avatar for hitesh bhatt

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.

Member Avatar for Geekitygeek
0
84
Member Avatar for Dimansu

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 …

Member Avatar for Renukavani
0
85
Member Avatar for Ahsan Baig

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.

Member Avatar for Geekitygeek
0
122
Member Avatar for hery

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.

Member Avatar for kvprajapati
0
166
Member Avatar for ernst1234

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 …

Member Avatar for Geekitygeek
0
158
Member Avatar for edgias

It sounds like you need a DateTimePicker control, but i'm not sure if they exist in ASP.NET controls.

Member Avatar for Geekitygeek
0
65
Member Avatar for DaveTran

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 …

Member Avatar for Geekitygeek
0
156
Member Avatar for ejazmusavi

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 …

Member Avatar for Diamonddrake
0
578
Member Avatar for andrew2325

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 …

Member Avatar for Geekitygeek
0
167
Member Avatar for ejazmusavi

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 …

Member Avatar for Geekitygeek
0
190
Member Avatar for adobe71

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. …

Member Avatar for Geekitygeek
0
179
Member Avatar for toko

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.

Member Avatar for Geekitygeek
0
125
Member Avatar for jks4000

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 …

Member Avatar for Geekitygeek
0
510
Member Avatar for Mitja Bonca

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 …

Member Avatar for Geekitygeek
0
131
Member Avatar for jakkee

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 …

Member Avatar for Geekitygeek
0
234
Member Avatar for csckid

[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 = …

Member Avatar for Geekitygeek
0
151
Member Avatar for TotoTitus

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 …

Member Avatar for Sals
0
123
Member Avatar for Acute

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.

Member Avatar for ddanbe
0
719
Member Avatar for trippinz

[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 …

Member Avatar for Geekitygeek
-1
93
Member Avatar for BrianWren

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 …

Member Avatar for BrianWren
1
129
Member Avatar for Acute

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 …

Member Avatar for Geekitygeek
0
409
Member Avatar for domingo

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 …

Member Avatar for domingo
0
140
Member Avatar for Acute
Member Avatar for Acute
0
3K
Member Avatar for FlippA

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 …

Member Avatar for Geekitygeek
0
135
Member Avatar for bmasta12

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 …

Member Avatar for Geekitygeek
0
112
Member Avatar for danturn

Show us what you have so far and we'll point you in the right direction doh..pipped by a wide margin there :p

Member Avatar for danturn
1
176
Member Avatar for FlippA

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 …

Member Avatar for FlippA
0
129
Member Avatar for attifa tariq

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] …

Member Avatar for attifa tariq
0
142
Member Avatar for domingo

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 …

Member Avatar for domingo
0
2K
Member Avatar for danieldot

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 …

Member Avatar for danieldot
0
99
Member Avatar for sjn21682

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 = …

Member Avatar for Geekitygeek
0
150
Member Avatar for word.smith

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 …

Member Avatar for apegram
0
155
Member Avatar for deucalion0

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 …

Member Avatar for Geekitygeek
1
542
Member Avatar for Ajrocker72

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 …

Member Avatar for Geekitygeek
0
132

The End.