microsoft.public.dotnet.languages.csharp group



TOPIC: inheritance vs xml
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/032c8793e51035e1?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 8:44 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 9:54 am, csharpula csharp <csharp...@yahoo.com> wrote:
> Hello!
>
> I have inheritance between classes which are the result of xml
> serialization.
> My question is how can I insure in serializaion stage that the hierarchy
> in xml is according to inheritance hierarchy in classes?
>
> Thank you very much!
>
> *** Sent via Developersdexhttp://www.developersdex.com***

Hi,

Can you give more details? it;s not very clear where is your problem.





==============================================================================
TOPIC: Code Snippet Respository
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/f8726326aaa294d4?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 8:46 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 11:43 am, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.com> wrote:
> On May 12, 10:38 am, StreamLogic <company.i...@streamlogicinc.com>
> wrote:
>
>
>
>
>
> > All,
>
> > I'd like to hear how other developers/architects keep track of old
> > scripts, code snippets, relevant URLs, etc.  I think most developers
> > have an area where they keep reusable code they would like to use
> > again.  Year after year, we all develop things that can be reused in
> > various projects.
>
> > Do you simply have a file system folder where you dump all of this
> > information and then search on it?  Do you have a custom database
> > solution for this?
>
> > I'd like to hear how others are keeping track of many years worth of
> > code snippets and scripts that they would like to reuse at some point.
>
> > Thanks,
> > Curtis
>
> Hi,
> I do remenber reading in the MSDN mag. a code repository-sharing
> plugin for VS. It was in a "ten tool a developer needs" or some
> similar title, do a search for it- Hide quoted text -
>
> - Show quoted text -

Found it:
http://msdn.microsoft.com/en-us/magazine/cc300778.aspx

CodeKeep is the name





==============================================================================
TOPIC: C# act on enter key in a TextBox
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/d1a03f12767fd99c?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 8:48 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 8:08 am, kere...@gmail.com wrote:
> Hi!
>
>    I have a Textbox and would like to commit a search on the text
> entered in it if someone wrote something in and than pressed the Enter
> key.
>
> What is the best way to do that?
> What event should I use?
>
> Thank you in advance,
> Keren

Take a look at Form.ProcessCmdKey





==============================================================================
TOPIC: Importing from excel
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/3195a92735182d50?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 8:50 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 7:51 am, Cdude <camelj...@yahoo.com> wrote:
>  OleDbConnection excel1 = new OleDbConnection();
>
> excel1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=C:\\Documents and Settings\\Jed\\My Documents\\pro cd\
> \testsheet.xls;Extended Properties=Excel 8.0;";
>                 OleDbDataAdapter fillds = new OleDbDataAdapter("SELECT
> Barcode,Part_Count,Cycle_Time FROM [Sheet1$]", excel1);
>
>                 System.Data.DataTable ds = new
> System.Data.DataTable();
>                 fillds.Fill(ds);
>
> This is the code i am using but i am getting this error when i execute
> the fill statement.
>
> External table is not in the expected format.
>
> What am i doing wrong here?Please help. thanks in advance

Hi,


I have posted in the past code to read from excel in the way you want,
do a search in the archives by "ignacio machin" excel code and you
should find it





==============================================================================
TOPIC: Best Practice on surveys and wizards
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/0235bc1703ed90c9?hl=en
==============================================================================

== 1 of 2 ==
Date: Mon, May 12 2008 8:46 am
From: "Robert Bravery"


HI all,

Where can I find some best practices on web surveys and also wizards. Things
like maximum questions per page, lenght of questions, type of answers given,
Ie interativty like dropdowns and chackbox, and radiobuttons.
I have a possible client, but his original survey has like 100 questions per
page. I want to be able to show him whether or not this is the best way of
doing things. Do users like scrolling through hundreds of questions, or do
they prefer a few questions per page, and then navigate those pages.

THis site will be done in c# and possible be a DNN site

Thanks
Robert





== 2 of 2 ==
Date: Mon, May 12 2008 11:21 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 11:46 am, "Robert Bravery" <m...@u.com> wrote:
> HI all,
>
> Where can I find some best practices on web surveys and also wizards. Things
> like maximum questions per page, lenght of questions, type of answers given,
> Ie interativty like dropdowns and chackbox, and radiobuttons.
> I have a possible client, but his original survey has like 100 questions per
> page. I want to be able to show him whether or not this is the best way of
> doing things. Do users like scrolling through hundreds of questions, or do
> they prefer a few questions per page, and then navigate those pages.
>
> THis site will be done in c# and possible be a DNN site
>
> Thanks
> Robert

Hi,

This is a C# NG so "usually" we tend to respond question regarding the
C# language, your question is not related to C# you might want to find
a more appropiated NG





==============================================================================
TOPIC: Solution
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/1ad825e8f0291272?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 8:54 am
From: Vijay Modi


Hi,

You can find the solution on the followng path:

http://vijaymodi.wordpress.com/2008/05/12/biztalk-the-configuration-section-for-logging-cannot-be-found-in-the-configuration-source/


Regards,
Vijay Modi





==============================================================================
TOPIC: Building .NET 3.0
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/5c5ef9abb9cac22e?hl=en
==============================================================================

== 1 of 3 ==
Date: Mon, May 12 2008 8:58 am
From: "Mike Schilling"


I recently installed the .NET 3.0 framework (behind the time, I know), and
am seeing an issue building it.

Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build
things.  Since the assemblies added in 3.0 aren't in the 2.0 directory tree,
their names need to be fully qualified, so I wind up with command lines
like:

csc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication
Foundation"\System.Runtime.Serialization.dll ParseXml.cs

Did I miss some way to simplify this, or is that just how it works?







== 2 of 3 ==
Date: Mon, May 12 2008 9:25 am
From: "Scott M."


Just a small correction about your question: it doesn't relate to
"building", it relates to "compiling".  Building is taken care of by
msbuild.exe and is a different than compiling.

As for your compiling, are you using a version of Visual Studio?  If so, you
shouldn't have to do any command line work.




"Mike Schilling" <mscottschilling@hotmail.com> wrote in message
news:%23X8gSkEtIHA.5472@TK2MSFTNGP06.phx.gbl...
>I recently installed the .NET 3.0 framework (behind the time, I know), and
>am seeing an issue building it.
>
> Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build
> things.  Since the assemblies added in 3.0 aren't in the 2.0 directory
> tree, their names need to be fully qualified, so I wind up with command
> lines like:
>
> csc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication
> Foundation"\System.Runtime.Serialization.dll ParseXml.cs
>
> Did I miss some way to simplify this, or is that just how it works?
>
>
>






== 3 of 3 ==
Date: Mon, May 12 2008 11:18 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 11:58 am, "Mike  Schilling" <mscottschill...@hotmail.com>
wrote:
> I recently installed the .NET 3.0 framework (behind the time, I know), and
> am seeing an issue building it.
>
> Because 3.0 doesn't upgrade csc.exe, I'm still using the 2.0 csc to build
> things.  Since the assemblies added in 3.0 aren't in the 2.0 directory tree,
> their names need to be fully qualified, so I wind up with command lines
> like:
>
> csc /r:"c:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication
> Foundation"\System.Runtime.Serialization.dll ParseXml.cs
>
> Did I miss some way to simplify this, or is that just how it works?

Out of curiosity, why don't you simply install 2008 express?





==============================================================================
TOPIC: Olap cube as a Data Source
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/f0b0d06733549df9?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 9:12 am
From: Mark


Hi -

Is is possible to connect to a data source that is an OLAP Cube?

If so what are the steps that are needed to "Add New Data Source"?

Thank you,
Mark





==============================================================================
TOPIC: Labels with graphics?
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/b5b0e064c098931a?hl=en
==============================================================================

== 1 of 4 ==
Date: Mon, May 12 2008 9:41 am
From: raiderdav


> There is no such a control in the framework, imagine, what if instead
> of one you want two images?, or how to indicate the position of the
> images?
> But it's not difficult to implement, you could create a control that
> is compose of two labels and one PictureBox

Thank you both for the comments.  It looks like I'll need to create a
Label-Image-Label control for myself.

The icons/images that I need to display are all very simple.  I'm also
considering creating a custom font character for each icon, but I
suppose that will be difficult to color properly as fonts are all
single colored, and there is no way to color individual characters
within a single label (or is there?).

Thanks,
dave




== 2 of 4 ==
Date: Mon, May 12 2008 8:44 am
From: "clintonG"


Build it using CSS lame-o ;-) but I'm curious why you wouldn't just use an
ImageButton control?


"raiderdav" <raiderdav@gmail.com> wrote in message
news:d8c41e8e-abaa-4223-a788-775ff56a474e@p25g2000pri.googlegroups.com...
> Is there a common way to embed a graphic or icon into a label?  I want
> to have something like "Press <<IMGBTN1>> To Continue" or "Press
> <<IMGBTN2>> For Help".
>
> Normally I'd just create a graphic for the whole string, but this will
> be translated in multiple languages and I want to keep the images
> generic and only translate text.





== 3 of 4 ==
Date: Mon, May 12 2008 11:17 am
From: raiderdav


On May 12, 10:44 am, "clintonG" <nob...@nowhere.com> wrote:
> Build it using CSS lame-o ;-) but I'm curious why you wouldn't just use an
> ImageButton control?
>

Haha - thanks for the tip.  Actually, some HTML style tags would be
handy for this.

If I make it an image button, then when it is translated to different
languages I need to have a different image for spanish, french,
german, etc, and call the appropriate image based on the language in
use.  This is for a handheld device (Compact Framework) so I need to
minimize the number of images and file sizes.




== 4 of 4 ==
Date: Mon, May 12 2008 11:26 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 11:44 am, "clintonG" <nob...@nowhere.com> wrote:
> Build it using CSS lame-o ;-) but I'm curious why you wouldn't just use an
> ImageButton control?

Hi,

Good point, OP: is this a web or a win problem?





==============================================================================
TOPIC: ANN: VS2008 NET35 SP1 Beta
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/c409830368950b38?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 9:37 am
From: "Thomas Scheidegger"


Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta

Blog
<URL:http://blogs.msdn.com/somasegar/archive/2008/05/12/visual-studio-2008-and-net-fx-3-5-sp1-beta-available-now.aspx>

Downloads
<URL:http://msdn.microsoft.com/en-us/vstudio/cc533448.aspx>

KB Release notes and list of fixed issues
<URL:http://support.microsoft.com/kb/945140/en-us>


soon:

VS2008 SP1 (Beta)
<URL:http://www.microsoft.com/downloads/details.aspx?FamilyId=CF99C752-1391-4BC3-BABC-86BC0B9E8E5A&displaylang=en>

Express Editions with SP1 (Beta)
<URL:http://www.microsoft.com/downloads/details.aspx?FamilyID=bdb6391c-05ca-4036-9154-6df4f6debd14&displaylang=en>

Setup .NET 3.5 SP1 (Beta)
<URL:http://www.microsoft.com/downloads/details.aspx?FamilyID=8c36aca4-e947-4760-9b05-93cac04c6f87&displaylang=en>

Full Pack .NET 3.5 SP1 (Beta)
<URL:http://www.microsoft.com/downloads/details.aspx?FamilyId=23516C63-2DB2-4E7F-AABA-32B12D6E025C&displaylang=en>

.NET 3.5 Client Profile (BETA)
<URL:http://www.microsoft.com/downloads/details.aspx?FamilyID=4f7ae6fe-f4d1-4196-a372-80eab6d56332&displaylang=en>




--
 Thomas Scheidegger - 'NETMaster'
 http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/






==============================================================================
TOPIC: Passing DBTransaction between functions in Bus Layer
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/383129d1262f9be1?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 9:53 am
From: "Chevron Boyde"


Hi all

I have a function setup in my Bus Logic Layer similar to the following
function ProcessOrders
function InsertOrder
function InsertOrderItems

I need to be make sure all functions use the same Transaction (Enterprise
Lib DbTransaction object) between method calls.

How shoudl I lat this out?

Cheers

S






==============================================================================
TOPIC: Altova v2008r2
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/a66433d9788ccfad?hl=en
==============================================================================

== 1 of 2 ==
Date: Mon, May 12 2008 11:06 am
From: announce@altova.com


Greetings!

Just a brief note to let you know about Release 2 of Altova's v2008
product line. From very large file support, to new functionality for
working with OOXML and more, a few of the new features are:

* Very large file support in XMLSpy XML editor
* Support for Java, C#, JavaScript & VBScript in the XSLT engines in
XMLSpy
* Advanced find & replace in XML Schema editor in XMLSpy
* Support for (integration with and code gen for) Visual Studio 2008
in XMLSpy
* Mapping Excel 2007 (OOXML) data to XML, DBs, EDI, etc., in MapForce
* Word 2007 (OOXML)  output from XML and DBs in StyleVision
* BPMN diagrams in UModel
* Diff/merge support for Office 2007 (OOXML) docs in DiffDog
* Global Resources support across multiple tools
* And much more

More details, including screenshots: http://www.altova.com/whatsnew.html
Download an upgrade or free trial: http://www.altova.com/download.html




== 2 of 2 ==
Date: Mon, May 12 2008 11:26 am
From: billsahiker@yahoo.com


On May 12, 12:06 pm, annou...@altova.com wrote:
> Greetings!
>
> Just a brief note to let you know about Release 2 of Altova's v2008
> product line. From very large file support, to new functionality for
> working with OOXML and more, a few of the new features are:
>
> * Very large file support in XMLSpy XML editor
> * Support for Java, C#, JavaScript & VBScript in the XSLT engines in
> XMLSpy
> * Advanced find & replace in XML Schema editor in XMLSpy
> * Support for (integration with and code gen for) Visual Studio 2008
> in XMLSpy
> * Mapping Excel 2007 (OOXML) data to XML, DBs, EDI, etc., in MapForce
> * Word 2007 (OOXML)  output from XML and DBs in StyleVision
> * BPMN diagrams in UModel
> * Diff/merge support for Office 2007 (OOXML) docs in DiffDog
> * Global Resources support across multiple tools
> * And much more
>
> More details, including screenshots:http://www.altova.com/whatsnew.html
> Download an upgrade or free trial:http://www.altova.com/download.html

How large is large?

I tried to download the prior version to a windows98 machine and it
reported the download failed. tried it twice. I have to download to
that machine then move it to a development machine which has no
internet connection and install it there. the dev machine is xp pro.
so another issue is getting the registration code emailed to the win98
machine which will not be able to run the program. Any suggestions?

Bill





==============================================================================
TOPIC: Get image from MessageBoxIcon
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/8aea1415aa22dec1?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 11:16 am
From: Rui Oliveira


I want use icons available in MessageBoxIcon to use them in a PictureBox
control.

How can I do this?

There are a way to get this icons from MessageBoxIcon, or I need to have
this images saved in a files to use them in a PictureBox control?

Thks,
Rui Oliveira





==============================================================================
TOPIC: User pressing TAB or Enter to advance to next field on a form
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/6b625168b075e293?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 11:22 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 11:37 am, eljainc <elja...@sbcglobal.net> wrote:
> Hello,
>
> I have a perplexing situation. I am using Visual Studio 2005 SP1 and
> have created a simple form with two or three textboxes on them. They
> are not multi-line text boxes. I would like the behavior of them to
> advance to the next control when Tab or ENTER is pressed. However I
> cannot seem to change the property to do this. Sure I could write a
> KeyDown event handler to mimic this, but why invent the wheel?   Can
> someone shed some insight into this? Is there another property that I
> am not seeing? I have tried AcceptsTab and AcceptsReturn, but those do
> not seem to have any effect on the tab/enter working.
>
> Thanks
> Mike

Tab should by by default, take a look at TabIndex property.
For Enter you must use Form.ProcessCmdKey (or KeyDown event)





==============================================================================
TOPIC: Equivalent of Shellexecute in csharp ?
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/4556042913586f79?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 11:48 am
From: "Ignacio Machin ( .NET/ C# MVP )"


On May 12, 7:38 am, "Diego Armando Maradona" <Some...@Somewhere.Co.Uk>
wrote:
> Hi,
>
> I am using toshiba tec sx8 thermal printer for printing our labels,
>
> in My old Delphi application I was using such code;
>
>     ShellExecute(0,'open',Data.cmdbuffer, PChar('/c copy
> '+ExtractFilePath(Application.ExeName)+'PRINTER\ZZ3.PRN
> '+dmoMain.PRINTER+':'), nil, SW_HIDE);
>
>     frmStockCardReport.QuickRep1.Preview;
>
>     ShellExecute(0,'open',Data.cmdbuffer, PChar('/c copy
> '+ExtractFilePath(Application.ExeName)+'PRINTER\ZZ2.PRN
> '+dmoMain.PRINTER+':'), nil, SW_HIDE);
>
> After writing new program on .net, How can I write equivalent of above codes
> ?
>
> Thanks

There is a Process class you can use.

Additiobnally try to print directly from C#, There is a serial port
class that I think you can use for that.





==============================================================================
TOPIC: Creating New Threads to Show a Splash and Login Screen
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/9bf16777df817b9e?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 11:54 am
From: "Ignacio Machin ( .NET/ C# MVP )"



> Can anyone offer a suggestion to what i am doing wrong or if someone
> has a better way of doing what im trying to then please let me know :)

Check the archives for "Ignacio machin" "splash screen"
I have posted code for doing this exactly.





==============================================================================
TOPIC: IEnumerable objects are essentially arrays, right?
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/3f98344137cc00de?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 11:54 am
From: Jon Skeet [C# MVP]


gnewsgroup <gnewsgroup@gmail.com> wrote:
> Thank you very much.  I have downloaded sample chapter 6 of Mr.
> Skeet's book.  I hope it'll de-confuse me on this issue.

Cool - do post again if it doesn't help though, as much for my benefit
(in terms of improving future editions of the books) as for yours!

--
Jon Skeet - <skeet@pobox.com>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com





==============================================================================
TOPIC: Creating a manifest file? PublicKeyToken ??
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/bb478029b0cfd71a?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, May 12 2008 12:03 pm
From: wildman@noclient.net


I'm having to create a manifest.xml file so I can deploy a webpart
into a Sharepoint server.

I need to plug in a PublickeyToken for the assembly.. where do I get
this?

<SafeControl Assembly="HelloWorldWebPart, Version=1.0.0.0,
Culture=neutral,
       PublicKeyToken=?????"
               Namespace="MyWebPartLibrary" TypeName="*"/>
       </SafeControls>



When I was deploying manually i was adding this line into a webconfig
and using value of null.. why is the PublicKeyToken important?

Thank you for any help or information.

No comments: