ti_m's Q&A profile
Windows Forms Datagridview unbound computed on bound...which event to use?
Okay, I've spent the day trying to get this right, and not quite there yet. So much for rapid application development. Please advise My datagridview control has bound columns and unbound columns. I want the unbound columns values set based on a computation against the bound columns. Say my boundcolumn value is a date Sep 20 2006, so I want my unboundcolumn value to be assigned "Wednesday". I can do that fine in various events, but not immediately after the initial databinding...my unboundcolumns are remaining blank until my user starts selecting cells because I haven't solved which event when the datagridview is first loaded to use to calculate the unboundcolumns. Any ideas I've tried after the rowsadded and databindco ...Show All
Community Chat Zune and the iPod
I've been following the Zune announcements fairly closely here at work. If you follow my blog, you'll see that I'm pretty passionate about media technologies, and recently went through the pain of migrating away from iPod/iTunes and onto Yahoo Music/Gigabeat S (Portable Media Center). Here the blog category where I talk about it: http://blogs.msdn.com/joemorel/archive/category/13772.aspx Now Zune is in the mix. It looks pretty neat, but I'm not sure if people are really going to go for the whole WiFi thing. I'm just not sure that I want to listen to the same music as the person sitting next to me on the bus. What do you think Alan4s wrote: I've read that Bluetooth A2DP used for stereo music playback sacrifices aud ...Show All
Visual Studio Express Editions read and write text files
my question is I hope not too dumb, but in the old days we used to do this: filename = app.path "&\textfile.txt" open filename for append as #1 write #1, string1, string2 close #1 also we used to do this: dim textstring as string open filename for input as # 1 do while not eof(1) line input #1 , textstring 'do what ever with textstring loop close#1 can anyone please tell me how to do this reletively easy process in vb.net 2005 enterprise editon, cos Iam blown if i can find it anywhere!! ps i dont need to know how to declare a string variable or initialise it thankx boys and girls paulanthonysamson@hotmail.com Thankx for that my.friend.incyberspace ...Show All
Smart Device Development How to set menu bar's font size?
How to set menu bar's font size Thx. ...Show All
SQL Server using IF...Else Statement SELECT Statement
Hi All, Can some one point me in the right direction in how to construct my SQL query within my cursor I Have got a cursor which i am using to iterate through a table, What i am trying to do is in my statement(used to open the cursor) is compare 2 tables (the one which my cursor is iterating) to see if there is a matching row in the other table (using both tables ID's Like So: SELECT column_List FROM Table1 WHERE Table1_id = Table2_id so for each row my cursor checks if there is a corresponding match in table2... but i would like to write to an error log and do other statements if there is no match how do i add this condition to ...Show All
Architecture Full multi-tier ASP.NET code generation solution?
Any recommendations ...for a full multi-tier ASP.NET code generation solution/tool/tool set Thank you, Michael. We're using CodeSmith together with the .netTiers templates at the moment. The templates themselves aren't too difficult to tweak, so your not stuck with the defaults (although there are enough options to choice from initially). I'm also looking at http://subsonicproject.com/ , which is getting some attention lately... ...Show All
Visual C# Debugging a dll in VS 2005
I have a smart device project in C# which uses one of our made dll .Let say My.dll This dll is also made by us but in some other VC solution. Now when I called a method fromC# function to this function I want's to debug this dll. Project is working perfectly Fine.But I don't know how to debug this dll. Could Any body help In order to debug the second DLL file, you have to compile that project in Debug flavour so that the corresponding Program Database (PDB) file is created. Before debugging the first project, place the .pdb file where the actual DLL is located. When you start debugging in Visual Studio, open the Debug menu and select Windows->Modules. In the Modules pane, make sure that the DLL in question has ...Show All
SQL Server Creating offline (local) cubes using XMLA, or any other way..
Hi, I realise this subject has been discussed a lot but there seems to be no definitive answer. The company I work for creates many cubes (currently using many SQL statements) for the sales regions at the end of each month and we need to move to a better platform, hence analysis services projects. Is there any "easy" way to take a cube created by an analysis services project and save it to an offline (local) cube Currently I am trying to use VB.NET 2005 to process the XMLA definition from AS2005, which is easy to get at. The VB code is: Dim myClient As New Microsoft.AnalysisServices.Xmla.XmlaClient Dim l_result, l_XmlaCommand As String l_result = "" Try ...Show All
.NET Development ObjectDataSource Bidirectional ControlParameter - is it possible?
Hi. I have a question. On my page there are TextBox, GridView, ObjectDataSource and a button: <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Method1" TypeName="Class1"> <SelectParameters> <asp:ControlParameter ControlID="TextBox1" ConvertEmptyStringToNull="False" DefaultValue="0" Direction="InputOutput" Name="param1" PropertyName="Text" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource> Where Class1.Method1(ref param1) - is my business object. When app launched, the value from TextBox1 is passed into the parameter using ObjectDataSource1. Method1(ref param1) returns data for GridView1 and nmodifies param1. GridView1 shows the data, But, TextBox1 doesn't get the va ...Show All
Visual Studio Team System Error when running tests: Column 'TestType' does not belong to table test.
I and everyone on my TFS team is getting the following error message box when trying to run unit tests: --------------------------- Microsoft Visual Studio --------------------------- Column 'TestType' does not belong to table test. --------------------------- OK --------------------------- I checked the TFS databases, and I couldn't locate any table named test, so I'm not really sure where else to look. Has anyone seen this before We've been able to run tests before and this just started happening today. We are using the RTM version of Visual Studio Team System with TFS Beta 3 Refresh. We've never seen this issue before. This should indicate some miconfiguration like replaced assembly, etc. In order to ...Show All
Internet Explorer Development Auto filling HTML Page using C#
Hi, I am developing an IE plugin which will auomatically provide username and password to web pages on click of a button. I was trying to develop a dummy button to test the approach and am trying to use HTMLInputElementClass. The code compiles well but gives a run time exception in the browser. the code goes like : private void bttnEnterUserName_Click( object sender, EventArgs e) { HTMLDocumentClass doc = new HTMLDocumentClass (); doc = ( HTMLDocumentClass ) this .Explorer.Document; HTMLInputElementClass ele = new HTMLInputElementClass (); if (doc.url.ToString() == "https://www.google.com/accounts/ServiceLogin service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.c ...Show All
Visual Studio Express Editions Automatic end brackets
I am using Visual C# Express. Is it possible to have it automatically put an end bracket in when I enter a beginning bracket for instance, when I enter: for(int t = 0; t < something; t++) { Then when I press enter, it automatically puts the end bracket in, and puts my cursor between them. I have looked through all of the options, and haven't found a feature like this. It would be very helpful. SharpDevelop does this automatically, and other than that one thing, I like Visual C# Express much better. If anyone has any ideas, I would appreciate it. Have a look at this post. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=753176&SiteID=1 Scott ...Show All
Visual C++ window pointer for a new window
Hi, I have created a new window using the following method AfxGetMainWnd()->PostMessage(WM_COMMAND, ID_FILE_NEW); How can I get a pointer to this new window What is the difference between a window handle and a window pointer Pritha If the ID_FILE_NEW command succeeded, a new view object will be created and activated. In order to obtain it, I think you can try the GetMainWnd()->GetActiveView() function. (See the documentation of CActiveView about how to do this differently in case of MDI applications). Note that the new window is created after fully processing of ID_FILE_NEW command. Therefore you probably should try SendMessage instead of PostMessage . Otherwise GetActiveView will be called ...Show All
.NET Development SqlCommand.ExecuteXmlReader and System.Reflection.TarggetInvokationException
Simple code. Exception raised, when sql query returns empty query result. code using (SqlConnection _connection = new SqlConnection(_conStr)) { sCom.Connection = _connection; _connection.Open(); xRdr = sCom.ExecuteXmlReader() // here exception } raises System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.at System.Data.SqlClient.SqlDataReader.GetBytesInternal(Int32 i, Int64 dataIndex, Byte[] buffer, Int32 bufferIndex, Int32 length) at System.Data.SqlClient.SqlStream.ReadBytes(Byte[] buffer, Int32 offset, Int32 count) at System.Data.SqlClient.SqlS ...Show All
Visual Studio Team System Planning
We are developing an application like Yahoo Messenger and using MSF documentation templates. Now I want to ask from you that which thing we will include in the following sections. 1) Development Plans 2) Test Plans 3) Communication Plans 4) Availability Plans 5) Security Plans Imran Ahmad Mughal Thanks have you solved any document using MSF If yes then kindly forward us because it will provide us some concrete concepts. Thanks ...Show All
