redneon's Q&A profile
.NET Development html in dotnet??
I'm using the googleapi to add more flexibility to searching google from a vb.net app I'm writing. I get a stream of html data back from google that has a title such as "The <b>best</b> ..." then I get a URL, then a snippet of information about the topic which may or may not have html included. My problem is how to display this Is there no control that can display html data I could use the webbrowser, but then I'd have to save the file out to an html file on disk and I'd rather avoid that if possible (just seems messy :) ), or is there a way that I can write a URL to the webbrowser as html text (as opposed to having it navigate to the URL) without having to print it out. I tried textbox, label, richtextbox etc, but no ...Show All
.NET Development What happens to original reference if I upgrade .NET assembly?
Hello, I have 2 projects (front-end and business code) front-end is referencing business code project. I install business code assembly into GAC. If I update business code project later on and change version number on it, recompile it and put into GAC which version of assembly my front-end application will be using The one which it was compiled with or latest one in GAC How do I control this If you open the properties of a reference (right-click the reference and select Properties) then the option is Specific Version . Michael Taylor - 10/13/06 ...Show All
SQL Server Recovering DB with only the .MDF file
I saw the other thread that is related, but let me give you our circumstances. A drive failed and that drive had the SQL installation and the *.ldf files on it. The MDF files were unscathed. The drive has been rebuilt and I have reinstalled SQL 2000 SP3A on there (that is what was there before). I have tried attaching the MDF through the GUI and letting it create the log for me. This failed. I tried sp_attach_single_file_db, but this failed since the db was never dettached. I tried creating the db again, dettaching it, copying the old (good) MDF file over the newly created one and then attaching (using multiple attach approaches). It knows that the log file and mdf are not matched and won't let me do the attach. I also found DB ...Show All
Visual Basic Running 'user selected' applications
Hi there, A fair while ago I started a project, to try and launch a specific set of applications. Not windows programs. Inititally through their own command buttons, then by checkboxes and a single command button, however I could never get the thing to work. Also the application locations woudl have to be the same as on my system which is never the same to any other system I have used. Now I've been asked by a friend to actually make it, I have tried code like this; Dim NameOfProcess As String = "app.exe" Dim p () As Process = Process . GetProcessesByName ( NameOfProcess ) If p . Length > 0 Then MessageBox . Show ( p . Length & " Process(s) Named " & NameOfProcess & " i ...Show All
Visual Studio Express Editions URIformatException
Hi I’m starting my learning of VB programming with Vb 2005 express edition, doing an RssFeeds reader. ( http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx ) I have a classe that pull the feeds for a URL and returns an array list, almost the hole ting is raped in a try, caught, finally statement. The url is passed in as shown below. What I want to do is identify the type of Exception, and act accordantly with the type of exception. That is if it is an uriformatexception I want to display the ex.message and show the URL that case the URL. I realize this is all in the help but for a rookie it is very dificult to find what we want, so i tank any help you can give me. Tanks Public Shared Function ...Show All
.NET Development Database Structure design and User Interface Design
Hello All I am having a bit of a dilemma designing Data Storage and User Interface for a project; here is my situation, bare with me as I am fairly new to this. I am creating 2 eCommerce websites, one to sell DVDs and the other to sell Health Supplements. I also need to create a central windows application to handle the CMS, Reporting and also to allow sales staff to take orders over the phone. It is the windows application, ordering section, displaying products which are giving me problems. The staff will need to firstly enter all the customers’ details, they will then go to a form where they can search products and add them to a cart/basket. A Health supplement has different attributes to DVDs, fo ...Show All
Software Development for Windows Vista RunTimeID Property Issue
While trying to setting the RunTimeIdProperty in the PropertyCondition, the following error is thrown. How can one set this property PropertyCondition value for property 'AutomationElementIdentifiers.RuntimeIdProperty' must be 'Int32[]'. <snip> PropertyCondition addCondtion = new PropertyCondition ( AutomationElement .RuntimeIdProperty, ControlType .TreeItem); <snip> ~JK Thanks for the reply. Do you have any example link showing how to implement ClientSide Provider for windows application.I have go through the article for menu strip, but that did'nt help much. ...Show All
SQL Server 2 similar queries - different results! Why?
SSAS2005. Tell me please, why this query SELECT { [Measures].[Internet Sales Amount] } ON COLUMNS , { [Product].[Product Categories].[All Products] } ON ROWS FROM [Adventure Works] WHERE ( [Product].[Category].&[ 1 ] ) returns: $29,358,677.22 but SELECT { { [Product].[Category].&[ 1 ] } * { [Measures].[Internet Sales Amount] } } ON COLUMNS , NON EMPTY { [Product].[Product Categories].[All Products] } ON ROWS FROM [Adventure Works] returns different result: $28,318,144.65 If I replace [Product].[Category].&[ 1 ] on [Product].[Product Key ].&[BK-M18B- 40 ] then results are identical! $25,919.52 Thanks. Maybe this white paper can help:Introduction to MDX S ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Poor XNA performance or my poor code... or normal?
I've have created a simple scene that renders 8000 identical cubes. I know thats a lot of cubes, but I only get 4 FPS on a 2.0ghz dual core with a 7300 mobile graphics card at 640x480 with simply vertex shading and one directional light. This pc can run doom3 at 60FPS at that resolution and a program i wrote in MDX that draws about 1000 detailed spheres with specular lighting runs at over 100FPS Here is the code I'm using: using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; namespace WindowsGame1 { public class Game1 : Mic ...Show All
SQL Server Finding all views with a specific name, in all databases
Hi, We are migrating to SQL Server 2005 from 2000 and we have a view created in many of our databases. That view must be changed after the migration because it uses system tables and does not return the correct information in SQL Server 2005. To do that, I want to create an SSIS-package that loops through all the databases on a particular server. If that view exists in the database, I want to run a script that change the view. What I try to do: Set up a For Each Loop container with Foreach SMO Enumerator Set the connection to my server Set the Enumerate property to "SMOEnumObj[@Name='Databases']/SMOEnumType[@Name='Names']" On the Variable Mapping page, place Index 0 in Variable User::dbName In the For E ...Show All
Visual Studio Tools for Office WinForms Object Error (Windows Vista & Office 2007)
System Config(s): Windows Vista Ultimate with Office Ent. 2007 Office 2007 PIAs VSTO 2005 SE (have also tried with original VSTO 2005) also tried on Windows XP with Office Ent. 2007 VSTO Solution: Word Template Document-Level Customization Basic test application that contains a custom Action Pane with a button. The click event of that button creates an instance of a custom WinForm control and adds that control to the ThisDocument Controls collection. Code Example CustomControl customControl = new CustomControl(); Globals.ThisDocument.Controls.Add(customControl, rng, 120, 80, customControl.Name); Problem: On Windows XP running Office 2007, this works fine. Under Windows Vista I am receiving the following error: The program used to crea ...Show All
Visual Basic Urgent help needed
hi, well someone did this project for me using vb.net 2003, but there was an error in it, and i don't know much thing about programming so please can u help me fix this please. It'a library managment system , well, the problem is u go to book issue and u issue a book and then u can see that the book is issued and then when u go to return book and type the code he will say that it's returned but it's not returned u can see it by searching it... i want that to be fixed. tanks so much http://met0555.ifastnet.com/Library_Ma1993565122006.zip tanks well i actulay i don't know the exact place to repair this error as i said i don't know much thing about programming. the problem is when go to book return and u type the code click on boo ...Show All
Visual FoxPro One works only when other not touched?
Hi, In single Table form there are "Report & Invoice" command buttons. The problem is if "Report" execute once "Invoice" won't do anything and vise versa. Also Is there any command that will preview the report in maximized size instead of clicking it every-time "Report" command button code is: REPORT FORM monthly.FRX PREVIEW "Invoice" command button code is: REPORT FORM invoice NEXT 1 TO PRINTER preview Any help well greatly apprecite, Thanks First of all thank you I actually cannot translate properly because the "Invoice" button simply prints the report of the current record in "invoice.fr ...Show All
Windows Forms bending edges
hi, i am trying to recreate the progressbar shape but have encountered a problem, making the rectangle is easy but how do i bend the corners here is my code so far using System.Drawing.Drawing2D; namespace Remake { public partial class Form1 : Form { public Form1() { InitializeComponent(); } protected override void OnPaint( PaintEventArgs e) { Graphics g = e.Graphics; Pen p = new Pen ( Color .Black, 1); SolidBrush sb = new SolidBrush ( Color .WhiteSmoke); g.FillRectangle(sb, 10, 10, 100, 50); g.DrawRectangle(p, 10, 10, 100, 50); } } } take a look at this article in CodeProject : Extended Graphics - An implementation of Rounded Rectangle in C ...Show All
SQL Server deploy sql server express to ISP
To deploy sql server express to an ISP that supports Sql Server, I backed up the .mdf and .ldf files. I can connect to the ISP database with Sql Server Mangement Studio Express. That connection requires a password. When I try to execute 'restore', I get an error for no permission. Any ideas why I have no permission after a password has already been entered I sure appreciate any help. You will need to contact your ISP to discover what permissions you have on thier server. If you're getting a no permission error, it means that you don't have permission to perform a RESTORE on the server. SQL security is not all or nothing, you can be assigned a whole range of permissions that each imply certain rights. Is RESTORE the way ...Show All
