hokial's Q&A profile
Visual C# common functions
Hi friends am new to C# but not to programming ofcourse. i was writing a small program where adding some text to a text box.it took 1/2 hr to find out how to add a new line in the textbox . my question is what is best way find out common functions in C sharp (like string functions ,math functions etc., Thanks Hi, Some more useful links: For Fundamentals/Basics see this link: http://msdn.microsoft.com/vcsharp/programming/fundamentals/default.aspx For a good listing of books: http://msdn.microsoft.com/vcsharp/programming/books/default.aspx For Videos on C#: http://msdn.microsoft.com/vcsharp/programming/videos/default.aspx Regards, Vikr ...Show All
Visual Basic MaskedEdit: setting the starting point for entering new text at first position
I have a MaskedEdit control in a form. When I click the control in the middle, my cursor is in the middle of the control. but I want it to be at the begining of my control even if I click in the middle of my maskedEdit text box. What poroperty should I use. I tried: MskEditControl.SelStart=0 but it still goes to the middle of the box if by accident, I click in the middle. It only goes to start of my control if I click at the begining. Thanks 'You can do this, but remember, every time you click 'even if your already in it, it will take you to the 'start of the text box. Private Sub MaskedTextBox1_Click( ...Show All
SQL Server Freetext search not working after SQL 2005 upgrade
*** See next post as I have found it is nothing to do with freetext search I just assumed it was this *** Hi I have upgraded our test system to SQL 2005 from 2000 and restored a production database. I have rebuilt the freetext index and it would seem that if you query this from an .ASP page using OLEDB it does not return any results even though there are some. If you then run the same query in Management studio you do get the expected results. The code worked perfectly under SQL 2000. Also all other queries that run from the .ASP page work correctly that do not involve a freetext seach. I have made sure the client is using the lastest MDAC p ...Show All
Visual Studio Dropdown Combo + Select Multiple Values
Hi All, I have a report I've designed in Visual Studio (Business Intelligence Module) where I have a drop down that I have a couple of values in, but I want to be able to select various combinations of those values, but can only select one at a time. What I'm trying to achieve is a list with a tickbox next to each value, similar to how Excel's Pivot Tables work. I know this is coming out in SSRS 2005, but does anyone know if there is anything I can do now to get around this Cheers Steve This is supported in SQL Server 2005 Report Server, as you mention, but not in earlier versions. ...Show All
Visual C# Bug in C# compiler with generics ? (BadImageFormatException)
I m' having a problem with a quite simple program using generics inheritance. Running the program throws a BadImageFormatException (Exception from HRESULT: 0x8007000B). The program defines a generic entity, factory, and entity reference (an ID and a pointer to an entity). A "factory factory" is used to create the factories. A User factory and a User entities are defined. This is the program : /// <summary> /// Generic class defining an entity /// </summary> /// <typeparam name="E">The entity type</typeparam> /// <typeparam name="F">The factory type used to create entities ...Show All
Visual Studio Overwriting an Item?
Hello, I've written 2 custom tasks, one reading a file into a single string and one manipulating this string (replacing things). The file which is to be read is a sql-script-file and all "Go"'s will be removed. <ReadFile Filename="C:\test.sql"> <Output TaskParameter="Content" ItemName="FileContent" /> </ReadFile> <RegexReplace Text="@(FileContent)" RegEx="\bGO\b" Replacement=" " SingleLine="true" IgnoreCase="true"> <Output TaskParameter="Result" ItemName="FileContent" ...Show All
Windows Forms Can DataGridViewComboBoxCell be able to edit by user (like a normal Combobox)?
Can DataGridViewComboBoxCell be able to edit by user, like a normal ComboBox If can't, how to customize a cell/column to get this feature Thanks a lot! hi all, http://www.windowsforms.net/Samples/Go%20To%20Market/DataGridView/DataGridView%20FAQ.doc this link was very usefull, i have a combo box, its a databound now i want the combo box to be editable, and i have to check whether the new entry is not available in the databound, if not available should store into the database, how to validate this requirements, helps please. Regards, Prasenna. K ...Show All
Visual Studio Will VS 2005 coexist with VS 2003?
I am about to rebuild my computer so that I have a fresh machine for Visual Studio 2005 (I had the RC installed until now). Once I install everything (including VS 2003) will Visual Studio 2005 install fine and will both Visual Studios work as expected The problem is solved already. After installing .Net framework 2.0, there is one more tab named "ASP.NET" in the IIS Web Site Properties dialog. Change the ASP.NET setting to 2.0.XXXX. It will be OK. It works on both IIS 5.X and 6.0. ...Show All
Visual Studio Team System EndToEndIteration target
I've been browsing the Microsoft.TeamFoundation.Build.targets file and I followed the EndToEndInteration target as this is the one that gets run when Team Build does it's thing. I have a question on the CoreGet target. This seems to get the latest source code for a workspace and then label the files with the BuildNumber. It's the labeling that I'm wondering about... Does the label command take a look at each file in the workspace (i.e. the one on the local drive) and apply the new label on that version in SCC, or does it simple go through the latest versions in the specified branch on the server and apply the label What I was concerned abou ...Show All
Visual Studio Team System Whats the latest and greatest version of Team Foundation Server?
Hey all, I just want to know what is the latest and greatest version of Team Foundation Server that was released to date. I only have option to download the Trial Edition from my MSDN subscription; is it as same as RTM And how can I get the real version instead of trial version Thanks for your help. Sunny The latest and greatest is the RTM, but that is exactly where its at right now, released to manufacture. The Trial and Workgroup are available through download and I think that the full version is having all of the manufacturing stuff going on and should be available in the next couple of weeks (at least this is what the ...Show All
Visual J# Publishing a project
I am trying to publish my project, but when I run the installer it dies because the the project has been improperly formatted. I have been unable to find any references to formatting during publishing, or even system requirements for the published version. If you have an easy solution or if you can point me in the direction of reference material for this that would be great. Thanks. Hi, Yes, Visual Studio Team System is not freely available. Again, what I understand from deployment is that you want to create a .msi for you J# projects. That is not supported in Express SKUs. Thanks. ...Show All
Visual Studio 2008 (Pre-release) What the method EntitySet.RemoveAt is for?
When I remove an entity with this method, the entity is removed from the collection. But when I then call SubmitChanges, no commands are send to database. Vitali Lesheniuk wrote: > Removing an item from an entityset does not cause deletion. It merely breaks > the link between the two entities (foreign key is set to null.) I didn't write only about deletion. Broken link between two entities must also be saved. But now nothing happens. That sounds like something is not working right. Are you using SqlMetal generated objects or ones you wrote yourself &nb ...Show All
Visual C++ OnTimer() not being fired up.
hey guys, i have timer set like follows: UINT TimerVal; TimerVal = SetTimer(406, 50, NULL); and i added in header file: afx_msg void OnTimer(UINT nIDEvent); and in cpp file i have: void CEditorDlg::OnTimer(UINT nIDEvent) { char finalFps[100]; strcpy(finalFps, NConvert::IntToChar( _entityEngine->getFPS() )); m_lblFPS.SetWindowText( _T( finalFps ) ); CDialog::OnTimer(nIDEvent); } and : ON_WM_TIMER(). so when i put a break point int he ontimer function, it doesnt stop at it. therefore i understood that the timer wasnt started, but the TimerVal result i got had value 406, so i assumed that it already started. does anybody know why ...Show All
SQL Server Export Data to MS Access file
Hi guys, I use Data Flow Task to export data from SQL table to MS Access file. In Connection Manager for Data Flow Destination task I specify provider "Native OLEDB/MicrosoftJet 4.0" and path to Access file in Database file name box. In design time I have no validation error. Everything looks fine. However in run time mode I'm getting error: "Error: 0xC020801C <Datataset name> , MS Access File [1459]: The AcquireConnection method call to the connection manager <connection manager name> failed with error code 0xC0202009. Error: 0xC0047017 at <Datataset name>, DTS.Pipeline: component ...Show All
Visual Studio 2008 (Pre-release) Cider type initializer error
On one of our machines we are getting an error with Cider, after we create a new project, and try to click over to design mode, the following error prevents the design canvas from displaying: Error 1 The type initializer for 'AvalonAdapter' threw an exception. C:\Projects\cider2\cider2\Window1.xaml 1 1 ...Show All
