daat99's Q&A profile
Visual Studio Trying to print ends in 'memory corrupt' error
Hi In the reportviewer control (2005 final edition) I can show a report but when I click on the print icon I get an error. On the first attempt I can choose from the available printers. After a long delay (some minutes) where the app is frozen I get this error message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Any further attempt to print does not offer the printer dialog but results in the above error message within the reportviewer canvas. This is true for all 50 or so reports I have created. The printers are regular network printers I have no problem to access from Office and other apps. Trying to print from the Reporting Services browser page ends in error Could n ...Show All
Visual C# Converting strings to Chars and parsing file paths
I'm stuck. I've been trying to parse a file path in a variable using .Split but I can't figure out how to use "\" as a delimiter char. I can't convert it to a char, and if I try to directly create it as a char I get the error "Too many characters in character literal". Does anyone know how to do this, or even better, does anyone have an easier method that I'm missing >> I've been trying to parse a file path in a variable << Additionally, you may wish to look into the methods of the Path class (in System.IO), where you may find the exact method you are trying to write. ...Show All
Windows Forms TabControl Flashing.
I have an vb.net 2003 winform app that I am working on and I am having trouble the the TabControl control. The TabControl has 10 tabs, 4 of the tabs I have approx. 130 text boxes that is bound to a Access database. I first had trouble binding the text boxes to the database, I have that working. But when the form loads the tabpages flash as the different textboxes are filled with the data. Can anyone help me with this. I am a newbie but learning fast I can post code if that will help. Thanks in advance.... try suspending the layout while you are binding.... 'The tab control Me . TabControl1 . SuspendLayout () 'Do Databinding Me . TabControl1 . ResumeLayout () 'or the tabpa ...Show All
Windows Forms Deploying files with a click once application
I have an xsx file that seems to relate to an xsd file. I need to include both in my applicaiton. I can include the xsd in my visual studio solution but when I try to add th xsx it doesn't appear to get added; yet it is in the source safe explorer. I need to have this file deploy with my click once application since it is needed for an editor component piece in the application. It uses the actipro script editor and I need the language definiton files so the editor can recognize xml syntax and other languages and highlight them appropriately. I get this same warning/error for what seems to be the xsx file since that is the only file that does not get created when the application is published; there is not .deploy file for it. I ...Show All
Visual Basic Determine in which Event i'm in
Hi There, just want to know if it's possible to determine in which event i'm in... I want to create a error logging system, and in my try...catch statement, in the Catch(ex as Exception) part I want to write an error to a database table... but to make things easier, I want to record the current event, in which page i'm in, and all those stuff, just to make things easier for debugging, after the website has been launched, and any unforeseen errors that might pop up along the way... Thanks SJB Thanks, i'll give it a shot... so there is no way to do a response.write( get_event ) and then let it return, for example, eg: Page_Load ...Show All
.NET Development New customer acquisition count
Hi there I have a field, customer acquisition date which is part of the customer dimension table and is a date field. I want to have a count of customers who were acquired on a specific date and I want this date to be related to my other measures, so I can show number of customer acquired and Revenue for a particular date period. Do I need to remove from customer table and create a separate fact table with customer_id and date and a value (say 1) and then join this table to all other tables Or is there a way to join the field as it is to the date table Thanks in advance Derek Hi, In addition to that, you may also want to create a view so that you can JOIN it to other tables in your data ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to "publish" my own IGameService
I've read Mitch Walkers article on the IGraphicsDeviceService and I understood it for the most part. Where I'm a little unclear is on the actual mechanics of creating my own GameService. The article says that the Graphics Component "publishes" an interface as a service. Does this mean the GameComponent internally actually creates a concrete instance of IGameDeviceServices and calls Game.AddService Here is an example: Lets say I'm creating a 2D Physics component that relies on an undelying "Physics" object (this object does all the simulation for rigid bodies). I want to allow others to either use my PhysicsComponent or create there own component that would could still interact with any other higher level physic ...Show All
Microsoft ISV Community Center Forums Outputting to a Listbox
Hi; I have a list of data, and need for values outside a lower and upper bound to be flagged up to the user. I was thinking of outputting to a listbox, but cant get the code to work. I was wondering if anyone had any ideas for possible code, or a better way of outputting to the user. Ryan My list is in H2:H" & FinalRow & " where FinalRow is defined as FinalRow = Range("A65536").End(xlUp).Row The only problem, my list has empty slots. As in i only want cells with values in to be outputted to the listbox. ...Show All
SQL Server MDX Query returning all upper level defenitions??
Hi, I have created a query like this: SELECT non empty CrossJoin(Descendants([Centro Custo].[All Centro Custo], ,Leaves), Descendants([Tempo Mes].[All Tempo Mes].[2005], [Tempo Mes].[Mes], Leaves)) on Rows, {[Measures].[Valor com Imputacao]} on Columns FROM [Controlo Gestao] WHERE ([Tipo Medida].[All Tipo Medida].[REAL]) What is happening is that this query on reporting services is returned with all upper level defenitions.. My intention was to have only 3 columns... [Centro Custo], [Tempo Mes] and the selected Measure, what i am facing is alot more columns like... [Centro Custo].[Level 01].[Member_Caption], [Centro Custo].[Level 02].[Member_Caption], [Centro Custo].[Level 03].[Member_Caption], [Tempo Mes].[Ano].[Member_Caption ...Show All
Visual Basic help property for menu items
Hi all, i have created a sample application in vb.net.i have menu strip in my form and added some menu items in it.when i bring the help cursor above menu items the cursor change as normal cursor.so i am not able to show the help topic for the menu items.is there any way to show the help topics for menu items Thanks, Ganesh ...Show All
Visual Studio Express Editions DLL and LIB?
I'm curious as to how I can have my project compile and produce both a DLL and a LIB file. I have seen it done before (such as SDL does so) and I have been unsuccessful in doing it myself (I have been only successful in building a DLL or a LIB, not both). Any help is appreciated; thanks! Thanks I guess I will go ahead and modify my source to have the __declspec(dllexport) commands and (finally) have my working library. ...Show All
Visual Basic combobox
how to use a combobox Combobox Class http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.aspx Contains an Items Collections http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.items.aspx With can have items added / removed and cleared. http://msdn2.microsoft.com/en-us/library/system.windows.forms.combobox.objectcollection.aspx These include add , remove, clear methods and many others which can be easily addressed. The items collections for the combobox works in a similar manner to those of many controls which include items collections. An example using the combobox control http://www.startvbdotnet.com/controls/combo.aspx Best advice is to try it out and play with the control - ...Show All
Visual Studio Express Editions The Newbie Guide to Installation of Visual Studio 2005 Express Edition (Dont do the mistake I did!).
Just 2 days back I had downloaded Visual C# 2005 Express Edition from the link below http://msdn.microsoft.com/vstudio/express/visualcsharp/download/ I was in a hurry to download it and straight away clicked on the DOWNLOAD NOW link on the Right Panel. Now what that does is it installs an Installer onto your system,around 3 MB and then you have to Connect to the net and then download the entire package which inturn runs the setup. So today I wanted to take the back-up of those files,only to find that there are no Setup Files located in my Directory There was a Directory Called Visual Studio Express Edition 2005-ENU.I tried to run the setup directly..but it hanged. So what if your computer crashes or you need to b ...Show All
Windows Forms Checking If Date Value Is Null
Hi all, I have been trying to check whether a date value stored in a databae table is null and if so to display an " N/A " value in the datagrid. This is a brief look at the code which i have been using: ------------------ Dim dateValue As String = AdminRptDSet.Tables(1).Rows(PrimaryCourseHeaderCount)("Date Assessment Completed").ToString ' If dateValue.ToString.Equals("") Then row(8) = "N/A" End If ------------------ I should probably be using a Date Type variable instead of a string but not sure how to code around the date type. Any ideas Thanks Thats for the quick reply and tried your suggestion, though its recognising all the records as Null. Any ...Show All
Windows Forms MTAThread and AutoComplete
I need to use the WaitHandle.WaitAll and TextBox.AutoCompleteMode. The problem is that the first requires MTA and the latter STA . Is there any way around this rich Hi Rich, Based on my knowledge, to invoke a method on UI Control on the main thread from another thread, we recommend you use the Control.Invoke which is implemented by SendMessage. Due to the Winform is not thread safe, we do not recommend you put it into MTA thread. Also .NET do have more payload than Win32, because if the .NET code underlyingly call the unmanaged code, it need P/invoke or COM interop marshalling(if .NET code call an unmanaged COM, we also need marshaller). Also for .NET code to run, the .NET runtime need to JIT the MSIL to nat ...Show All
