Sarah c's Q&A profile
.NET Development Is there not one single example like this in the WORLD?
Hi all, Examples are usually the best way to learn. So what I don't understand is why there isn't an example of what I need anywhere in the world! Or is there What I need is this: A *complete* (end-to-end) example of a database driven Windows application. It can not be based on datasets as they are slow and not built for object oriented programming, nor are they suitable for large applications. I need an OR mapper tool to help out. The example don't have to be complicated, I'd be happy with a typical order, order details form with a customer form. Here's a detailed list of what I need: -Windows Forms application in Visual Studio 2005 - ...Show All
SQL Server There is a way to use an arbitrary parameter in OLAP Report (not associated with a dimension)?
I'm using a lot of parametrized reports. But yesterday I want to make a report which takes a boolean parameter to do something like this: WITH MEMBER [Measures].[ShowU$SMeasure] AS ''+@show+'' MEMBER [Measures].[ShowingData] AS 'IIF([Measures].[ShowU$SMeasure], [Measures].[Amount], [Measures].[Tons])' ... ... ... If I pass true then show U$S else Tons. But the report want to associate a parameter with a dimension. Finnaly I solved this from the report, adding 2 calculated fields. But this runs slower than the first thought. Another thing I couldn't do was to put a parameter in a datetime picker and format the date to use it ina ...Show All
Visual J# ObjectInputStream - cast exception
Hi; I make the call: ObjectInputStream ois = new ObjectInputStream ( new FileInputStream (serFile)); Document correctDoc = ( Document ) ois.readObject(); And get the exception: 1) testTemplates(net.windward.format.wordml.test.TestWordMLParser)java.lang.ClassCastException: Unable to cast object of type 'System.Byte[]' to type 'System.Object[]'. at java.io.ObjectInputStream.fillArray(Object obj, Int32 len, Class elemType) at java.io.ObjectInputStream.readObject() at java.io.ObjectInputStream.fillArray(Object obj, Int32 len, Class elemType) at java.io.ObjectInputStream.readObject() ...Show All
Visual C# Folder Browser
Hi, I need to implement a web control similar to FolderBrowserDialog but I don't know how to start. Can anyone give me a hint Thanks a lot Ran Thanks for your answer. I tried to google for a while but I did not found any adequate answer. I may try it again. Ran ...Show All
Visual Basic vb 2005 command window question while debugging
seems that in vb 2003, if you had a break point and were using a command window to check on some values, that it used intellisence.. so you didn't have to type everything in. in vb 2005.. either it doesn't have the intel or i don't have it turned on. Anyone know how to turn it on.. not the command window. but the intel sense thanks shannon Hello, It should still be there; in my immediate window it pops up intellisense by default; I didn't change any settings. ...Show All
.NET Development New Rows do not appear in SQL database
Hi all, I am busy with a project that requires I store information in a database. I'm using VS2005 Express and SQL Server 2005 Express. My problem is no matter what I try I can't get inserted data to appear in my SQL database. I believe I have setup everything correctly, I have a DataSet (smsdataDataSet) and TableAdapter (smstableTableAdapter) setup, the code I am trying is listed below: smstableTableAdapter.InsertQuery(MyGuid, SMSMessage.SMSOrigin, SMSMessage.SMSMessage, null, "SMSMessage",DateTime.Now); smstableTableAdapter.Fill( smsdataDataSet.smstable) ; smsdataDataSet.smstable.AcceptChanges(); smstableTableAd ...Show All
Visual Studio Team System Sharing issue in VSTS Source control
Hello guys, I'm trying to migrate our VSS database to VSTS Source Control and I don't really understend how can I make "sharing" happen at VSTS For example we have next VSS source tree: $root |-DummyProject |-Includes |-ProjectA |-ProjectB Both of them have shared files from <Include>. My question is: What is an alternative for us in VSTS in terms of do not re-organize our current code Thanks a lot guys. Two basic ways: Use different relative paths. Let's say your layout is: $/root |-Common |-CommonLib1 |-CommonLib2 |-DummyProject |-ProjectA |-ProjectB |-Includes |- [C ...Show All
Windows Forms Retrieving Property Values with Reflection
I am trying to loop though all of the properties in a control and retrieve the Property Names and Property Values. The Property Names are easy: Dim pi As PropertyInfo dim str as string For Each pi In TextBox1.GetType().GetProperties(BindingFlags.Public) str = str & pi.Name Next However I have problems extracting the Values. I have tried several ways to use t ...Show All
Visual Studio Tools for Office Problem resizing charts
Weird problem... Using excel to create a very basic chart then emailing the exported image as part of a reporting tool. Chart is created fine but when I go to resize it the chart is resized to 0 dimensions. Works fine in dotNet 1.1 but not in 2.0. I would like to use 2.0 for the nice System.Net.Mail functionality. Here is the code snippet. Not urgent but very annoying. string name = null ; Excel. Application excel = new Excel. ApplicationClass (); Excel. Workbook workbook = excel.Workbooks.Add( Type .Missing); Excel. Worksheet ws = (Excel. Worksheet )excel.ActiveSheet; excel.UserControl = ...Show All
SQL Server what is [SQL-DMO]
in computer management, when i expand the branch of my sql2005 express, i got a error message. it seems i cant register my server, but i cant login in sqlcmd i also installed sql2000, and it works fine... could anybody help really strange This will never work. You need to use Management Studio (full or Express) to connect to SQL Server 2005. We have a bug file on our side to determine why the server is being registered. If we fix the server registration problem, you still will not be able to connect to SQL Server 2005 through this means. Peter ...Show All
Windows Forms Hide certain standard control's properties from designer
Hi, I created a custom control which inherited from Forms.Button. There's no problems to create & expose custom properties but... I cant find anyway to hide the standard Button's properties... Note that I'm using J# Thanks override the property, apply the Browsable(false) attribute. . . call the base property to access it. this is c#, but the approach should be the same: public partial class MyTextBox : System.Windows.Forms. TextBox { [System.ComponentModel. Browsable ( false )] public override string Text { get { return base .Text; } se ...Show All
Visual Basic Monitor the player position
First I would say that am just a beginner, so my questions will may sounds dumb. And am not sure if that is the correct forum to post my question. I would like to monitor the current position of my AxWindowsMediaPlayer So I will be able to rise events according to the time. I first try to do with a timer, so I can simulate the track length against the time. But it is just making the all thing much more complex. So am trying to avoid that approach. The problem is that I can’t find any event that always monitor the current position of the player. I have try to use the PositionChange But it is only working wh ...Show All
SQL Server ExecuteSQL Fails from Variable
I am executing the following statement to setup a database: IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'WTemplate') BEGIN ALTER DATABASE [WTemplate] SET SINGLE_USER WITH ROLLBACK IMMEDIATE DROP DATABASE [WTemplate] END GO CREATE DATABASE WTemplate ON PRIMARY ( NAME = N'WTemplate', FILENAME = N'D:\MSSQL\MSSQL.1\MSSQL\DATA\WTemplate.mdf' , SIZE = 2048KB , FILEGROWTH = 1024KB ) LOG ON ( NAME = N'WTemplate_log', FILENAME = N'D:\MSSQL\MSSQL.1\MSSQL\DATA\WTemplate_log.ldf' , SIZE = 1024KB , FILEGROWTH = 10%) GO EXEC dbo.sp_dbcmptlevel @dbname=N'WTemplate', @new_cmptlevel=90 GO EXEC WTemplate.[dbo].[sp_fulltext ...Show All
Visual J# method to cast to/from ubyte[]/byte[]
Hi; I know I can copy a byte array to a ubyte array using System.Buffer.BlockCopy. But since the actual data is identical in both arrays, and I have some large arrays, is there a way to just case a byte[] to a ubyte[] thanks - dave Hi Dave, It seems that is the only way to do that. It needs to be noted that Java as such do not support unsigned types so expecting anything from the compiler directly wont be possible. Will take a look at it further and let u know if i find anything more on this. Thanks, Varun ...Show All
Visual Basic use flash within vb.net application
I have developed a simple application, my friend designed a startup flash animation (.swf file) for me, but i have no idea how to combine this file with my application so that it will appear every time when i run the exe file of my application. plz help Here's how WaitForExit works.... Process.WaitForExit () Instructs the Process component to wait indefinitely for the associated process to exit. Supported by the .NET Compact Framework. Process.WaitForExit (Int32) Instructs the Process component to wait the specified number of milliseconds for the associated process to exit. Supported by the .NET Com ...Show All
