Waldito's Q&A profile
Windows Forms RichTextBox control indent problem
Is there any way to make the default left indent becomes right indent I would like to align a series of numbers. richTextBox1.SelectionAlignment = HorizontalAlignment .Right; Will change the alignment. ...Show All
Visual Basic .Net certification
Do you know any web site for .net or SQL server certification practice. I m beginner and I have no idea how they look like. Also if any web site to prepare for them I appreciate your help. (sorry I didn t know where to put my question) TestKing has a hidden 90 day access policy on their software. You buy something for $50 thinking it’s yours and 90 days later you find out its not and for another $25 you can access it again. The only place you can find this information is in their FAQ section, which of course I didn’t look at until I could not open the software. I wrote the TestKing sales staff and asked them for my money back be ...Show All
Visual Basic Creating Events
Hi all, I am trying to hook up an application i have created using Events but am a little unsure as to where to put everything. So any guidance in the right direction would be appreciated. What i have is a form with two user controls, a textbox control and a data grid. what i am trying to do is when the user selects a customer from the text box control it will populate the datgrid with their details. I have declared a Public Event NewCustomer and Raised the event in the selected index change of the textbox control but am a little unsure as to where to go futher! Should i handle the event in the form class or the datagrid user c ...Show All
Windows Forms double click for button
hi, i would to make my button to listen to double click event with the following code, but it seems does not work...or m i using a wrong method can anyone help me Private Sub Button1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.DoubleClick MessageBox.show("It is a double click") End Sub thank you i only using the double click event...there is nothing respond when i double click on the button, it there anything go wrong or there is no such double click event for button but why there is DoubleClick event allow to chose ...Show All
Visual Studio 2008 (Pre-release) How to develop an icq-like applicaton use WCF?
use which binding which channel Hi Leo, WCF includes a feature called "PeerChannel" for writing just these sorts of peer-to-peer applications. We have a great sample that shows how to write a chat application using PeerChannel: http://windowssdk.msdn.microsoft.com/library/en-us/WCF_samples/html/813dc74f-bfcf-43a8-96ce-4d72c083e5f3.asp . For an example of an application that mixes multicast and direct connections for file sharing, check out Omri Gazitt's "Indster" sample: http://www.gazitt.com/Blog/PermaLink,guid,18f80934-df34-445e-944f-495fac1a4c49.aspx . Cheers, JJustice [MSFT] ...Show All
Windows Forms Check box data binding, AddNew doesn't work
I am having problems with binding to a check box. It works fine until I attempt to add a new record to the dataset through the binding context object. The code that adds the new record to the dataset is listed below Me.BindingContext(dsDataSet, TableName).EndCurrentEdit() Me.BindingContext(dsDataSet, TableName).AddNew() The add new statement generates an error and a new record is not sh ...Show All
Visual C++ Problem inserting BMP file into CRichEditView, please help
Hello everyone, my name is Jeff Sholl, and I'm new here. I am a Psychology graduate student at the University of Miami in Oxford Ohio and I have problem with a program I am writing for school. I have a B.S. in computer science, so I know a little of what I'm talking about when it comes to code, although not as much as I would like at the given moment. Hence why I am here seeking help. ** First let me say that I don't know all of what I am talking about, I think the only reason I got this to semi work in the first place was out of sheer luck, so if any of my comments sound way off to some of you more experienced coders out ...Show All
Visual C++ a multithread bug
I have a MS C/C++ compiler version 12 for 80X86 on a PC running Windows 2000. If I include a standard output statement which contains different data type values in the ThreadProc function, the threads created by the main program sometimes do not terminate gracefully. e.g. #define MAX_THREADS 4 LPCRITICAL_SECTION cOBJ; typedef struct _MyData { int val1; int val2; } MYDATA, *PMYDATA DWORD WINAPI ThreadProc( LPVOID lpParam ) { HANDLE hStdout; PMYDATA pData; TCHAR msgBuf[BUF_SIZE]; size_t cchStringSize; DWORD dwChars; ch ...Show All
Visual Basic Random Numbers
I'm realy green when it comes to programming but I like to think I am learning quickly. However, I cant figure out how to generate a number of random numbers baised on the vailu of a numeric slider. So for example I am generating a number between 1-12 where each point of value for the slider would generate an indiigual number that can all be added to a final total. I would also like to be able to back the slider down to a previous number and have the same total I had last time I was at position x. This is what i have so far: If levelHP = 1 Then hpcalcbarb = ConBonus + 12 LblHpTotal.Text = hpcalcbarb Else ...Show All
Game Technologies: DirectX, XNA, XACT, etc. storing of directx sample
How does directx stores it's samples I have a 22KHz WAV file , with 8 bit's per sample . I load the wav into a buffer. I want to create a pointer to go over a locked portion of the buffer , sample by sample . What cast should the pointer be is it double byte or what A general theme in DirectX is that it will give you a pointer to the raw block of binary data - it doesn't tend to format it nicely so that your language/program can easily walk through it. As such, if you've got 8 bits per sample, you'll want a pointer to an 8bit quantity. You don't mention your language/IDE, but if you're us ...Show All
Visual J# Creating a Dataset - by dragging table from MYSQL database
With Oracle database, I used to be able to create a dataset by making a database connection in the server explorer and dropping the table onto the dataset designer view. Can you advise if the same would work for MySql database and how. I get the foll error : Mouse drag opertaion failed. The table, view or table-valued function named ''parts'..'PO_mast'' could not be found. Foll. is the error if I try to add a Table Adapter using the wizard, when I hit Finish. An unexpected error has occured. Error Message: Object reference not set to an instance of an object. thanks.. Hi, I was trying it for J# only. I tri ...Show All
Smart Device Development developing for mobile devices using express products
how can we develop for mobile devices like pocketpc and palm os using free express IDEs. what are the sdks to download and how to emulate a mobile device supporting .net framework CF 2 without VS 2005. please answer.... You can not. You need 2005 Standard or above to do that. Or, you can use free SDK which already includes NETCF SDK (command line only). Also, you can't develop for Palm OS using Microsoft products (not without some 3rd party add-ons anyway). You can develop for Windows Mobile based devices from Palm, though. ...Show All
Visual C# A common application for recursion
Hi, A common application for recursion is the problem of generating all possible permutations of a set of symbols. For the se consisting of symbols A,B and C there exists six permutations - namely, ABC, ACB, BAC, BCA, CBA and CAB. The set of permutations of N symbols is generated by taking each symbol in turn and prefixing it to all the permutations which result from the remaining N-1 symbols. It is therefore, possible to specify the permutations of a set of symbols in terms of permutations of a small set of symbols. How to write a recursive function program for generating all possible permutations of a set of symbols using C#. Thi ...Show All
Visual Basic Copy file(s) to CD using new My Namespace
I recently downloaded/installed VB Express version and really like it, however I was trying to do something which I thought would be very simple but have ran into a problem and cannot determine whether it is me or the product. I'm using the My namespace to have the user select a directory off of the maching using the FolderBrowserDialog and then using My.Computer.FileSystem.CopyFile to copy the files to the CD Drive. I get the following exception error: 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll I've searched the internet and Microsoft site and can find nothing regarding using the FileSystem to copy files to ...Show All
Visual C# Code generation from DLLs
Hi I have accidentally deleted some sources in my project and want to know if there is a way by which I can extract my code from the dll Shantanu Yes, you can use Reflector . It's a good tool that allows you to recover your code, change it into a different language, peep into the framework (quite instructive!) and in other people's code (except you should not). It will also show you why it is a *must* to seriously obfuscate your code before releasing it (but before you do, have your sources backed up at least twice ;) ). HTH --mc ...Show All
