Jordi Rambla's Q&A profile
Visual C# Project Idea
Hello every one, I have just recently started coding away with C# and decided that this would be a suitable language to produce third year project for my degree course for various different reasons. I am still researching couple of ideas, was wondering if any of you bright people would kindly give me some ideas which will not only be a fun project to work on but something i can learn from. p.s. I have a good understanding of OOP Thanks in advance Well for my final project in college I wrote a distributed (No central server) chat/filesharing application that used a plugin architecture for extensibility, it was a lot of fun, it was a lot of work but it wasn't too bad. I built it in java but that is close enough to c# s ...Show All
Windows Forms c# Insert Text into Textbox
I have a series of textboxes on a Windows Form and a Series of buttons aswell. What I am trying to achieve sounds quite simple but I cannot figure out how to do it. Basically all Im trying to achieve is each button has some predefined text associated with it and when the user clicks the button, it inserts that text into the textbox which has the focus. The problem with this is that when you click on the button you lose the focus from the Textbox. The only way I have figured out is to save which control has focus before the button is clicked. This works but when you have 32 textboxes on a form, surely there is a better way than creating an On_Enter Method or similar to set the value of the Control which needs the text. Any help would be ...Show All
.NET Development Basic question
I have a very large list of objects in a list (over a million). I need to check the type of each of the objects and by the type of it do some actions. At the moment I compare to typeof(object).name == wantedType My question is , Would the vs be smart enough to cash this string or should I use hashtable in order to save the mapping If you have better implementation please share with me thanks Avi Hi Do you know the Generics: In VS2005 you can make Generic Classes & (Collection Classes as well). So If you Create a Main Generice Collection class which store Generic Classes (objects) then it will be easy for you (Abously for ur Processor) to Group the related items in the memory, ...Show All
SQL Server Is it Possible When the time of Implement SSIS Package show Windows and ASk SERVER NAME ,DB NaME ,PAsword
Hi, now i am currently using SSIS Package using BUI, The Source and Destination File we Given Manullay Connect the Server name ,And Table . Instead of given Manual . How to create Global Variable Connection Manager. Suppose Today i am Working Developement Server. Latter i will be changed Production Server Database. At That time we have to Going to Modify all the Connection .Instead of This How to Create the Connection Manager Gloabe Variable . and How to Use .Please Any one give Sample For Connection Manager variable for Different Server. Thanks & Regards, Jeyakumar.M chennai hi Praveen Thanks for your mail. can you please send the how to create xml type Configration file. after creating X ...Show All
Visual Studio Express Editions Embedded forms
How can I embed a form inside another Both these forms should be synced, ie: when parent is resized, child is exactly resized. When parent is dragged, child is dragged Thanks ! See my post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=557731&SiteID=1 The hidden form that has floating objects stays sync'ed with form2. ...Show All
.NET Development TransactionScope, ADO.NET, and Timeouts
Hi! I've been having trouble using the TransactionScope to wrap multiple database queries into a transaction. What happened was, that the queries took too long to finish and the transaction timed out. Of course, this is the expected behaviour. What I didn't expect, is that the data was committed to the database anyways. I built a small test-app to see what happens. At first, I thought it was because I opened the database connection before starting the transaction. That's why I built two methods, one opening the SqlConnection before creating a TransactionScope, and one the other way around. Both simply add some entries to the database and wait a little to cause the timeout. And in both cases, the result was identical. What I noticed was, th ...Show All
Visual Basic BindingNavigator Delete Cancel
I have a BindingNavigator and combobox tied to the same BindingSource. I want to allow the user to confirm a delete after hitting the delete button of the navigator. It appears that the row gets marked for deletion after my BindingNavigatorDeleteItem_Click event handler is processed. Is there no way to cancel the delete activity from within the delete click event If not, then it becomes necessary to store a delete flag and catch another event to RejectChanges. With Microsoft's BindingNavigator you can neither ask for any confirmation nor have control over save, delete or add operations. I use a ToolStrip with add, delete and save buttons on and the code is very simple: to Add: myBinding ...Show All
Windows Forms DatagridViewComboBoxCell value is not valid
Hello, When I try add a DataGridViewComboBoxColumn I get the error: DatagridViewComboBoxCell value is not valid Can I help me Tranks This is the code : Friend column_combo As DataGridViewComboBoxColumn = New DataGridViewComboBoxColumn() .... FbConnection.Open() dbDataAdapter = New FirebirdSql.Data.FirebirdClient.FbDataAdapter(SQL, FbConnection) dbDataAdapter.Fill(dbDataSet) Me.DGV_Recetas.DataSource = dbDataSet.Tables(0) ...... With column_combo .HeaderCell.Value = " " .HeaderCell.Style.Font = New Font("Bookman Old Style", 8, FontStyle.Bold) .HeaderCell.Style.BackColor = Color.DimGray .HeaderCell.Style.ForeColor = Color.White .HeaderCell.Style. ...Show All
Visual C++ Files paths withing VS 2005?
I guess I'm not smart enough to figure out how to get the file path of a file opened inside VS 2005. With VC6 you could get a file's properties and there view the path. I guess Microsoft determined that wasn't usefull so its not in VS 2005. So is it possible to get the path of a file opened in VS or is a yet another thing that makes me wish I could go back to VC6 When you've got a file selected, take a look at the Properties window (likely) in the lower right hand side of your window to see the file properties. If you do not see that Window, from the View menu select Properties Window and try again. ...Show All
Visual C++ Need ddraw.h in VS2005
I have been given an old codebase for upgrades and maintenance which in two places says: #include <ddraw.h> I understand that this is an old header that is no longer distributed. (If that's not true please let me know.) Can anyone point me to a download of the most recent version of DirectX that still contains DirectDraw Thank you, Richard ...Show All
.NET Development System.NullReferenceException: Using DataAdapter.Fill
I try to fill a dataset, with a dataadapter, I get the following error: {"Object reference not set to an instance of an object." } [System.NullReferenceException]: {"Object reference not set to an instance of an object." } System.Object: {System.NullReferenceException} _className: null _COMPlusExceptionCode: -532459699 _exceptionMethod: <undefined value> _exceptionMethodString: null _helpURL: null _HResult: -2147467261 _innerException: { } _message: "Object reference not set to an instance of an object." _remoteStackIndex: 0 _remoteStackTraceString: null _source: null _stackTrace: {System.Array} _stackTraceString: null _xcode: -1073741819 _xptrs: 1235480 HelpLink: null ...Show All
.NET Development schemaLocation woes...
Hi, I have a .NET class that is returned as XMl in a webservice. I need to specify the xsi:schemaLocation but I cant. Googling shows that I should create a property and declare the attribute as follows: [System.Xml.Serialization. XmlAttributeAttribute ( "schemaLocation" , Namespace = System.Xml.Schema. XmlSchema .InstanceNamespace)] public string schemaLocation = "<someSchemaLocationHere>" ; But this fails with this message: The target namespace of an attribute declaration, whether local or global, must not match http://www.w3.org/2001/XMLSchema-instance . What to do I have tried almost every constellation of attributes, schemas and what not. It either does not show or fails like the above. Fr ...Show All
SQL Server Long duration Pre-Execute phase
Does anyone know why SSIS sometimes just sits in the Pre-Execute phase of a data flow and does nothing It doesn't matter how elaborate the data flow is or the volume of data. It can sometimes take 80% of the task's run time. Ok, I have turned off caching in all of my lookups in that data flow task, and it still gets stuck in Pre-Execute phase. I am sure it's not executing data source queries since the debugger doesn't show them in yellow. When I said I wasn't seeing any caching progress I meant in the output window. I've turned off caching now so it shouldn't make a difference anyway. I noticed someone mentioned performance issues and that breaking the task into multiple tasks solved it. Could you ple ...Show All
Windows Forms .NET 2.0 WebBrowser does not handle javascript calls, navigates instead
Imagine a web page that includes the following <A> tag: <a id="ButtonOne" href=OnCheckout();"><img ... ></a> Any browser, including the application I'm working with that has a .NET 1.1 C# WebBrowser control embedded in it, will call the javascript OnCheckout() function when that link is clicked. I can expect that, because of the code in that function, I will shortly have a BeforeNavigate2 event fire where the URL is something like http://host.domain.com/page.aspx . Because that happens. Every time. So reliably that we sell it to customers. Now that the 2.0 Framework and VS2005 have come out (and for a few other reasons), we're writing a new version of this product that happens to use the .NET ...Show All
Gadgets Gadget post info to new web form
I've created a gadget which is a simple HTML form with 2 text boxes and a button. When you click the button it should open a new IE window and send the information to the target URL as a post. The problem is when installed as a sidebar, although the IE window is opening with the correct page, the information in the 2 textboxes does not seem to be transferred. I have tested the simple HTML form by opening it in IE and all functionlity works fine, but not when I install it as a sidebar. Is there something obvious that I am missing Any help would be appreciated. Thank you Hi Bruce, First off, I really appreciate you responding to my message. Thank you for the help. I'm not sure if I understan ...Show All
