2,157 Posted Topics

Member Avatar for jogendar

Yes, it is a library. To install it read the INSTALL.TXT file included in the archive, a copy of which is quoted below. [quote]Jena2 INSTALL ============= Welcome to Jena, a Java framework for writing Semantic Web applications. Jena is a library for RDF and OWL. To use Jena in your …

Member Avatar for Momerath
0
102
Member Avatar for Essien

What do you need help with? What code do you have? What problems is the code having?

Member Avatar for Momerath
0
65
Member Avatar for zachattack05

Your interface is less accessible than your field. Put 'public' in front of the interface declaration. What this is telling you is that you are trying to declare a publicly available variable (ShutdownCommandList) that uses something that isn't publicly available (IShutdownCommand).

Member Avatar for zachattack05
1
124
Member Avatar for Tewhano

You can use a wrapper to 'convert' a non-.NET dll to one that is easily used by a .NET language, or you can use the interop services (P/Invoke) to access the DLL. There are a wide variety of ways to do each of those so, like the other poster said, …

Member Avatar for Momerath
1
113
Member Avatar for Isha810

From your code: [code]if(Convert.ToString(start)== Convert.ToString(e.SignalTime))[/code] [B]start[/B] and [B]stop[/B] are both strings, stop converting them to strings. You are just wasting time. You can also stop using [I]Convert.ToString()[/I]. Every object has a [I]ToString()[/I] method so all you are doing is adding more complexity to something that is easy to do [icode]e.SignalTime.ToString()[/icode] …

Member Avatar for nick.crane
0
209
Member Avatar for htetnaing

Yes, it is possible. You'll need to learn all the fields you need to set and the easiest way to do that is to see how Visual Studio does it. Open a new Windows form project and add a textbox to the form. Add an event handler also. Now open …

Member Avatar for htetnaing
0
162
Member Avatar for ironmancpp
Member Avatar for ironmancpp
0
95
Member Avatar for Steve_Jones

You need to explain more of what you are trying to do. How are you 'searching' a pixel? What are you trying to accomplish with your "label separate from the form'?

Member Avatar for Steve_Jones
0
94
Member Avatar for ksaihat
Member Avatar for deepak_1706

To access something from one object (We'll call it A) in another object (B) you'll need a reference in B to A. One way to do this is in the constructor for B. You'll also need to make the item in A publicly available: [code]public partial claas A : Form …

Member Avatar for deepak_1706
0
684
Member Avatar for y2kshane

Attach a method to the MouseOver event on the button and change the size. You may have to call Refresh to get it to redraw.

Member Avatar for swathi.sexey
0
133
Member Avatar for zyaday

You've attached the keydown event to the form, is that what you wanted to do? If you are in the listbox when you press the key, it will handle the keypress and not pass it to the form.

Member Avatar for Momerath
0
124
Member Avatar for RayvenHawk

Use the [URL="http://msdn.microsoft.com/en-us/library/system.io.directory.getfiles(v=VS.71).aspx"]Directory.GetFiles[/URL] method.

Member Avatar for RayvenHawk
0
253
Member Avatar for zachattack05

CryptoStream has methods to get the sequence of bytes. Just tie the CryptoStream to a [URL="http://msdn.microsoft.com/en-us/library/e55f3s5k.aspx"]MemoryStream[/URL] which is set to an array of bytes. You can also use the CopyTo method if you want to get the bytes for some reason, but the CryptoStream is already tied to something like …

Member Avatar for zachattack05
0
894
Member Avatar for waleed.makarem

Step 1: Create a list of all your points that are within 10 just comparing the x-coordinate. Step 2: From those, create a list of all your points that are within 10 just comparing the y-coordinate. Step 3: From those, create a list of all your points that are actually …

Member Avatar for waleed.makarem
0
282
Member Avatar for AngelicOne

[code]foreach (String author in authorclb.SelectedItems) { ... your insert here }[/code]

Member Avatar for AngelicOne
0
155
Member Avatar for jigglymig1

Read the problem carefully: [B]Internal array[/B] is assigned values as indicated by the parameter. You will need a private array, determine its size when the constructor is called and assign the values as stated. Your example does not use an internal array.

Member Avatar for Momerath
0
91
Member Avatar for zachattack05

Are you trying to save the class information to reconstruct the class later? If so, serialize the class first, then encrypt it. If you wrote your decrypt/deserialize correctly, you'll be able to recover the class.

Member Avatar for zachattack05
0
118
Member Avatar for jrivera

First normalize the score. What I mean by this is divide the score they received by (max score + 1). This will give you a result that goes from zero to one (with one excluded). Round this number off to however many decimals you like (say 3) so you have …

Member Avatar for Momerath
0
91
Member Avatar for aloha91

Switch/case works for Strings, so I'm not sure what your issue is. You can also use enumerated types (which is probably a better solution than using strings). So my questions for you are: 1) Why do you have to use strings? 2) Why do you think you can't use the …

Member Avatar for nick.crane
0
204
Member Avatar for Minkal

What have you done so far? Do you know how to represent numbers in 1 and 2's complement?

Member Avatar for Momerath
-2
44
Member Avatar for jasmine25

[URL="http://en.wikipedia.org/wiki/Bioinformatics"]Bioinformatics[/URL]

Member Avatar for Momerath
0
65
Member Avatar for SolemnSolitary

Remember everything is a reference which is a lot like a pointer from C/C++ (you can't do pointer math and a few other things). So something like this makes both variables reference the same object. You'll just need to do the proper assignments for your TreeNode/TreeView. [code]Object A = new …

Member Avatar for SolemnSolitary
0
403
Member Avatar for Steve_Jones

There are several ways of handling this. One is to attach a handler to the Application.Idle event. This event triggers when your application goes idle. Another is set a timer and in the trigger event check your condition. You can also put your check condition on another thread.

Member Avatar for Steve_Jones
0
98
Member Avatar for kalle82

You have C right, the rest are wrong. None of the class methods should have Console anywhere in them. A) private variable that store radius. You don't have one B) You have an empty constructor, but where is the one that take ONE parameter (and stores it in the private …

Member Avatar for ddanbe
0
383
Member Avatar for empyrean

SELECT * FROM dt2 WHERE dt2.columnname not in (SELECT * from dt1) This will get you a list of what isn't in dt1 and is in dt2. Of course you'll have to change 'columnname' to whatever you called the column.

Member Avatar for mshauny
0
154
Member Avatar for rizzi143

Your element K line is wrong, it should be [icode]1 1 1 k+1 k 1 0 k-1 1 0[/icode] Making this a formula is trivial, what problems are you having?

Member Avatar for Rashakil Fol
0
200
Member Avatar for Kieran Y5
Member Avatar for Steve_Jones

[code]using System; using System.Runtime.InteropServices; public class MouseEvents { [DllImport("user32.dll",CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)] public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo); private const int MOUSEEVENTF_LEFTDOWN = 0x02; private const int MOUSEEVENTF_LEFTUP = 0x04; private const int MOUSEEVENTF_RIGHTDOWN = 0x08; private const int MOUSEEVENTF_RIGHTUP = 0x10; public MouseEvents() …

Member Avatar for Steve_Jones
0
308
Member Avatar for charqus

You use the Length property to get the number of elements in an array: [icode]names.Length[/icode] To set the cursor at a specific position, use the SelectionStart property: [icode]rtb1.SelectionStart = 0;[/icode]

Member Avatar for charqus
0
143
Member Avatar for d87c
Member Avatar for mshauny
0
110
Member Avatar for maryarlene

[QUOTE=ddanbe;1342817]Whatever you enter in a TextBox it is collected as a string.(Using the Text property of the TextBox) So if you want to do your summation, you have to disect textbox1.Text with the SubString method, and transform the substring obtained to a number by using a Parse method.[/QUOTE] If you …

Member Avatar for Momerath
0
106
Member Avatar for frank754

Don't know of any "most common classes". I think that would depend on what you do (database, network, forms, asp, wpf, etc.) You can nest pages, just right click on your project in Solution Explorer and add a directory. Right click on a directory to add a subdirectory.

Member Avatar for frank754
0
145
Member Avatar for Davenavie

So what have you done so far? It looks like step-by-step instructions on what to write, so I'm not sure what problems you are having. One way to do this is to turn each of the instructions you have there into comments, then write the code for each comment: [code]// …

Member Avatar for ddanbe
0
92
Member Avatar for liamzebedee
Member Avatar for TheBattlizer

Create a player class with all the various variables that you need. Then create a List<> of this class to hold all the players. Store the values in a file using a comma to separate values. Read them in a line at a time using String.Split to get the individual …

Member Avatar for Momerath
0
103
Member Avatar for visual.c
Member Avatar for visual.c
0
143
Member Avatar for reemhatim

I could fix it for you, but this looks like an assignment and what would you learn? Your problem is that you need to store each character, and a count of how many times it occurs. You need at least one more variable.

Member Avatar for reemhatim
0
84
Member Avatar for NH1

Generally you put @ in front of parameters. And since OleDB is positional, it doesn't matter what you call them: [code]insertCommand.Parameters.Add("@ID", OleDbType.Char).Value = textBox3.Text; insertCommand.Parameters.Add("@Type", OleDbType.Char).Value = comboBox16.Text; insertCommand.Parameters.Add("@Company", OleDbType.Char).Value = comboBox9.Text;[/code]

Member Avatar for NH1
0
197
Member Avatar for jude1693

How are you storing the playing board? What indicates that a player has occupied a spot on the board?

Member Avatar for moteutsch
0
144
Member Avatar for AngelicOne

You can select the user name from the database to see if it is already used: SELECT COUNT(*) FROM user_table WHERE userid = 'WhateverTheUserTypedIn' If this returns anything other than zero, that userid is already in use. In some databases you could make the userid field an identity field, which …

Member Avatar for AngelicOne
0
190
Member Avatar for omarelmasry

[code] UdpClient server = new UdpClient("127.0.0.1", 9050);[/code] 127.0.0.1 is always the local machine. Is this really your client code?

Member Avatar for omarelmasry
0
239
Member Avatar for Bodmingaol

How can you tell that the [I]a[/I] in [I]aborn[/I] is not part of the word, other than your knowledge of the English language?

Member Avatar for Bodmingaol
0
225
Member Avatar for Anon17

From MSDN documentation on the Socket class: If you receive a SocketException, use the SocketException.ErrorCode property to obtain the specific error code. After you have obtained this code, refer to the [URL="http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspx"]Windows Sockets version 2 API error code documentation[/URL] in the MSDN library for a detailed description of the error.

Member Avatar for Anon17
0
790
Member Avatar for moni94

You can modify the values in an object that is part of a list, so I don't understand your #2 problem. You can't assign a new object to that location, as IEnumerable doesn't allow changing the list as you move through it (which is your #3 problem). To solve this …

Member Avatar for Momerath
0
113
Member Avatar for liamzebedee

You probably want to use a [URL="http://msdn.microsoft.com/en-us/library/xfhwa508.aspx"]Dictionary<TKey,TValue>[/URL] or a [URL="http://msdn.microsoft.com/en-us/library/system.collections.hashtable.aspx"]HashTable[/URL].

Member Avatar for Momerath
0
122
Member Avatar for 1kishore
Member Avatar for Momerath
0
78
Member Avatar for NH1

Where are you getting the time you want to convert? Where do you want the result to end up? If you have it in a DateTime object, then: [code]myDTobject.ToString("hh:mm"); // 'standard' time myDTobject.ToString("HH:mm"); // 'military' (or 24 hour) time[/code]

Member Avatar for NH1
0
186
Member Avatar for buster2209

[code]static void Main() { Regex r = new Regex("(.){0,20}"); String s = "1234567890123456789a1234567890123456789b12345c"; StringBuilder sb = new StringBuilder(); MatchCollection m = r.Matches(s); foreach (Match ma in m) { sb.Append(ma.Value); sb.Append("\n"); } Console.WriteLine(sb.ToString()); Console.ReadLine(); }[/code] Change the [I]20[/I] in the Regex to whatever length you want. sb.ToString() gives you the final …

Member Avatar for buster2209
0
103
Member Avatar for rodce

Here :) But we like to see some effort put into solving the problem, not "give me a solution to this" type questions.

Member Avatar for mshauny
0
154

The End.