Bobby Dreamer's Q&A profile
.NET Development XML : Child Nodes not traversed : DEBUG MODE WORKS WHEN OBJECT IS EXAMINED
I am using the following knowledge base article from microsoft. http: / / support. microsoft. com/ default. aspx scid= kb; en- us; Q317597 Works great fine from a document loaded used from their example I am building a document and then utilizing the same example code to populate a treeview. My issue is that the child nodes do not fully traverse all child nodes and shows the innertext instead of the text value. WHEN I RUN IN DEBUG MODE IT WORKS AS EXPECTED. TreeView Example In debug with a break point and evaluating the node. Client Case Lawyer -Smith Status -Pending Trial Case Lawyer -Miller Status -Resolved Running without debug mode Client <Case><Lawyer>Smith< ...Show All
.NET Development Add or change attribute to a property in runtime, is it possible ?
Hi, I need to change or add new attribute to a property in run time (.net 2.0) is it possible I tried using reflection something like that Class2 c2 = new Class2 (); PropertyInfo [] propInfoArray = c2.GetType().GetProperties(); PropertyInfo myProp = propInfoArray[0]; MyDisplayNameAttribute myName = ( MyDisplayNameAttribute )myProp.GetCustomAttributes( true )[0]; myName.SetNewDisplayValue( "Hello 2" ); No, but you can still use the ITypeDescriptorFilterService technique you're using now and completely replace their PropertyDescriptors with your own can't you (I think you can still derive from TypeConverter.SimplePropertyDescriptor even if you aren't actuall ...Show All
Visual FoxPro Dbf Autoincrement with ADO
Hello everybody, I created a table with an autoincrement field( CREATE TABLE `Synch_LogFile` ( `ID` I Autoinc NOT NULL, `TableName` C (100) NOT NULL, ...) ) when I try To open it by ADO with VB (Select * From Synch_LogFile) I get this error message: [Microsoft][ODBC Visual FoxPro Driver]Not a table. What's I'm doing wrong Thanks, You are using the old ODBC driver which dates back to VFP version 6. It does not understand newer types as incremental fields which came out in later versions. Your only choice here is to use the newer OLEdb Provider as the ODBC Driver has not been updated. You can download it here . ...Show All
Visual Studio Express Editions Password problem
In Web Developer 2005 Express Edition, to assign a user you must input User Name, Password, Confirm Password etc. I input a 9 digit password with 3 numbers included and the system gives me an error "password mimimum is 7 with 1 non-alpha." I have look into the 2485 problems in the general que and the 462 problems in this que and don't find any answers. I am looking into the possible purchase of Microsoft for the first time and the number or problems is scaring me. Any help would be greatly appreciated. There are some configuration changes that you can make to set te strength of the passwords, but you should ask this question inside the membership groups on http://forums.asp.net as this group here is for registration ...Show All
SQL Server Displaying a field in SQL Server MSE
I have a long text field in a table. Is there a query that I can execute in Mgt. Studio Express that will display the whole of this field. It is too long to easily see in the table view and SELECT <fieldname> from <tablename> only displays part of the field before displaying ellipses (...). Many thanks, This depends on what your data is and how you're displaying it. If the data is an XML document then casting it to XML in the select will allow you to click on it and display nicely formatted XML. If it's just text then management studio has a configurable limit on how much it will display. Go to Tools->Options in the menu bar and navigate to Query Results->SQL Server->Results to ...Show All
Visual C# VB.NET 2.0 to C#.NET 2.0 (Help Please)
I'm working on Converting a VB.NET 2.0 Project to C#.NET 2.0 and need a bit of help with this... Here is the VB.NET Code i'm coverting:: statz.Items.Item(2).Text = "0" For i = 0 To CInt (ClientList.Text) ClientID(i) = ListView1.Items.Item(i).SubItems(1).Text Socket(i).Close() Socket(i).Connect(ServerList.Text, 5050) If ServerList.SelectedIndex = ServerList.Items.Count + 1 Then ServerList.SelectedIndex = 1 Else ServerList.SelectedIndex = ServerList.SelectedIndex + 1 End If /****************************************************/ ListView1.Items.Item(i).SmallIcon = 2 Closer... only for a few lines you are using (i) instead of [ i ]. ...Show All
SQL Server [rsInvalidExpressionDataType] The Value expression used in field returned a data type that is not valid.
I got this error for a calculated field that calls a public function of a custom assembly based on the report parameter values. The return type is an array of double. =code.ovalues.dGetValues(Parameters!Report_Start.Value, Parameters!Report_End.Value, Parameters!Tag.Value, Parameters!Agg.Value) Does SSRS 2005 supports the type double for a field Can the data source of a field in a dataset be an array Is there a way to pass the array to a field by reference and display the values at runtime I would appreciate any help since I could not find anything helpful on the internet and Microsoft document! These are two other possibilities I just found out: 1) I can populate an ADO.Net dataset with theO ...Show All
Visual Studio 2008 (Pre-release) Animation on a RichTextBox
Hi, I am new to WPF and XAML. I want to create a richtextbox and have an animation on top of the richtextbox. This means when a user clicks on the backspace button inorder to delete the characters an image should appear instead of the carat. This image should move from right to left as the user clicks on the backspace button. Can anyone help me out in this Thanks in advance, Subrajit ...Show All
Windows Forms How to toggle the highlighting on a row with every mouse click?
I'm trying to do the following in code-behind in C#: When a user clicks anywhere on a row, the row highlights in a different color. Another click on that same row changes the row to its original color. The user should be able to select multiple rows this way. The rows could be rows in ListView or DataGridView, currenttly I am trying DataGridView, havn't figured any possible ways. Please Help. webcliff This thread might help. Post at forums.asp.net to get a better answer... ...Show All
Windows Forms Listbox to show options from a related table
On a Windows form, I have textboxes to show data rows of a main table. The main table has a foreign key to a minor table which is a list of status values ("Pending", "In Progress" and "Done"). The object is to display the status in a listbox or combobox. I want to know how to do this. Some notes: 1) The code to set up connections, DataAdapters, CommandBuilders, bindingsources, Datasets, etc works fine. 2) I would like to set up any constructs in code rather than with a wizard. 3) Unless I have to I want to avoid creating the relationship between the tables in the wizard. 4) I get the sense that one Dataset can access and update both tables, but I don't know how to tell the dataset about additional tables. ...Show All
Windows Forms Deployment Package Developer please help
Hi All, I need to create a deployment package with the following requirements Place a folder and files under wwwroot folder, and create a virtual directory that maps with the folder with “Read”, “Run scripts” and “Execute” Virtual Directory Access Permissions. Give Internet User Account “List Folder Contents”, “Read” and “Write” permission to a specific folder. Give Internet User Account “Read” and “Write” permission to an .ini file which will be in an virtual directory. Run an SQL script located in the same folder. Check if the OS is Windows 2003, if yes add a web service associate it with a dll file within the folder and set to “Allowed”. Add the file path of the dll into environmental system variab ...Show All
Windows Forms Mouse wheel left/right click ?
My mouse wheel can click left and right as well as down. Does anyone know how to capture this event It doesn't fire the mousewheel or mouse click events. I also tried WM_SCROLL. I asked in the Winforms forum because it's a winforms question. I happen to be using C#, but if you know how to do this using winforms, I don't care what language your sample code comes from... ...Show All
Visual Studio 2008 (Pre-release) are there any plans for a FoxPro provider
I have to support both SQL and FoxPro in my applications. Is there a plan to develop a provider for FoxPro It would be awesome if you could release the source of the Jet Provider for us to checkout. Even if it had the caveat that it was unsupported and just a sample that was going to change. I think it would be extremely valuable to those of us who may write our own providers in the future. I'm sure there are all sorts of internals battles that you'd have to fight to make it happen but we're worth it aren't we! ;-) Cheers, Steve ...Show All
Smart Device Development Doubleclicking the touchscreen?
I have been unable to get Double-clicks to work with a touchscreen. I am calling ModifyStyle with CS_DBLCLKS, that doesn't seem to be working. Does Windows Mobile 5 actually support double-clicks Amit Ranjan wrote: You would need to register windows class with CS_DBLCLKS style. Hope it helps Thanks and Regards Amit I am doing that via ModifyStyle() (ref: original post) ...Show All
Visual Studio 2008 (Pre-release) INotifyPropertyChanged in C++/CLI
When I implement INotifyPropertyChanged in C++/CLI: (public ref class Task : public INotifyPropertyChanged) A problem comes to me: Error 3 error C3766: 'SomeData' must provide an implementation for the interface method 'void System::ComponentModel::INotifyPropertyChanged::PropertyChanged::add(System::ComponentModel::PropertyChangedEventHandler ^)' I don't know why this error doesn't occur in C# when I implement the INotifyPropertyChanged ,but occur in C++/CLI . Could you so kind to tell me how to resolve it Thank you very much! But this does not work: public ref class Class1 : INotifyPropertyChanged { public : virtual event PropertyChangedEventHandler^ PropertyChanged; ...Show All
