DPMevents's Q&A profile
Smart Device Development updating a datagrid
I am using bound text boxes to update datagrid rows. When I try to update the SQL mobile database with Me.TableAdapter.Update(Me.DataSet.table) I get an error that states "Unexpected Error" and "Upadate requires a valid updatecommand when passed datarow collection with modified rows." Is there another statement that is needed Thank you. For clarification, if a row is added, the data base updates with out a problem. If I alter an existing row, then I am not able to save it. I believe designers would add CommandBuilder automatically unless you don't have a primary key. In that case update/insert commands can not be automatically generated. Primary key is a must have in any database, so please add it, ...Show All
Windows Forms I can't get Timer to work...
I am using a timer in a form to make progress in a progressbar. I want the progressbar to complete in 10 seconds so I sett Maximum to 10000 and Minimum to 0. I init Value to 0 allso. private : System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { this ->smoothProgressBarControl1->Value = 0; this ->myTimer->Interval = 1; this ->myTimer->Enabled = true ; } private : System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) { if ( this ->smoothProgressBarControl1->Value < 10000) { this ->smoothProgressBarControl1->Value++; } else { this ->myTimer->Enabled = false ; } } Now there is 1000 miliseconds on 1 second so there should be 1 ...Show All
Visual Studio 2008 (Pre-release) How can i hide the IME bar ?
A media player in full-screen mode will no show IME bar, how can i do this ...Show All
Visual Basic Two More Questions (VB, VS 05)
Firstly these two questions should be the last for a while. Q1 : I have a NotifyIcon, with Context Menu but I would like to have my application Close or Minimize to the Notification Area so that a sub-feature can do its thing. I have looked on the MSDN and elsewhere online but cant find actual examples of this is it possible Q2 : As for the sub-feature, its a timer activated process stop (every 10 minutes it stops a process that comes back on its own withing that time period) I have the timer code, and it works, but I would like to have it so that the user has to check a checkbox to start the countdown for the autoclose. No rush on this as I have to further test the rest of the project. Many Thanks Danie ...Show All
Software Development for Windows Vista Windows SDK installer crashes on XP SP2 with Visual Studio 2005
Just trying to install this and all it gets is a Dr. Watson which sends something off to Microsoft :( Installed the image and ran from that and it worked fine - I guess the server is a bit stretched and the app doesn't like the network latency ...Show All
Windows Forms this.Close not working but this.Hide is working
Dear All, First I have a login page upon verification of the user name and password I will take me to my main form. Currently this how my code works upon verification UserName.Text = "" ; Password.Text = "" ; this .Hide(); Form formMain = new Form (); formMain = new fMain (); formMain.Show(); Then I notice that I should not be using this.Hide cause it uses up my memory and my program is always appearing in my task list of my computer. So I decided to replace this.Hide() with this.Close(). Once I replace my formMain.Show() doesnt show up can some one help me pls. Thanks. Believe it or not... close is actually working, just not how you are expe ...Show All
Windows Forms validate password
I have a password field in my login page (ASP.NET 1.1), how can I validate password based on at least 6 characters, one number, and one capital letter. Jim, If either post answered you question, could you please mark it as 'answer' It marks the thread as answered and helps other people to find answers more easily Thanks, ...Show All
Windows Forms Changing size property
How do I enable the changing of size of a control like combobox Thanks. regards Alu As for the second question, try the propert CurrentCellAddress which returns a Point object with X equal to the column index (0-indexed) and Y equal to the row index. It worked fine for me when i needed it. However, non of them will work if you are using it in the MouseDown event because, at this point, the cell is not selected yet.It becomes selected after the mouse is up (after the Click event). In the MouseDown event handlers, the current cell will still be the one that was selected before the one you are putting the mouse down on the new cell. To find out what cell the mouse is pointed at when the MouseDown event fires, you'll have to use an ...Show All
Visual Studio Team System Support for MSSQL 2000?
I guess this has been answered a few times. The product pages don' t seem to say much! But is MSSQL 2000 supported with this Well, a short answer is yessss. But you could have a look at the readme point " 2.2.1. Supported versions of SQL Server" Heres the link... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=650325&SiteID=1 cheers, Stefan ...Show All
Visual Basic Logging ?
I'm doing a net 2.0 windows application and I'm wondering if the net framework has classes for logging errors into text files. Also some tutorials on how to use them would be nice, thanks in advance. it doesn't really. you could use an eventlog class(es) to log your errors in the catch block or you could append to a StringBuilder your errors then at the end place it in a file. something you maybe interested in ...Show All
SQL Server custom SSIS with ATL dll
Hi All,Is it possible to create SSIS custom component with ATL COM dll with MFC support I'm not familar with C# & VB# languages :-(Regards,Svilen Varbanov Thanks! It seems C++ is obsolete prorgamming language.... :-( Now I have find out a way to convert DTS package written in C++ 6.0 into managed dll written in C#... I can't believe... Regards, Svilen Varbanov ...Show All
Windows Forms How to avoid that a component can be dragged or moved
Hello to all, I have a big trouble in my designer host application. I need that a component (in this case an object that represent a Magnetic Tape object) not allows be moved or dragged into the deseigner host because a magnetic tape allways is present in an specific position. Someone knows how to do to avoid to move a component . Thank you joeycalisay wrote: You can also associate a ControlDesigner and override SelectionRules property Yes! this solution avoid that the component of an specific type can't be moved or resized. Here is the implemented code in my ControlDesigner base class: public override SelectionRules SelectionRules { get ...Show All
Visual C# Convert Decimal to String???
this .txtCommission.Text = ( decimal )_SalesPersonToEdit["Default Commission"]; How do i convert this string to a Decimal, I have tried using ToString() but that does not work and I also tried to use Convert.ToDecimal(string) = object....and that didnt work eithier any help on this situation! thanks! well everything there you are putting it into a textbox therefore everything needs to be done into a string which you pretty much have done. I don't see anywhere where you are needing to convert a value to a decimal. Anything that needs to be placed into a string type needs that object to be converted to string using the .ToString() at the end: this.txtCommission.Text = _SalesPersonToEdit["Default Commission& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. error directX plugin
Hi! I'm programming a game and I have a problem when I try to install the exporter plugin in Maya 7. I follow the instructions to install the plugin correctly and in Maya when I go to plugin manager I check D3DExport.mll and then a messagebox appears and says: error x3539: ps_1_x is not supported in this version of the compiler memory(125,23): ID·DXEffectCompiler::CompileEffect: there was an error compiling expression ID3DXEffectCompiler: Compilation failed And in directxViewer I have the same message when I try to load a 3d object Please help thanks a lot Are you using the correct version of the plugin Take a look at this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=92270 ...Show All
SQL Server RS2005: ReportManager and Forms Authentication : The report server is not responding
Hi, Sorry for the long post but I'll try to give a maximum of information. I've tried to implement Form Authentication for Reporting Services. Right now, just about everything works as I would hope for, i.e.: When I try to access http://<server>/ReportServer$SQLSERVER_2005 , I am redirected to the authentication form. When successfully authenticated, I can access the report I can display reports throught the ReportViewer Web control by passing the authentication cookie. Etc. (Note: My implementation of Form Authentication was inspired by http://www.devx.com/dotnet/Article/26759/0/page/1 which seems similar to Microsoft Sample) (The $SQLSERVER_2005 suffix is because SQL Server 2000 is also installed on the s ...Show All
