1,857 Posted Topics

Member Avatar for flywheeljack

You might find [this](http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/c6e787ed-4472-4c22-9244-2898235de48e/) helpful.

Member Avatar for tinstaafl
0
225
Member Avatar for zachattack05

This [post](http://www.daniweb.com/software-development/csharp/threads/80084/changing-a-datagridviews-combobox-items-based-on-another-combobox) might help

Member Avatar for zachattack05
0
6K
Member Avatar for superstar515

Actually you are, in a sense. You need to log the keystrokes and change or discard them, when echoing to the app. This means going fairly deep into the API's to accomplish this. If I'm not mistaken, most keyloggers hook right into the keyboard, so you would need to be …

Member Avatar for tinstaafl
0
168
Member Avatar for klemme

It appears to me that you should use Warrior.currentDamageLevel instead of this.currentDamageLevel

Member Avatar for Ketsuekiame
0
194
Member Avatar for imBaCodes

Something like this should work: Dim dt As Date dt = #11/25/2012# 'DateAdd is a function specifically designed for date math operations. dt = DateAdd("m", -1, dt) MsgBox (dt) Here's the [MSDN page ](http://msdn.microsoft.com/en-us/library/aa262710%28v=VS.60%29.aspx)

Member Avatar for imBaCodes
1
172
Member Avatar for SLMQC

Something like this should work: Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click Const intNUM_STORES As Integer = 5 'The number of stores Const intASTERISK As Integer = 100 'one */$100 in sales Dim intSales As Integer = 0 'To hold daily sales Dim decTotal As …

Member Avatar for tinstaafl
0
338
Member Avatar for 7429EEFC

Here's a simple way using a combobox, a listbox and a custom class. the file is in the format, `Title,Genre` on each line. Instead of using a button, this reacts instead to clicking an item in the combobox and changing the contents of the listbox. using System; using System.Collections.Generic; using …

Member Avatar for tinstaafl
0
530
Member Avatar for somjit{}

One way to quickly learn VB.net is use the integrated help function. Anytime you're stuck on the exact way to do it in VB type in the keyword and press F1. Any functions, methods, properties, classes, etc., that are part of the common .net library will have sample code in …

Member Avatar for somjit{}
0
331
Member Avatar for ChaseRLewis
Member Avatar for peymankop

You could also simplify your code by enabling the Add button in the TextChanged event handler for txtWord and txtTranslateWord, then disabling it after the new value has been added to the disctionary. This way you don't have to keep popping up the messagebox. Also TryGetValue returns a boolean. The …

Member Avatar for tinstaafl
0
345
Member Avatar for vishnation

if the Nrt is added in runttime, then remove the `Handler` clause from the Sub declaration(`Private Sub Nrt_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)`). In your code when Nrt(10000) is created, use the [AddHandler statement](http://msdn.microsoft.com/en-us/library/vstudio/7taxzxka%28v=vs.100%29.aspx) `AddHandler Nrt(10000).TextChanged, AddressOf Nrt_TextChanged`

Member Avatar for tinstaafl
0
251
Member Avatar for NidhiSree

also try { //Some code } catch(Exception ex) { } allows you to trap user input errors that you can notify the user of.

Member Avatar for Ketsuekiame
0
251
Member Avatar for Papa_Don
Member Avatar for Zulu123

Basically you have a class Team which has a name and a List of Players. You might want a class for the players too, with name, awards, stats, etc.. Then you have a class League which has a name and a List of Teams. This can be declared as a …

Member Avatar for tinstaafl
0
179
Member Avatar for jsteele623

You could also use the System.IO.File.ReadAllLines method to fill the listbox in one statement. Something like this ListBox1.Items.AddRange(File.ReadAllLines("TextFile1.txt")) then to update the textfile something like this: File.Delete("TextFile1.txt") Dim sw As StreamWriter = File.CreateText("TextFile1.txt") For I = 0 To ListBox1.Items.Count - 1 sw.WriteLine(ListBox1.Items(I).ToString) Next sw.Close()

Member Avatar for tinstaafl
0
137
Member Avatar for KushMishra

The [Process Class](http://msdn.microsoft.com/en-us/library/vstudio/ccf1tfx0%28v=vs.100%29.aspx), will do what you want, start the program, redirect the standard input then send text to the process. By sending the right key characters you should be able to save the file as well. The articles I linked to include sample code that should be able to …

Member Avatar for tinstaafl
1
532
Member Avatar for notfes

the sound problem is probably about drivers. Try the sound card manufacturer's web site and see if they've got win 8 drivers. If you upgraded directly from XP to win 8 the bugginess probably comes from your system being too old for win 8 to handle. My experience has been …

Member Avatar for razib8bd
0
94
Member Avatar for keedier

Here's an [article](http://msdn.microsoft.com/en-us/library/aa733652%28v=vs.60%29.aspx), that shows how to use the Click event, a[ MessageBox](http://msdn.microsoft.com/en-us/library/aa445082%28v=VS.60%29.aspx) can then be used to display the Listview.SelectedItem

Member Avatar for Jx_Man
0
282
Member Avatar for Yiggasay

Something like this might work for you: #include <string> #include <iostream> #include <sstream> using namespace std; class fraction { public: int numerator; int denominator; //default constructor fraction() { numerator = 0; denominator = 0; } //constructor with values passed to it fraction(int n, int d) { numerator = n; denominator …

Member Avatar for tinstaafl
0
405
Member Avatar for aarviii
Member Avatar for Reverend Jim
0
252
Member Avatar for silvercats

the diagram doesn't seem too bad. I would offer a suggestion. To make item and invoice separate classes then in your invoice class make a list of item a property and in the main class a list of invoice as a property. This allows you to leverage the built-in and …

Member Avatar for tinstaafl
0
82
Member Avatar for aarviii

one way is to read the [file into memory](http://msdn.microsoft.com/en-us/library/vstudio/system.io.file.readalllines%28v=vs.100%29.aspx), then use the [Split Method](http://msdn.microsoft.com/en-us/library/vstudio/b873y76a%28v=vs.100%29.aspx) to split the line up at each comma. From there you can add specific [text to the textbox](http://msdn.microsoft.com/en-us/library/vstudio/system.windows.controls.textbox.text%28v=vs.100%29.aspx).

Member Avatar for Reverend Jim
0
463
Member Avatar for grgrl
Member Avatar for jakewebb

The [ResourceManager Class](http://msdn.microsoft.com/en-us/library/vstudio/system.resources.resourcemanager%28v=vs.100%29.aspx), might be what you're looking for. It has the option to use a folder for resources, alternatively you can use an external .resx files to store the videos.

Member Avatar for tinstaafl
0
1K
Member Avatar for clubberlangMayo

Here's one way to do it using vectors: #include <iostream> #include <string> #include <vector> using namespace std; vector<string> singles; vector<string> plurals; void Pause() { cin.ignore(); cin.get(); } void CLS() { cout << string( 100, '\n' ); } void Play() { string singWord, pluralWord; cout<<"Please enter a word: "<<endl; cin>>singWord; int …

Member Avatar for clubberlangMayo
0
993
Member Avatar for Allorango

here's a [link](http://msdn.microsoft.com/en-us/library/aa294088%28v=vs.60%29.aspx) that discusses that. here's [another](http://msdn.microsoft.com/en-us/library/aa716201%28v=VS.60%29.aspx)

Member Avatar for Allorango
0
225
Member Avatar for Tinnin

From my reading sFile has the .xls or .xlsx extension and newExtension is sFile with the .csv extension. Changing the format in the SaveAs statement works when I tried it: oWB.SaveAs("C:\Users\filePath\" & newExtension, XlFileFormat.xlCSV)

Member Avatar for Tinnin
0
170
Member Avatar for phats more

Here's one place to [start](http://msdn.microsoft.com/en-us/library/vstudio/618ayhy6%28v=vs.100%29.aspx) Here's [another](http://www.dummies.com/how-to/computers-software/programming/chash.html)

Member Avatar for Schol-R-LEA
0
249
Member Avatar for hookedtocsharp
Member Avatar for Ann95

Don't let the common usage of the word Basic fool you, those languages are very different. A lot of the functions can probably be converted but it will most likely have to be done by hand. This will most likely require fairly extensive knowledge of both languages. A two step …

Member Avatar for tinstaafl
0
82
Member Avatar for tubzz

`Console.Readline();` by itself will pause the console. On a side note. Whenever you get input from a user a good habit to get into is to, validate what the user inputs. In your case I would suggest the following: static void Main(string[] args) { int[] arr=new int[10]; int size,sum=0; bool …

Member Avatar for Ketsuekiame
0
315
Member Avatar for amyzatiey29
Member Avatar for tinstaafl
0
30
Member Avatar for SoulofchaOs
Member Avatar for tamim.dari.5

The main problem with sharing is getting assigned an IP address. A switch doesn't usually have a DHCP Server, so using a switch may not work, unless your isp will let you have more IP addresses. If you use a router, you can share the connection with different computers. Or, …

Member Avatar for Assembly Guy
0
476
Member Avatar for Allorango

Something like this might work: For i = 0 To UBound(zonelist) - 1 If sock_zone(Val(zonelis(i,0))).State <> 7 Then

Member Avatar for tinstaafl
0
312
Member Avatar for xXghostXx

This might work for you. `apt = New SqlDataAdapter(sqlstr, constr.ConnectionString)`

Member Avatar for TnTinMN
0
241
Member Avatar for vinay7868
Member Avatar for tinstaafl
0
292
Member Avatar for <M/>

Try these: [for loop](http://msdn.microsoft.com/en-US/library/vstudio/ch45axte%28v=vs.100%29.aspx) [Console Class](http://msdn.microsoft.com/en-us/library/vstudio/system.console%28v=vs.100%29.aspx) [convert string to integer](http://msdn.microsoft.com/en-us/library/vstudio/bb384043%28v=vs.100%29.aspx)

Member Avatar for <M/>
0
180
Member Avatar for waqas.zafar.125

Here's some code that should help. I revised a few things and added a simple shuffle routine(basically pick 2 random cards and swap them then repeat 1000 times). I also included a sample of a node class that inherits Card and uses Card's functions. The routines here should make it …

Member Avatar for tinstaafl
0
201
Member Avatar for LionelMessi

Just in case you wanted automatic movement here's a simple way. You need a label, a button and a timer using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication4 { public partial class Form1 : Form { Point Max = new …

Member Avatar for tinstaafl
0
2K
Member Avatar for chdboy

Something like this should work. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Set the format and initialize masked textbox DateTimePicker4.Format = DateTimePickerFormat.Custom DateTimePicker4.CustomFormat = "dd/MM/yyyy" mt.Text = DateTimePicker4.Text End Sub Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker4.ValueChanged 'change masked textbox …

Member Avatar for tinstaafl
0
2K
Member Avatar for gelmi

call the second routine from the first with the employee's id and name as parameters something like this should work: #include <iostream> #include <string> using namespace std; void Routine1(); void Routine2(string ID, string Name); int main() { cin.ignore(); cin.get(); return 0; } void Routine1() { string ID = ""; string …

Member Avatar for tinstaafl
0
115
Member Avatar for omojolinho

If I'm not mistaken plotting will depend on the chart type used, here's a [link](http://msdn.microsoft.com/en-us/library/dd489233.aspx) to the different chart types VS uses and links to their properties and methods.

Member Avatar for <M/>
0
438
Member Avatar for silvercats
Member Avatar for Moschops
0
169
Member Avatar for kidkardel

Here's one way to do it, not fancy but it works. I use an imagelist to hold the images, and 3 labels to display them. I used 6 images, but you can add as many as you want, also you can have as many labels as you want to mimic …

Member Avatar for tinstaafl
0
4K
Member Avatar for tomz6

Near as I can tell, basically what you want is to create your own library. Here's a [link](http://www.cplusplus.com/forum/beginner/24309/), that discusses using custom libraries. I think, your problem will be in making it cross compatible. You'll have to test and compile a different version for each Operating System, this could also …

Member Avatar for rubberman
0
182
Member Avatar for kevin.bryant.3701

With this code using your example("STACK") the out put is Enter your first name please : STACK Your name is STACK 19571 int main() { string input ; long finalanswer = 0; cout << "Enter your first name please : " ; cin >> input; cout << "Your name is …

Member Avatar for tinstaafl
0
194
Member Avatar for linezero

how is tmpds declared? is totalprofitforalltime a datatable or an ienumerable collection? If not then you'll get that error.

Member Avatar for tinstaafl
0
259
Member Avatar for Matigo

not sure if this will work for you but the code in this [post](http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/2ddb37db-9e85-4065-af97-8035af17ff22) does create a generic console in a forms application. Basically you have a form and a terminal. The terminal works via the Console class. It's in c# but I just compiled it as a Class Library …

Member Avatar for Matigo
0
300
Member Avatar for tbanisida

You'll have to be more clear. Do you want to type in a different language, than the default language of a computer? Or add text to a textbox in a different language?

Member Avatar for geniusvishal
0
932

The End.