Jbud's Q&A profile
Internet Explorer Development ActiveX Modal Dialogs do work in IE7
Our product is suffering some pretty severe problems because of IE7. We've starting getting calls that dialog windows become hidden. We've heard this is a threading issue. We found out that the problem is actually much worse. Modal dialogs don't seem to function correctly in IE7. You can recreate the problem using VB6 by doing this: 1. Create an ActiveX UserControl project. 2. Add a form to the project (form1) 2. Put a button on the user control (usercontrol1). 3. Add this code to usercontrol1. Private Sub Command1_Click() Dim objForm As Form1 Set objForm = New Form1 Call objForm.Show(vbModal) End Sub 4. Build the project as an OCX somewhere on your hard drive. 5. Find your control's CLSID in regedit. I ...Show All
Visual C# Exclude element from foreach index (MenuStripItem) HELP!
Hello! I have a foreach loop. How can I exclude one of the elements from being indexed: I have a foreach loop setting a property for each of the items in a ToolStripMenuItem category, but one of the items is a ToolStripSeperator, and I would like to exclude it so the foreach loop would set the property for all of the items EXCEPT the toolstripseperator. How can I do that Matt Hey guys! Thanks for the answers: One more thing: How can I do this: foreach ( ToolStripItem item in favoritesToolStripMenuItem.DropDownItems) { if (item.GetType() == typeof ( ToolStripMenuItem )) { if (item.ToolTipText == "1" ) favoritesToolStripMenuItem.DropDownItems.Remove(item); ...Show All
Visual C++ problem with richtextbox
RichTextBox^ richtext1 = gcnew RichTextBox; richtext1->LoadFile( "c://test.rtf" ); Controls->Add(richtext1); The result of error An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll Additional information: File format is not valid. my solution : tried I have tried to change file format to txt but error is still there . I was wrong in which way . Thank you ! richtext1->LoadFile( "c://test.rtf" ); Shouldn't this be like this richtext1->LoadFile( "c:\\test.rtf" ); ...Show All
Smart Device Development How 2 develop PDA App.
Hello, i want 2 know that how to from any application which can run on windows mobile based PDA. Go to Configuration Manager and make sure you deploy your application on a device (rather than on a simulator). As you seem to be a beginner, you may go for some video tutorials. I may suggest trying out some of Rory Blyth Channel9 videos, they are filmed for beginners and are fun to watch, so to say. ...Show All
Visual Basic Starting apps at shutdown
I am writeing a simple app that displays a message telling the user to turn off the moniter etc before the user shuts down the system. Could someone exlpain how I can run the app at shutdown. The app also has to be iinstalled on a large network, is there anyway of installing it on all the machines at once. Thanks Thanks, That seems to work. Another problem that's appeared is the machines that the app will be installed on is using an older version of the .Net framework and an error saying it can't find the framework. This is because it's looking for it in the folder "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727" which does not exist instead it should point to "C:\WINDOWS\Microsoft.NET ...Show All
Visual C# C# 1.1 To C# 2.0 Problem
Hi I faced a problem when converting for VS2002 to VS2005. 'Cannot declare variable of static type 'System.IO.File', because i declare an instance variable of this Type in my Old Code. When i look in detail, the defination of System.IO.File has been changed Previous Defination : public sealed class File : System.Object Member of System.IO New Defination : public static class File : System.Object Member of System.IO Does any body have solution, i cannot change my code,because its lot of code. I wonder Why Microsoft Did this. Regards As far as I know, you could never call your SetFile() method with anything other than a null parameter! How can you create a System.IO ...Show All
SQL Server Adding diskspace to SQLServer 7.0
We have created a large Image database using SQLServer 7.0 and are now worrying about the capacity of our hard disks. Question 1: At what percentage of free-space should we take action to increase the capacity of the database Question 2: Does this simply involve adding further 'Locations' for the database files / transaction log using the SQL Server Enterprise Manager Properties dialog box (select database in treeview, right-click | Properties) Question 3: It would appear that we can add further 'Locations' that are shared network directories and so increase the capacity of the database beyond the limits of physical storage on our database server PC - currently 500GB RAID array. Clearly, this will impact performance, but what oth ...Show All
Visual Basic Datagrid - Error?
Hello, I have in a form a DataGridView called "DataGrid". The SQL script is generated by the user (in a previous screen). The result of this SQL script needs to be populated in this "DataGrid", but there seems to be a problem (I don't get data at all): Dim SQL_CONNECTION_GRID As New SqlConnection Dim SQL_COMMAND_GRID As New SqlCommand Dim SQL_DATASET_GRID As New DataSet Dim SQL_ADAPTER_GRID As New SqlDataAdapter(SQL_COMMAND_GRID) SQL_CONNECTION_GRID.ConnectionString = Some connection SQL_COMMAND_GRID.Connection = SQL_CONNECTION_GRID SQL_COMMAND_GRID.CommandText = defined in a separate screen (SQL script works) SQL_COMMAND_GRID.Connection.Open() SQL_ADAPTER_GRID.Fill(SQL_DATASET_GRID ...Show All
Visual Basic Fraction to decimal
Hi! I have a list with prices of US Treasury bonds. They are quoted in a particular way that I would like to convert to decimal form. They are quoted like this eg: 99-02. Now this means that the price is 99 and some decimal. The two first numbers are the number of 32:s. Thus in this case the price is 99 and 2/32. However if there are three decimals eg 99-021 the last digit refers to the number of 124:s. Thus the price is 99 and 2/32 and 1/256. Sometimes There are only two decimals followed by a plus or minus sign eg 99-30+ or 99-10-. The plus/minus indicates that you should add/subtract 1/64. Keep in mind that the non decimal numbers may be one, two or three digits. Thus, it could be eg. 6-02 87-22- or 105-21+. Is there any wa ...Show All
.NET Development Retrieving CLOB data from Informix
Hello guys, I'm having lots of trouble trying to retrieve a CLOB field from an Informix data as follows. I have a process that reads a remote Informix Database that has stored images on a table. I need to retrieve that image and save it to a iis locale directory, so later on it can be used on a web application. I'm using IBMs Informix Client SDK 2.90, .NET 1.1 OleDB Provider, Ifxoledbc.2 IBM odbc driver correctly installed on the server, and VB.NET. If I query the informix database, I have no problem with any other type of data, but after trying to recover the CLOB column I get errors. I followed a few examples on retrieving the data from text and image columns on SQLServer, and they worked fin ...Show All
Visual Studio 2008 (Pre-release) WPF messageBox
Is there a WPF control that allows me to notify a user, something like a message box in windows forms. I tried using System.Windows. MessageBox .Show( "No instance running" ) But this does not work... Thanks, Marko Vuksanovic. HI I pasted your line of code into a new WPF app, add a ";" for C# and it works. There are only 5 more properties (beond show) so it pretty plain looking. Have a good day Mike Greenway ...Show All
SQL Server Conditional Formatting - not so conditional??
I have the following code in the color property of a textbox. However, when I run my report all of the values in this column display in green regardless of their value. =SWITCH(Fields!Wrap.Value >= 3, "Red", Fields!Wrap.Value < 3, "Green") I already tried =iif(Fields!Wrap.Value >= 3 , "Red", "Green") and got the same results. Is it because this is a matrix report What am I doing wrong Thanks in advance . . . I made the change that you suggested. Which eliminates the warning that I was receiving. However, I am still getting inconsistent results with the formatting. For instance, of the following values only 5.09, and the two 0.00's are colored green. Could ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Supported gamepads (Spacewar)
Hi, Is just the XBOX360 game pad supported, or should other pads also work. I've tried connecting my old MS Sidewinder Plug and play pad, which is working in other programs, but not here. Is there something I need to set up And (if other pads are not supported in spacewar), is this a limitation of the spacewar demo that can be coded around for windows based games Chris So if we want to use other controllers, which is pretty much a requirement for a pc game, were back to mdx and we loose xbox360 compatability Is there a way we can detect the type of controller connected using xna ...Show All
Visual Studio 2008 (Pre-release) Smooth scrolling images
I'm displaying a bunch of thumbnail images in a listview and I want the items to scroll smoothly like Picassa (google's photo tool). For a comparison, I'm running the WPF PhotoApp sample (WPFSamples\Demos\photoapp) and adding extra images to the content directory. Notice how the scrolling is jumpy instead of smooth. Any ideas on the easiest way to smooth out the scrolling Set your ListView.Scrollable=False and wrap it in a ScrollViewer, adding the CanContentScroll="false" property. You'll then be able to control the amount of each scroll, and animate it the way you want. ...Show All
SQL Server how to implement the sql server mirroring?
i have two computers with Sql server 2000 std edition(SP4) and windows 2003 std edition(SP1). how should i do to balance the loading of sql server and sync these two servers The sql server mirroring means that if one server is down, then the other one will replace it ...Show All
