gauls's Q&A profile
Visual Basic how to subform
I used to developed form in Access such as There is a main formA on load of formA if condition met then load subform subformA else load subform subformB Please advise how to do this in VB.NET 2005 thanks your MDI form has tab control or are you launching the form from another child / dialog form, any way i m sending the case of MDI form, it will be exact if you call from a child form ---------------- Private Sub TabPage2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage2.Click Dim myChildForm As Form Dim x As Integer = 0 If x = 0 Then   ...Show All
Visual C# creating objects of a private array
I am new to c# and need help with arrays. I need to create an objects of an array that will store (first name, last name, age). What is the best way to create this array and then to create the objects of that array Follow up question as this discussion comes closest to my problem. I want to use the property Item to get/retieve a specific entry in the array list and work on an indvidual field in the item returned. My problem is I can not figure out how to code the left hand side of the statement. Using the above example , how would you get the Tim Taylor record (item = 1) and display the age field. = theCollection[1]; Console.WriteLine("-------Tim Taylor's age--------"); ...Show All
Visual Basic Reoppen form
hi all is there any command which doesnot let the form to open that is already opened / loaded. e.g. ( I Openned FORM1 form menu, now if I click on menu again, the FORM1 should not be openned again, as it is already openned.) thankyou try this... modify for any syntax error(s) if any :P Private Sub ShowForm(ByVal formType As Type) Dim child As Form For Each child In Me.MdiChildren 'if (formType.Name == child.Name) If formType.IsInstanceOfType(child) Then child.Focus() Return End If Next Dim frm As Form = CType(Activator.CreateInstance(formType), Form) frm.MdiParent = Me frm.Show() End Sub ...Show All
Visual C# C# tricky - callback functions like Adobe Acrobat
Hi All, I have a tricky problem where I'm getting a word template and then replacing the tags with those from a dataset. That part is fine but running around 300 of these and it's incredibly slow. So I thought maybe it'd be possible to do each one at a time and show the user as much as possible. Now this is guessing!! so any clue as to how to do this with code if you can would be very much appreciated.... Thanks, Tim ...Show All
Visual Studio 2008 (Pre-release) Where to Download XAMLPAD?
Hi, I am looking for XAMLPAD, does anyone knows the link to download it The closest I could find is XamlPadX v2 at http://blogs.msdn.com/llobo/archive/2006/12/30/xamlpadx-v2.aspx Not sure if this is the correct one Thanks Ponnu I downloaded XamlPadX v2 from the msdn blog that Ponnu posted and I ran the exe and couldn't find it all that user-friendly to create XAML forms so I deleted all the files. Later I found a process running in the background called persentationFontCache.exe which started as a local service. (I use user mode only). Today I did a search for it on my PC and File Not Found . Does this file have anything to do with WPF ...Show All
SQL Server buckets or quartile
Hi all, Dreaded moment has come:) I need to produce a report against MSAS 2005 with quartiles buckets, meaning that besides actual value of the measure, it needs to display following: Value 1st 2nd 3rd 4th X Min - Max Min - Max Min - Max Min - Max ------------------------------------------------------------------- 80 85 - 95 75 - 85 55 - 75 12 - 55 where 1st is range of values of top 25% performing entities and so forth. It's supposed to be sliceable by any hierarchy in the cube. I tried to use TopPercent 25%, but never could get it work in calculated member. Any idea, comment, reference highly appreciated. Thanks Extendong your example with emp ...Show All
SQL Server Reports Performance Issues
Hi All, I have some serious performance issues with reporting services, please help me to improve the performance of reporting services, When I am running SP from Query Analyzer then its taking 5 seconds but report rendering taking some times 5 to 10 minutes, for output not more than 2 pages. I have just installed Reporting Services 2005 with SQL Server 2005. What are the good practices after installing RS2005 on any box. Is there some performance measures. Thanks, Imran. the issue was with my report, I have dragged and dropped column into group area, and by default it added First function with it, when I removed First function with column name and re-run the report, now its running fine. ...Show All
SQL Server Problem in reading cell comments from a excel sheet using SSIS
Hi, I have created an ssis package, am using Script task to read all the cell values and comments. In server MS Excel is not installed, so we use regsvr32 to register excel.dll ( also tried with Microsoft.Office.Tools.Excel.dll ), while doing the registration we got error as "Registration not done, enrty point not found" Sice the registration is not done we where unable to create the excel object in our script task. Can anybody give as any clue, all helps are welcome. Thanks in advance Ezaz Mohamed Hi, Thanks for your response... We do have license version of Excel, and our requirement is ,we are not suppose to install Office in the server. and we have written a SSIS Package which reads the ...Show All
Visual C# How to generate a TIff file?
Hi, I'm trying to generate tiff files from the data in database and save them on the disk. As I'm very new to the .NET image, and I did not find any thing that I can use from the website, can anyone give me some hints Thanks in advance. Yolande I think the trick that you'll find is not to create a TIFF file directly, but to create an image using a concrete implementation, such as a Bitmap. Then when you Save the image, you can specify the format of the saved file as being a TIFF. One of the parameters into Save is an ImageFormat class, which can represent the TIFF file format. I hope that gives you what you're looking for. ...Show All
Windows Live Developer Forums Problem with my tile layer
I want to add my tile layer on the map. I use method: function GetTiles() { ... tileSourceSpec.TileSource = http://mySite/myPicture.png ; ... } But my picture is not displayed correct. My picture paved all map. But I want to display picture in one copy. How can I resolve this problem Well you didn't stick it in quotes perhaps tileSourceSpec.TileSource = " http://mySite/myPicture.png "; ...Show All
.NET Development Getting started help on databases
I hope that somebody can point me to right direction. I am planning a software with a client server or how to name it. I need different users to be able to work from the same database in a local area network, how do I do this I have VB 2005 Express and Visual Studio 2005 pro and SQL server Dev. Please tell me the best and easies way to do this and maybe you know about any sample codes that I can have a look on. Bert Thanks for your reply. I have started the project in VB 2005 express just to see that I can get it to work that’s why I have it. I have made connections and all of this and it all work fine but before I do anything more I need to know how to code it so it can work ...Show All
Windows Search Technologies What are you developing using WDS?
Hi All, Microsoft is currently working on improvements to the SDK for WDS 2.6.x and 3.0. These improvements are designed to make it easier for you to develop features that will work with both versions of the application. In order to ensure that we make the changes that are best suited to our customers, we'd like to know what you're building for WDS. What versions of WDS do you currently interface with What apps are you building and what do they do What features of the API are you using Have you built IFilters or Protocol Handlers If so, how are they implemented and with which versions of WDS do they work Is there anything that would really help make your development easier Your help will allow us to make decisions ...Show All
Visual Basic HELP! Visual Basic Code to get MS Project Task Infomation
Hi I hope someone can help me with this, its been driving me crazy all weekend! I am trying to write code to get the attributes (name, wbs number etc...) of all the task in a microsoft project file. Here is the code that I have so far: Dim test2 As New Class1 For Each T In ActiveProject.Tasks test2.task_name = T.Name test2.wbs_number = T.Wbs test2.planned_start = T.Start test2.planned_finish = T.Finish Next Cals1 one is a class the I have written to store and modify the attributes of the tasks. This code works fine however the problem that I am having is how do I get the infomation of the % complete column I have tried everything I can think of, including: test2.percent_complete = T ...Show All
Windows Forms Flicker Cursor with DoubleBufffered
Hi! I'm painting with Graphics object to form. Everything I'm painting in Form_Paint method. To reduce flicker of painted picture I'm using DoubleBuffer. Now painted picture is not flickering. However mouse cursor starts to flicker. I want to repaint form every e.g. 500ms, so I tried call form.Refresh(), form.Invalidate(), I tried to invalidate even only some parts of form, but cursor is still flickering. Today I tried to use not regular mouse cursor (default arrow) but Cross or IBeam cursor (which consists only from "lines" and not consists from some "area") and these cursors aren't flickering. Can somebody advise me how to use DoubleBuffer with no frickering default cursor Thanks a lot... Mike. ...Show All
Visual Studio Tools for Office cannot open c# default code page in VSTO environment
hello everyone, i encountered an issue when i tried to open the Excel Project in Visual Studio 2003. i could not open the default code page when i selected the Microsoft Office Project ->Visual C# project -> Excel Workbook. but found only the solution explorer on right hand corner of the IDE with no references made to Office 2003 assembly and Excel assembly.. anyone there to help me out Can't ask for anyone else here, but your question is not very clear ... so let me ask you one or two, so perhaps we can get you an answer: Are you unable to create a new Microsoft Office Excel Project What version of Office are you using on your development machine What version of the VSTO are you using Did you happen to ...Show All
