1,857 Posted Topics
Re: You might find [this](http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/c6e787ed-4472-4c22-9244-2898235de48e/) helpful. | |
Re: This [post](http://www.daniweb.com/software-development/csharp/threads/80084/changing-a-datagridviews-combobox-items-based-on-another-combobox) might help | |
Re: 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 … | |
Re: It appears to me that you should use Warrior.currentDamageLevel instead of this.currentDamageLevel | |
Re: 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) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: glad you got it. please remember to mark this solved thanks. | |
Re: 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 … | |
Re: 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` | |
Re: also try { //Some code } catch(Exception ex) { } allows you to trap user input errors that you can notify the user of. | |
Re: You might have more success using the `KeyPress` event | |
Re: 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 … | |
Re: 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() | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: please be more specific. What does each line in the text file look like? | |
Re: 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 … | |
Re: 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). | |
![]() | Re: As far as I know a .dat can hold any type of data. ![]() |
Re: 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. | |
Re: 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 … | |
Re: 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) | |
Re: 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) | |
Re: 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) | |
Re: You could try running it in XP Compatibility mode. | |
Re: 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 … | |
Re: `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 … | |
Re: Go to the manufacturers site and download and install the drivers for your model. | |
Re: Using Code::Blocks with Cygwin GCC compiler your code seems to work fine. | |
Re: 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, … | |
Re: Something like this might work: For i = 0 To UBound(zonelist) - 1 If sock_zone(Val(zonelis(i,0))).State <> 7 Then | |
Re: This might work for you. `apt = New SqlDataAdapter(sqlstr, constr.ConnectionString)` | |
Re: Have you tried creating a new project with the Crystal Report Application template? | |
Re: 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) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: [This might help](http://www.cplusplus.com/forum/unices/19824/) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: how is tmpds declared? is totalprofitforalltime a datatable or an ienumerable collection? If not then you'll get that error. | |
Re: 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 … | |
Re: 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? |
The End.