Richv5254's Q&A profile
Visual C# Coding Concepts
I read a tutorial once.. that actually showed me and explained to me how C# conding concepts goes ( I really dont know how to explain this.. so please forgive me if you dont understand ) for example If I wanted to know what a namespaces was.. and what comes after it... like.. Namespace, Class, function or is it... Namespace, Class, Class function or does it matter.. because I want to know.. how do you know when you have to create a new instance of a class Its like today.. I added using System.Collection; Generic.List<string> list = new List<string>(); but I got an error.. so I did... using System.Collection.Generic List<string> list = List<string>(); and it works. namespace MyNameSpace { class MyClass { ...Show All
Visual Studio Are templates possible?
I'd like to reuse a header and footer with all of my reports. I'll need to pass them a title (header) and application name (footer). Basically, I need a template. Is there a way to do this Using local (object) datasources. Thanks, Brett ...Show All
Visual Studio Tools for Office Create worksheet with precoded events attached?
Hi, If I have a class worksheet e.g. sheet1.cs. Is it possible to add multiple instances of this worksheet to a workbook For example if the user clicks a button a button a new sheet of sheet1.cs will be created each time with all previously coded events and controls associated with it Thanks in advance. Ben. Hi, Thanks for the reply. I have been trying to wire up events to a newly created worksheet today , but have so far been unsucessful. If you could point me to a link with an example of this or create a small code sample, it would greatly be appreciated. Thanks. Ben. ...Show All
SQL Server Way to run sqlexpress installer with commands from bootstrapper?
Is there a way to make the bootstrapper run a shortcut or the the sqlexpr32.exe with command line parameters There is no preinstall event and .msi's cannot be nested. Any ideas Which bootstrapper are you talking about SQLEXPR32.EXE supports all the command lines documented at http://msdn2.microsoft.com/en-us/library/ms144259.aspx . Check out the FAQ at the top of this forum, I have a link to how to configure SQL Express that has more information about command line install. Mike ...Show All
.NET Development How do I read mYsql data with ASP?
Windows 2000 Server, IIS5, ASP + M y SQL (MySQL, Not MS-SQL) It could be worked normally if all data is English, but once reads Chinese character, it all displays garbled " " Table name: test id username 1 microsoft 2 (4 chinese characters) Select * from test where username='(4 chinese characters)' No data. Select username from test where id='2' It shows Please let me know how to connect and read MySQL data correctly. Thanks are you getting this issue only when accessing using ADO.NET or always I found in the mySQL faq that this seems to be a common problem.... maybe this can help you: http://dev.mysql.com/doc/refman/5.0/en/cjk-faq.html Rgds Rodrigo ...Show All
Software Development for Windows Vista Visual Studio 2005 and extensions for .net 3
We are currently in the process of moving to .Net 2.0. We kind of just started. If we install the extensions will our programs that don't use WCF or WWF still be built against .Net 2.0 Thanks, Mike Hi Mike, Yes. The .NET 3.0 assemblies are an addition to the 2.0 assemblies and do not make any changes to them. Maurice ...Show All
Visual Studio 2008 (Pre-release) XAML code and C# code kept in sync
WPF is obviously a step in the right direction in enabling developers to make modern UIs, however Windows Forms still has quite a few advantages, the built in designer for once. Cider does not cut it (yet! ), and far less features then Blend. Blend and Visual Studio collaboration still has a long way to go also. I understand the need for XAML (to enable designers to do the ui without the need of strong programming skills) but for certain people like me developing dynamic UI in c# code is so much more intuitive and easy. Since XAML code is parsed and converted in c# code anyway, isn’t there an option to be able to edit this c# code directly (currently it is generated automatically from the xaml file so the modifications will be lost ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Gray Polygon (DrawPrimitives)
Hi, I'm currently using DrawIndexedPrimitives with data of type VertexPositionColor, and I've clearly set the colours but I always get a gray shape instead of the blend that I ought to see. Any ideas here please Thanks in advance. Ok good. :) Yes if you could post a short sample of how to do that, that would be great, thank you! (Since there are very few tutorials...) ...Show All
SQL Server Restoring sql server 7.0 database into sql server 2005 express - problem!
Hi! I'm a beginner w ith SQL Express and am having some problems. I am using 2005 SP1 and installed the SQL Server Management Studio Express as well. I have a backup from a SQL Server 7.0 database that I am trying to restore into my database using the management studio. When I try to restore from the file into my database, I get the error, System.Data.SqlClient.SqlError: The backup of the system database on the device D:\GMBeta2Local.bak cannot be restored because it was created by a different version of the server (7.00.1063) than this server (9.00.3033). (Microsoft.SqlServer.Express.Smo) Is this true Is there any way for me to get this data into my SQL Server 2005 express on my laptop hi, t ...Show All
SQL Server how to get the real boundary of "time" dimension of a subcube dynamically?
how to get the real boundary of "time" dimension of a subcube dynamically e.g. CREATE SUBCUBE [SMS2005] AS ( SELECT ( [time].[date].[date].&[2007-01-01T00:00:00] : [time].[date].[date].&[2007-01-10T00:00:00] ) ON COLUMNS FROM [SMS2005] ) go I want to create a global measure that show the stocks on the boundaries of the subcube'range (in this case , they are 2007-1-1 and 2007-1-10). Whenever a different new subcube (focused on time dimension) is built, this measure can behave differently based on the subcube. To this problem , I think the key is that how to get the real boundary of "time" dimension of the subcube dynamically in the definition of the globally wanted measure. Does anyone ha ...Show All
SQL Server Cannot compare data types of System.Int32 and System.String. Please check the data type returned by the filter expression
I have this filiter on my table in SQL Server Reporting Services 2005: =CInt(Fields!FeeGoal_AZ.Value) != 0 I get this error when trying to preview the report: "Cannot compare data types of System.Int32 and System.String. Please check the data type returned by the filter expression." I am not sure why it's comparing a string here. The data type for FeeGoal_AZ in the database table is Bigint I also tried =Iif(Fields!FeeGoal_AZ.Value = 0,True,False) != True Does anyone have the logic for why we have a default for 0 to be considered as a string and why the wierd !== operator......I would be obliged if anyone has the answer.....or ...Show All
Visual Studio Express Editions how can i have the text in options form textbox 1 2 3 and 4 be listed in conbobox1 form1 as drop list items
Hi I am new to programming and am trying to do the following. I have form1 with 3 comboboxes. I have an optionsform with 3 panels containing 4 textboxes each. I need the text in the textboxes on panel1 to list the text as the drop down list items in form1 combobox1. I need the text in the textboxes on panel2 to list the text as the drop down list items in form1 combobox2. I need the text in the textboxes on panel3 to list the text as the drop down list items in form1 combobox3. The list items on combobox1 2 and 3 would be saved to the my.settings so when the program is restarted the same list items will still show for combobox1 2 and 3. How can I do this. Thanks The following example shows how to save ...Show All
.NET Development Question about "getElementById"!Thanks!
i wrote these codes. <script language="javascript"> </script> <SCRIPT> function fnGetId(){ document.write(document.getElementById("asdf").innerText); document.write(document.getElementById("qwer").innerText); } </SCRIPT> <DIV ID="oDiv1">Div #1</DIV> <DIV ID="oDiv2">Div #2</DIV> <DIV ID="oDiv3">Div #3</DIV> <div id="asdf">Albert</div> <div id="qwer">Franklin</div> <INPUT TYPE="button" VALUE="Get Names" onclick="fnGetId()"> I try to get two innerText via getElementById. But it can not work like this. Why it can olny get one value. Does it work one time in function Only the first getElementById can run Than ...Show All
Visual Studio build skipped because Configuration isn't evaluated right
Done executing task "MSBuild". Task "MSBuild" skipped, due to false condition; ( ('$(Configuration)' == ' Release') and ('$(Platform)' == 'Any CPU') ) was evaluated as ( ('Debug' == 'Release') and ('Any CPU' == 'Any CPU') ). this is the command line: C:\sandbox\IAF.NET\IAF\trunk\src\BOs\Error>"C:\WINDOWS\Microsoft.NET\Framework\v 2.0.50727\msbuild" /v:diag the default config is Debug. I have tried forcing the configuration with /p:Configuration=Debug but that doesn't change the output. What am i missing ...Show All
Smart Device Development How to show a loading gif
Hello everybody, I want to create a gif while my app is connecting with the server. The tipical "loading" gif to say to the user that something is happening and you have to wait. Something like that: http://www.charitablegift.org/demo_files/images/loading.gif I have used Thread class but it doesn’t seem to work. Can you help me with an example Can you tell me what class do I have to use I am using VS 2005 Compact Framework. Thank you. Are you talking about the standard "Waiticon" on Windows Mobile In that case you can show it by: Cursor.Current = Cursors.WaitCursor; To remove it I believe it is...: Cursor.Current = Cursors.Default; If not, use the Intellisense on the Cursors enumeration.... Oystein ...Show All
