IceAngel89's Q&A profile
Windows Forms How to implement copy/paste/cut/undo/redo commands in C#?
Could someone please tell me how to implement the copy/paste/cut commands for the Edit menu items in C# 2005 I can implement those commandsfor each textbox individually, but my application has about 100 textboxes. It will be very tedious to do the same thing for each of them. I guess there must be some way to implement those commands for the whole application. Thanks! ComboBox doesn't have copy(), cut(), paste(),undo() method, we can achieve these by making our own comboBox, I've made one: public class myComboBox : ComboBox { private string oldText; public myComboBox() { oldText = this .Text ; } ...Show All
Visual C++ How to implement c function strtok?
Hello all: Does anyone know where I can find the source code for implementing strtok Thank you -Daniel The C-Runtime source code is available with versions of visual studio. You can see the strtok source at STRTOK.C in the SRC folder of your installation directory. MSDN has the sample on using strtok please refer it. ...Show All
Windows Forms Still dizzing about validating DataGridView Control...
After create a DataGridView control that bound to a table, I still don't know how to validating the input to the DataGridView. My Datagrid : ID_no Date Name Age Debet Credit A001 08/06/06 Eric 25 30 A002 09/06/06 Daniel 23 55 A003 15/08/06 Catthy 26 35 I create the DataGridView with draging the data source, after I add connection, dataset, bindingsource and bindingnavigator with the wizard....But now when I input a invalid data, example a invalid date, or input alphabet in column Age, I want my messagebox appear to tell the user that it's a invalid data, rather than the error that displayed by system. Also....when the ...Show All
Visual Studio Team System CTP import SQL 2005 schema errors
First, great job getting CTP5 out early ! Second, as promised, I'm reporting back the errors I received (if any) when importing my four new SQL 2005 databases into CTP5 (see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=638221&SiteID=1 for original post). Total of 37 errors (much better than the 230 :): 2 errors on first database: 2 - Incorrect syntax near CONNECT. (this is on a user script for both users in the db, the script contains a create user followed by a grant connect to) 1 error on second database: 1 - Incorrect syntax near CONNECT. (this is on a user script for the only user in the db for the only user in the db, the script contains a create user followed by a grant connect to) 6 errors on third data ...Show All
Visual Studio Express Editions My.Computer.FileSystem.CopyDirectory
I am trying to get My.Computer.FileSystem.CopyDirectory to work to copy files in a directory but the MY. does not seem to come up on my coding. Is there an equivalent in C# Am I missing a reference or something like using System; Thanks for any help Thanks Brendan. Your link downloads a demo... but those projects do not open for me. Is there a dll I need to download Is this a free or paid equivalent ...Show All
Smart Device Development Problem to install CF 1.0 automatically.
Hi everybody, I need to get some help with CF 1.0 automatic installation on device. I have bat file with the script: ECHO Installing COMPACT FRAMEWORK... \Windows\wceload /noaskdest /delete 0 /noui \TEMP\netcf.all.wce4.ARMV4.cab When we cold boot device, installation begin,but it is asking for overwriting framework dll files (Yes, Yes to all and so on). I need to install framework without any questions. Is there some way to do that Thanks for help, Iouri. None I'm aware off – WCELOAD produces these messages and it seems they can not be suppressed. You might try /silent switch but it probably won't work. Possible solution would be to write an application (native) to detect the ...Show All
SQL Server Aggregation Processing Use of All Processors Issue
In 2000 when MSAS wanted to create aggs it did a great job without me doing anything of using all available processors pretty darn near or at 100%. In SSAS 2005 I have an 8-processor box (4 dual cores actually) and its only using 1 of the 8. Anyone know how to unlock that Some property perhaps Based on 8 processors I used 8 partitions and it did better, but not much. Then I tried 16 partitions (many programs use 4X threads per processor to maximize parellelization, but if something is well written 1x should be sufficient) and I think it helped - utilization is up to 30 or 40 percent during the cube process part, but the aggregation part is still pretty low - 20-30% overall. How many procs do you have ...Show All
Smart Device Development problem with linker...
Hi, dear all, I was trying to upgrade my eVC project to Visual Studio Project, everything is working fine and perfect in eVC environment, but when I was trying to compile it in Visual Studio, then I have this kind of messages: Linking... voc_timer.obj : error LNK2019: unresolved external symbol cvx_log_getLevel referenced in function cvx_vocExpiryCB voc_timer.obj : error LNK2001: unresolved external symbol gTxBuffer voc_timer.obj : error LNK2001: unresolved external symbol voiceDataFile voc_timer.obj : error LNK2019: unresolved external symbol rewind referenced in function cvx_vocExpiryCB voc_timer.obj : error LNK2001: unresolved external symbol fd voc_timer.obj : error LNK2001: unresolved external symbol gTx modemifc.obj : error LNK2019: ...Show All
Visual C# Publish C# project and encounter errors!!
Hi all, I try to publish a project I have created in Visual C# and I encounter a error that said : Error 2 The type or namespace name 'General' could not be found (are you missing a using directive or an assembly reference ) C:\Documents and Settings\Administrator\Desktop\C#\GeneralSetup.cs 24 9 I have a .dll that I already include in the project via adding reference. It compile fine. Where do I have to put the .dll to let Visual C# Studio recognize my project and let me publish it. Thanks in advance! Jason Hi, I've also encountered errors when trying to publish my C# program. Since you have this figured out could you pls explain in more details as what .dll files need to be included in /bin/debug folder i've tried ...Show All
Visual Studio Express Editions A Mute comand ???
hi its a simple lil thing all i need is when a picture or button is clicked an double clicked the volume of the computer is muted Simple as :) i've searched and cant figure this out not using windows media player or anything just the computers Master volume to = 0 :) Private Sub MuteButton1_Click ( ByVal sender As System .Object, ByVal e As System . EventArgs ) Handles Button1 . Click My . Computer . Keyboard . SendKeys ( Keys . VolumeMute ) End Sub ...Show All
Commerce Server Problems with extending the Payment class
Hey All, I've been trying to extend the Payment class to enable the usage of PayPal as an option. It looked like it would work perfectly but I've come up with a problem that I'm not too sure how to handle. Long story short, Commerce Server isn't able to find my new dll eventhough i've added it to the GAC. This is an entry from the web.config file in OrdersWebSvc. < Type Key = " PayPalPayment " UserTypeName = " PayPalPayment " AssemblyType = " GAC " NameSpace = " Monkey.CommerceServer.Runtime.Orders " Assembly = " PayPalPayment, Version=1.0.0.0 Culture=neutral, PublicKeyToken=8c13374fb97296fa " /> I can't seem to understand what the error is telling me, so I'm hopi ...Show All
Visual C# Empty an Array
Hello, I have an array that gets modified everytime a button is pressed. What I need is to empty out the array at the beginning of the button pressed event. arrayList[ ] arrayList1 = new arrayList[cntMax]; //this is how it is defined outside of the buttonpressed fuction arrayList1[ ] = null; //this is the code i have inside the beginning of the button pressed function arrayIndex = 0; I get an error with the second statement. why don't you just create a new instance of the array arrayList1 = new arrayList1[ length ]; also I could be confused but are you using the standard .NET ArrayList() collection or is this your own arrayList[] collection ...Show All
Visual Studio Team System How to delete unwanted Work Items and set new default items for new projects?
I created new Team Project and Wizard created a whole bunch of new Work Items which I don't need. I couldn' find a way to delete them from Team Explorer. Also - can I set a my own list of Tasks and Items for newly created Team Projects and how I can do it You can customize the process template to not create those workitems. See here http://msdn2.microsoft.com/en-us/library/ms194945.aspx for how to customize new & existing projects. Here is a tool to graphically manage templates http://www.gotdotnet.com/workspaces/workspace.aspx id=812a68af-5e74-48c6-9623-1a4469142a84 . Work Items in already created project cannot be deleted, but the project itself can be deleted and recreated. ...Show All
SQL Server SSRS 2005 Exporting a report to .xls containing a subreport
Does SSRS 2005 have the issue fixed as to when the user exports a report to .xls format and the report contains a subreport In SSRS 2000, if there was a subreport in the main report, and the user exported the report to .xls, then it would just display an error message. Thanks! It depends on what you mean by "work". There is no error produced. I can export a report that contains a "drill down" subreport to excel. However it wouldn't even make sense to export the "drill down" subreport also -- unless you click the drill down link and then export it directly. ...Show All
Visual Basic Tableadapter.update with auto-increment on SQL column problem
Hello, I'm using databound textboxes to display data from a database on VB.net 2005. I have an "add new" button, which does this: BindingSource.AddNew() - and then once the user has entered the details, they click a button that updates the database: Try Me.ChildrenBindingSource.EndEdit() Me.ChildrenTableAdapter.Update(Me.Main_databaseDataSet.Children) Catch ex As Exception MsgBox("Update failed") End Try I have a primary key field on the database (I'm using MS SQL express) called "ID". I've tested all the above with the user entering their own ID, and all works fine, but I want this to be auto-incremented instead. So, I set my MS SQL "ID" column up with these pr ...Show All
