ankush sharma's Q&A profile
Visual Basic adding local html files to winforms control at runtime to read with browser.
I would like to add the code to the for loop below which will dynamically add "1 to n" html files found in the current directory and add them to the appropriate vb.net control as a hyperlink, which the user can then click on to launch the html file into a browser window. (using Process.Start most likely) what would those controls be and how would I add these files at runtime I found out the webbrowser control didn't work because it only reads html and doesn't allow for hyperlink (html anchor) functionality. Thanks for any ideas. For Each filePath In IO.Directory.GetFiles(Environment.CurrentDirectory, "*.html" , IO.SearchOption.AllDirectories) 'add to approprate control at runtime ...Show All
Windows Forms return dialog value without closing the form
I have a dialog form that is allows for a user to select a scanner. The user selects a scanner from the list and presses the Okay button. I then want the Parent form (of the dialog) to attempt to connect to the scanner while the selection dialg form is still open. I cannot do that using ShowDialog() and I cannot think of another method of doing this. Is there another way that I can show the dialog, And force focus on the dialog until it closes, And know when the user presses the Okay button so that the parent form can evaluate the results before the form closes. thanks in advance Try this. Create two forms. Place one button on each form (Form1 Button1, Form2 Button2) Put the followi ...Show All
SQL Server ReportExecutionService Render Method - Setting the data - XML
Hello all, I'm at a bit of a loss as it seems what I want to do should be obvious but I can't seem to locate whether it is possible. Essentially I would like to render a report using the api/C# and I would like to set the actual data the report renders via an XML string that I construct however I like within my code. Is this not possible I hope I'm overlooking the obvious here. Thanks in advance for your feedback. Take a look at the XML Data Provider: http://msdn2.microsoft.com/en-us/library/aa964129.aspx Or, if you are using the local controls, convert the XML to a dataset. ...Show All
SQL Server SQL Server 2005 queries not using correct indexes
Hi, I'm running into issues where SQL Server 2005 SP1 queries are not using the best indexes. A query with nested subqueries runs in 1 second and performs about 400 logical reads on TblA in the DEV environment (dual proc server). The same query takes 8 seconds and performs 180423 reads on TblA on the production server (quad proc server...basically a lot better in terms of hardware). The 2 databases have the same schema and same data. I've updated stats w/full scan on this table in PROD and issued a sp_recompile TblA. No change. If I provide an index hint on PROD, then the query runs the same way it does on DEV (413 logical reads and runs in under 1 second). Is there any way (other than by using index hints) to resolve this iss ...Show All
Visual Studio 2008 (Pre-release) ADO.NET Orcas March CTP: Uncle. :)
Alrighty... how does one create an ADO.NET Enities Framework Project with this new badboy I can't seem to find it as a project type when I Add New Project... The project template wsa probably their way of getting all the appropriate references in with previous CTPs. Now they get added when you add the item (well, I think not until you save it and build the actual class). You don't necessarily need a separate assembly for your CDM, though it's good architecture just like you would with any other data access layer. ...Show All
SharePoint Products and Technologies How to make breadcrumb display text in root?
I'm trying to have the SharePoint breadcrumb display text from the root folder. If you copy the default.aspx page to the "Shared Documents" folder, you'll see: HOME > Shared Documents > default However, in the root folder it's missing the text. I'd like to create custom aspx pages in the root folder that show the text so in this example it would be: HOME > default For your sites breadcrumb change the SiteMapProvider to SiteMapProvider="SPContentMapProvider" . This will display the Shared Documents Folder ...Show All
Visual Studio Team System Want to change Report links in Sharepoint Quick Launch for existing project
I would like to delete some of the report links in the Quick Launch area of an existing Project Portal. Can this be done without Front Page Or at all ...Show All
Audio and Video Development Text to Display Rending
Here's the issue in the simplest terms I can explain it. This all started with subtitles. It is obviously easier to have a markup file with all the subtitle text in it instead of having to make individual graphics for each. Far as I know, this should be possible. Unfortunately, it's not going so well. After many attempts at subtitles, I decided to just add a very basic text output from the main markup file. It still did not work! I've checked the fonts, tried a few, and they are all Open Type. It's a very simple piece of code that just sets the position, font, and color. I left out all the timings and animations to be safe. Is there a bug in the Toshiba Players that won't do this or I am just overlooking something right in front of my face ...Show All
Visual Studio 2008 (Pre-release) Storyboarding an Opacity Animation
greetings and salutations. I'm trying to determine what I'm doing wrong. I have an image coded in XAML, along with a storyboard for an opacity mask from 0 to 1 over 1 second. Easy enough. The trigger for the event is Image.Loaded. My problem is, in my code, when certain events happen, I update the source of the image. But when this happens, the opacity animation does not occur. Should I be "wiring" to a different event SourceUpdated is not a RoutedEvent, so I can't wire to that. Any suggestions ...Show All
Windows Forms address/URL bar in Internet Explorer ?
Hello ... I need to help me about IE toolbars . I mean the address toolbar which it come with IE, I want develop new one - address toolbar - with special option for my business, then repeals the new one I develop it with old one which is come with IE . I need some options like: when our users enter the domain name at the address bar, it is send the request with domain - which user entered it - to our Reflector Servers then we reply to the address bar - which send request - with an other domain, then IE complete its steps normally . Pleas help me with any thing you thing related with this problem like ( books,forums,sites,...) . Many thanks . Mohd ...Show All
Software Development for Windows Vista Please Help! Communication from App to Workflow and visa versa
Hi All I have been playing with Workflow for a while now and im still struggle with a major part of it all, communication between the host and the workflow. Most the examples I find wont load properly (they seem to be aimed at the beta version). I have built some simple workflows that do stuff like this. 1, Work flow is started up and parameters passed across. 2, Workflow runs, does some tasks (sends emails, writes to database). Application sits there minding its own business. 3, Workflow waits for user action before starting second phase. 4, User kicks off second phase of the workflow. Button on form calls the even that the workflow needs to carry on. 5, Workflow runs and does more tasks. 6, Workflow finishes and i ...Show All
Visual Basic Late binding problem. I've not looked up a defintion but what the code does is.>>
i have a problem about late binding. highlighted in red. anyway what is late binding Private Sub IP_input_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txt_IPinput1.TextChanged, txt_IPinput4.TextChanged, txt_IPinput3.TextChanged, txt_IPinput2.TextChanged Dim control As TextBox = CType(sender, TextBox) ' if length is 3 then focus next control If sender.Text .Length = 3 Then Call focusNext() End If End Sub Hi, Thanks Dave i didn't spot that, i was amending the original post code. Been in work last night, not had much sleep. Zzzzz. I'll edit my post now. :-) All the best to you for 2007. Regards, ...Show All
Visual Basic 2005 Compiler not recognising code changes
Ok you guys, I know this is probably going to be something really simple so I apologise in advance. I've recently converted a vb.net 2003 solution to 2005. everything is great and I've got rid of my pre-compilation conversion errors and warnings etc and am reading to carry on development. My problem is this - in a sub project (which is referenced in the main solution by the sub projects DLL file, but I also change the source code for the subproject whilst in the main solution (hope that's clear!)), when I change or add to the source code (in the sub project) and start debug, or even rebuild the whole solution, the new code doesn't get picked up. I've tried putting a breakpoint in the code, and it doesn't pick it up, so i tried typing " ...Show All
SQL Server why not showing nulls?
Hi, I have two tbls joined via a varchar field.. which in tbl I have to use a CASE statement to format it correctly for the JOIN.. All works well.. however, if I add a WHERE clause to the statement, with the WHERE clause affecting only one of the JOINED tbls.. All the NULLS are not shown. I should get results like: Postcode Count tf4 0 tf5 23 tf6 15 tf7 0 etc Whereas, when I add the where clause, none of the "zeros" are shown, so I get: tf5 23 tf6 15 Why is this Here's the SQL: SELECT ISNULL(COUNT(CASE LEN(REPLACE(dbo.Customers_Trade.PostCode, ' ', '')) WHEN 5 THEN LEFT(REPLACE(dbo.Customers_Trade.PostCode, ' ', ''), 2) WHEN 6 THEN LEFT(REPLACE(dbo.Customers_Trade.PostCode, ' ', ''), 3) ELSE LEFT(REPLACE(dbo.Customers_Trade.Po ...Show All
.NET Development Updates Using the Entreprise Library DAAB
I am using the Jan 2006 Enterprise Library DAAB. One of the big benefits for me is abstracting myself from the database. I work for an ISV and our product must run on multiple databases. With that said I have been instructed to stay away from stored procedures. The dataadapter can create Update, Insert and Delete commands dynamically based on the Insert Command. I am trying to figure out how to dynamically create delete, insert and update statements using the DAAB. It appears that you to update using DAAB you must create your own commands. Therefore I decided to try and create a generic routine that would create these commands based on the columns in the dataset. I can cycle through the columns in the table to get the column names and ...Show All
