Logins and User groups
Is there any way I can create a Group from .Net code? Obviously assuming the
user is an administrator.
Cheers
Sparky Tag: How to: Launch application AND open the "triggering" file Tag: 59178
Licensing, trials etc
Is there a class library that allows me to implement licensing into an
appliation, and disable it after a set period etc? Tag: How to: Launch application AND open the "triggering" file Tag: 59176
creating an exe that starts without framework
is there a way to create *.exe files which have been coded in C# and
run without an installed .net Framework?
Sebastian Erler Tag: How to: Launch application AND open the "triggering" file Tag: 59175
ComboBox.DataSource .Net v1.1.4322: Problem to assign new datasource
Hello,
I have set the datasource property of a combobox control to an own
type which iherits from CollectionBase.
The first time the assignment works fine but when I try to reassign an
updated version my Collection to the datasource, the datasource
remains unassigned.
With the former framework version it worked fine but with 1.1.4322 the
reassignment is not working.
Does anybody know what the reason for this behavior is?
Thanks for your help in advance,
best wishes,
Stephan
Code Excerpt:
BatchEntries batchEntries = mQueue.Entries;
this.cmbEntries.DataSource=null;
if (batchEntries.Count>0)
{
this.cmbEntries.DataSource=batchEntries;
this.cmbEntries.DisplayMember="DisplayName";
} Tag: How to: Launch application AND open the "triggering" file Tag: 59173
Exchange server and dev
Hi
From within ASP.NET is one able to access exchange server? more specifically
we need the address books/distribution lists, must also be able to maintain,
add, delete, update, etc to that addresss book.
Is this possible? if so where do i start looking to dev such an app?
Thanks
Jason Tag: How to: Launch application AND open the "triggering" file Tag: 59172
Finding the current executing directory
This may sound pretty trivial but it's been driving me nuts; how does one
get the full directory path of the executing application. Using
Environment.CurrentDirectory returns c:\WINNT\System32 - the obviously wrong
path :-(.
This is a Windows development issue so HttpRequest.PhysicalApplicationPath
does not apply. Any suggestions will be appreciated.
Regards, Raphael. Tag: How to: Launch application AND open the "triggering" file Tag: 59165
GAC question
Hi,
Case of two applications adding the same strong name assembly to the GAC,
and one application removes the assembly from the GAC while uninstalling,
will the other application still have the assembly in the GAC?
Thanks, Hagay. Tag: How to: Launch application AND open the "triggering" file Tag: 59158
p2p
I have to write something VERY similar to Kazaa.
Is there something I could use to do some estimation of development time? Is
there anything done on the subject in c#? I couldn't find anything handy in
google for c#.
any pointers?
thanks,
Matias Tag: How to: Launch application AND open the "triggering" file Tag: 59150
Is there .NET Framework for 64-bit platform?
Hi:
Any one knows if there is .NET Framework for Windows Server 2003 (64-bit) ?
Thanks Tag: How to: Launch application AND open the "triggering" file Tag: 59138
DataGrid -- when do selected rows end up on clipboard?
Hi,
I would like to understand when a selected cell, selected row or
selected rows in the DataGrid control ends up on the clipboard. All I
know is that the selection ends up on the clipboard, because when I
issue a copy command then paste to an editor, the selected datagrid
cell(s) end up on the editor.
Maybe a better way of stating my question is during what event (e.g.
MouseUp) do the selected cells end up on the clipboard (I assume via
the Clipboard.SetDataObject() method call.)
Thanks in advance.
Maggie Tag: How to: Launch application AND open the "triggering" file Tag: 59134
Read content from an Excel file via a .NET application
I am looking for good documentation and preferably C#
sample code to show how to read content from an Excel
file via a .NET (Windows Form or ASP.NET) application.
I want to access the file via the Excel object model (for
Excel 2003) from my application. My .NET application
will provide a filename and location, open the excel
file, read content from specific locations within the
spreadsheet, then close the file.
I have searched MSDN and GotDotNet and seen documentation
for the Excel object model and several code samples. But
the paradigm seems to be different in most of these
examples, in that they are tuned for responding to events
when a user opens an Excel file, rather than the paradigm
being that my .NET application will proactively open an
Excel file.
I'm relatively new to C# and to .NET, so forgive me if my
question is not phrased in correct terminology.
Thanks for any help,
Cheers,
Bruce Tag: How to: Launch application AND open the "triggering" file Tag: 59132
Blocking with TCP Sockets
I have a C# program that uses blocking sockets and want to allow the user to
stop the server. The problem I am having is the socket blocks on
--------------------------------------------------------------
listener = new System.Net.Sockets.TcpListener(6254);
listener.Start();
//skt is a socket
skt =listener.AcceptSocket(); <--- this line blocks
--------------------------------------------------------------
I attempt to stop the thread as follows
--------------------------------------------------------------
if (thListener.ThreadState != System.Threading.ThreadState.Stopped)
//thListener is the offending thread
{
try{listener.Stop();} //this always works
catch{System.Diagnostics.Trace.WriteLine("issue");}
thListener.Abort();
thListener.Join(2000);
}
--------------------------------------------------------------
I get the following error
--------------------------------------------------------------
System.Net.Sockets.SocketExchange: A blocking operation was interrupted by a
call to WSACancelBlockingCall
at System.Net.Sockets.Socker.Accept()
at System.Net.Sockets.TcpListener.AcceptSocket()
--------------------------------------------------------------
this error is in an OK-only popup box with no title and appears to be coming
out of the "listener" thread
I have not been able to find any information onWSACancelBlockingCall and was
hoping someone else has an idea how to prevent that popup.
Thanks in advance,
~Logan Tag: How to: Launch application AND open the "triggering" file Tag: 59131
Public encryption
Hi
I'm currently developing two applications (in VB.NET)
that shall communicate in a secure way. As a matter of
fact, I wanted to use the RSA public key infrastructure
for this. One application creates a public and a private
key and sends the public key to the other application (I
only need one-way-communication), so that this one is
able to send encrypted messages to the first application.
Now, I've read about the RSA Cryptographic Provider in
the documentation, but I still don't get how to extract
the public key out of such an instance so that I can send
it. How can I create a public and a private key
correctly? Can anyone help me with this?
Thanks
Sam Tag: How to: Launch application AND open the "triggering" file Tag: 59124
sockets question
Hi,
I'm building an proxy server app, and I have a question. I
want to provide a bandwidth limit function, and I wonder
if the way I'm doing it is right. If I want to limit the
download bandwidth of a socket to, let's say, 100
bytes/sec, when that socket receives some data, I read it
all (let's say 500 bytes) and then I wait 5 seconds until
I read again from the socket. I wonder if it would be
better to just read at most 100 bytes every second... (if
yes, how do i do this?). The communication is TCP, so I
wonder when does the socket tell the remote peer that
packets have arrived, exactly when they arrive, or when my
app reads data from the socket?
Thanks a lot,
Andrei Matei
andreimatei@home.ro Tag: How to: Launch application AND open the "triggering" file Tag: 59121
.NET redistributable and Languages
Can the .NET language packs be applied to non-English
versions of the .NET Runtime. FOr example, if the German
version of the .NET framework is installed, can a
French .NET language pack be applied? Tag: How to: Launch application AND open the "triggering" file Tag: 59120
shortcut files
How do you programmatically create a shortcut file to an
existing executable? I am using C# and .NET
Thanks Tag: How to: Launch application AND open the "triggering" file Tag: 59119
installutil.exe fails due to license.dll not found
I either dont know where to look, or havent found
anything on being unable to run installutil.exe
I have a plain vanilla Windows XP machine with VS .Net C#
7.0.
When i run installutil.exe (with params or not), i get an
error message:
"The application failed to start because license.dll was
not found. re-installing the applicaiton may fix this
problem
Has anyone seen this? what's the problem, and what's the
solution?
Thanks! Tag: How to: Launch application AND open the "triggering" file Tag: 59118
Moving from visual studio6 to .net
Hi everybody,
Currently we have .asp(on IIS4) app, back end is SQL
server, plus we have several desktop applications written
in VB6(I have Visual Studio6 on my machine).
We would like gradually to move everything to .NET.
First I would like to move .asp pages to .NET (test server
is Windows2003,IIS6).
As I understand I have to install .NET framework on my
machine. I am wondering if is safe to do it since I still
do development and fixes for .ASP and vb apps. I am
wondering if .net framework will not brake VB6 on my
machine?
Thank you very much
Diana M Tag: How to: Launch application AND open the "triggering" file Tag: 59115
Form to JPG / Capture Screen with .NetFramwork
Hi all,
I need to know If I can convert to JPG or If I can capture the Form and
store it in .jpg o .bmp .
I want to "capture" the view status of Form of my application and store it
in .jpg file
Can anyone help me ?
I haven't found information about ...
nullman Tag: How to: Launch application AND open the "triggering" file Tag: 59114
HELP! Can't get the column that has error on dataset.update
I have the sample code from the microsoft site and it
doesn't work. I am updating a database using a sql
dataadapter. I add a new row and call the update which
causes an error of 'String or Binary Data Would Be
Truncated' err# 8152. OK- so I use the following code:
' String or binary data woould be truncated
If sqlex.Number = 8152 Then
Dim Row As DataRow
' Loop through the rows to find the error
For Each Row In ds.Tables(0).Rows
' If the row has errors the get the columns
If Row.HasErrors Then
Dim ColArray() As DataColumn
Dim ColCount As Integer
' Get the columns that are in error
ColArray = Row.GetColumnsInError()
' Loop through the columns with errors and produce
the column names and rowerror
For ColCount = 0 To ColArray.GetUpperBound(0)
Msg += " Row=" + Row.ToString + " :
ColumnName=" + ColArray(ColCount).ColumnName + " :
MaxLen=" + _
ColArray(ColCount).MaxLength + " :
RowDataLen=" + Len(Row.Item(ColArray
(ColCount).ColumnName)) + _
" : RowError=" + Row.RowError
Next
End If
Next
End If
PROBLEM ColArray.GetUpperBound(0) = -1 ???????
there is no data in the ColArray ??????????
HELP! thanks in advance Tag: How to: Launch application AND open the "triggering" file Tag: 59105
Inheritance trees
Does anyone know where I could find documentation on inheritance tress for
objects in the framework..
Example;
ServicedComponent inherits from ContextBoundObject which inherits from
MarshalByRefObject...
I don't know if that the exact flow or not but I'm sure you get the
picture....
TIA
Dan Tag: How to: Launch application AND open the "triggering" file Tag: 59104
Windows 98 debugging
What are my options to debug a Windows-98-specific bug in
my C# app? I have Visual C++ 6.0 and the .NET SDK (not
Visual Studio .NET), and a standalone Windows 98 test
computer (not near my development computer).
The .NET SDK (with its debuggers) won't install on Windows
98. Is there any way to run the CLR (GUI) debugger
(DbgCLR.exe) on the Windows 98 test machine? I tried
copying DbgCLR.exe to the test machine but it won't run
standalone that way. Can the command-line debugger
(Cordbg.exe) run on Windows 98? Or must I use remote
debugging?
Does the standalone Visual C# product contain the remote
debugger or must I buy the full Visual Studio .NET? Tag: How to: Launch application AND open the "triggering" file Tag: 59103
ASP.NET HotFix Rollup download
article 821156 discusses the download for the Hotfix
Rollup. Where is the download? I need it to help meet
Section 508 Accessibility guidelines
thanks Tag: How to: Launch application AND open the "triggering" file Tag: 59102
VB NET Exam PLEASE HELP
Hi. I am an amateur VB.net enthusiast. I currently work as a carpenter
and I moonlight on the weekends as a photographer. I'm trying to
transition a career change.
Is there an exam that leads to certification in VB.net like there is with Java?
How much of the exam will rely on memorization? How much will be from
programming skill? How do they measure my programming ability from one
exam? Tag: How to: Launch application AND open the "triggering" file Tag: 59098
exchange server 2003
The ability to use the calender function in exchange server 2003 is it
possible to access the same functionality from asp.net? If that
function works I guess the rest of them will too. I am wondering if we
can access it from our intranet or mobiledevices...
If its possible, how does one access the exchange srv. with different
user etc.
Thanks up front - I will sleep better when I know if the works or not
:0) Tag: How to: Launch application AND open the "triggering" file Tag: 59092
Use reflection to determine subtype
I can use the following to determine the Type of the current instance.
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType
What I want is the Type of the sub class instance. Any ideas? Here's an
example.
namespace myNamespace
{
public class A
{
protected Type myType =
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType;
protected Type myChildType = ????
}
public class B : A
{
}
}
When I create and instance of B, the myType member is a Type with name
"myNamespace.A". I want the myChildType member to be the Type with name
"myNamespace.B". Any ideas?
I DO NOT want to modify class B.
Thanks
Derrick Tag: How to: Launch application AND open the "triggering" file Tag: 59082
Framawork SP2 and Framework 1.1
What are the differences between the two version and what is the most
recent?
Thanks Tag: How to: Launch application AND open the "triggering" file Tag: 59078
Framework 1.1 installed but.....
I have 1.1 of the .Net Framework but in my .Net references all the
namespaces i.e System.Data.Dll etc are showing a version of 1.0.3300.0 but
in C:\WINNT\Microsoft.NET\Framework\v1.1.4322 I have a version of this dll
of 1.1.4322.573, why hasn't 1.1 overridden the 1.0 files? Tag: How to: Launch application AND open the "triggering" file Tag: 59077
Help
Hi,
I am developing a windows application in C# using Visual Studio .Net IDE.
The application has a standard Menu bar which is visible on the top of the
screen.
The items of the Menu bar are
1. File
2. Edit
3. Tools
4. Help
Short cuts are also there for user to select a menu item.
Now I am facing a peculiar problem which I believe I had not faced with
applications developed using Visual C++ or Visual Basic (Visual Studio 6.0
or earlier). If I select a menu item, for example I select "Edit" and I use
right arrow key to move to other main menu items. After I reach "Help", I
expect "File" menu item to be selected in case I again press right arrow
key. But the application is showing the Windows form control menu ( with
options such as "Restore","Minimize etc.). Same issue is there if I use left
arrow to navigate the menu items.
I have tried it a few times on a variety of applications and I am getting
the same error. It would be great if someone could help me to solve the
problem. I believe probably some configuration has to be done in the windows
form as I do not believe Microsoft has left this issue to the programmers,
to write code to catch the event for right / left arrow movement.
Please help !
Gary Tag: How to: Launch application AND open the "triggering" file Tag: 59076
How to cause a line break in a textbox?
I have a multiline textbox to display a char string.
How do I make the textbox break at a certain position
of the char string. I try putting '\n' in the char string,
but it doesn't work. Tag: How to: Launch application AND open the "triggering" file Tag: 59067
Portability
What classes are portable and what are not, I would say WinForms is NOT
portable, what others are not portable? Tag: How to: Launch application AND open the "triggering" file Tag: 59063
multiple output directories
Hi group
i try to have 2 output for my app :
bin\debug
AND
..\MyDir\SomeWhere\
is it possible ?
thanks
ROM Tag: How to: Launch application AND open the "triggering" file Tag: 59062
Try on that patch which comes from the M$
--ivdrddiqvqdsk
Content-Type: multipart/related; boundary="wkozqdwjtegwd";
type="multipart/alternative"
--wkozqdwjtegwd
Content-Type: multipart/alternative; boundary="rsikvyniqwppxexi"
--rsikvyniqwppxexi
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Microsoft Partner
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to help protect your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run executable on your system.
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 2003 Microsoft Corporation.
--rsikvyniqwppxexi
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:ueedabr" BORDER=3D"0"><BR><BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft Partner<BR><BR>
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to help protect your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run executable on your system.
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:syczuvb" =
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:syczuvb" =
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:syczuvb" =
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:syczuvb" =
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:syczuvb" =
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