 |
 |
Index ‹ DotNet ‹ Net Framework
|
- Previous
- 1
- ADO >> nvarchar Sql data typeHi
If the table column is defined as folows:
FullName nvarchar 20
Does this let me add a string of maximume 20 characters? or is it limited to
20 bytes length?
Thanks,
Ronen
- 2
- Net Framework >> Short display for long filenamesHello,
as most of you know, some programs that handle files have a "recent files"
feature, that is mostly a menu item within the file menu that shows the
last documents the user had opened. Visual studio .net gives you an
example.
This example shows as well that long filenames will be displayed shortened
to fit the menu item, e.g.
C:\Documents and settings\John Doe\My files\XYZ\document.xyz
might be displayed as
C:\Documents and settings\ ... \XYZ\document.xyz
As I would like to have this feature in my own brilliant and amazing
helloWorld-application, too, I'm wondering if there isn't a function in
the .net framework that returns the shorter version of a full path that
exceeds a specified length.
Of course, it is possible - actually for me - to parse the string for
myself, but I would not like to reinvent the wheel.
Just to prevent misunderstandings: I don't mean that kind of short filenames
returned by the GetShortPathName-API-function like "C:\Documn~1\John~1" ...
So: Did I overlook something in the .net documentation?
Regards Daniel
--
http://www.bolege.de
E-mails to specified address will NOT be read.
Please use db[at]bolege[dot]de instead.
- 3
- ADO >> about typed datasets (conceptual question)hi ,
I am using ado.net with typed datasets and typed datatables
my question is about how to handle child / parent type tables with datasets.
For instance say that I have 2 tables with columns :
table Topic: (parent table)
TopicId
TopicName
CreateDate
table Message : (child table)
MessageId
TopicId
Message
CreateDate
When I need to use these 2 tables from the asp.net code I am using
databinding to bind data to a datagrid
My problem starts here because :
When I need these two tables in joined way . (say that I am listing messages
in the datagrid and I need TopicName in each row)
In classic way , it is easy join these two tables and write the necessary
databinding code.
select Message.*, Topic.TopicName from Message inner join Topic on
Message.TopicId=Topic.TopicId
But when I use typed datasets How should I fill these two tables ? ( You
can say that fill these 2 tables seperately but what if I need only the
TopicName column ? isn't it a performance decrease for the system ? do I
have to ignore it ? ) Also I would like to benefit from typed dataset
architecture.
Is there any good document or web page address about this issue ? How should
I write stored procedures ?
- 4
- Dotnet >> Multi-parameter stored procedure (query in Access)Is it possible to use a multi-parameter query in .NET
Here's the method
Public Function SearchCatalog(ByVal searchString As String, ByVal allWords As String) As OleDbDataReade
' Create the connection objec
Dim connection As New OleDbConnection(connectionString
Dim command As New OleDbComman
' We guard agains bogus values here - if we receive anythin
' different than "TRUE" we assume it's "FALSE
If allWords.ToUpper = "TRUE" The
' Create and initialize the command object and search all word
command.CommandText = "SearchCatalogAllWords
command.Connection = connectio
command.CommandType = CommandType.StoredProcedur
Els
' Create and initialize the command object and search any word
command.CommandText = "SearchCatalogAnyWords
command.Connection = connectio
command.CommandType = CommandType.StoredProcedur
End I
' We eliminate separation character
searchString = searchString.Replace(",", " "
searchString = searchString.Replace(";", " "
searchString = searchString.Replace(".", " "
' We create an array which contains the word
Dim words() As String = Split(searchString, " "
' wordsCount contains the total number of word
Dim wordsCount As Integer = words.Lengt
' index is used to parse the list of word
Dim index As Integer =
' this will store the total number of added words
Dim addedWords As Integer =
' We allow a maximum of 5 word
While addedWords < 5 And index <
' We add the @searchWord parameters her
If addedWords < wordsCount The
addedWords +=
' Add an input parameter and supply a value for i
command.Parameters.Add("@searchWord" + addedWords.ToString, words(index)
Els
addedWords +=
' Add a blank input paramete
command.Parameters.Add("@searchWord" + addedWords.ToString, ""
End I
index +=
End Whil
' Open the connectio
connection.Open(
' Return a SqlDataReader to the calling functio
Return command.ExecuteReader(CommandBehavior.CloseConnection
End Functio
Here is the query
SELECT Product.ProductID, Product.Name, Product.Description, Product.SKU, Product.Price, Product.ImagePat
FROM Produc
WHERE (((Product.Name) Like "*"+[@searchWord1]+"*")) OR (((Product.Description) Like "*"+[@searchWord1]+"*"))AND (((Product.Name) Like "*"+[@searchWord2]+"*")) OR (((Product.Description) Like "*"+[@searchWord2]+"*")) AND (((Product.Name) Like "*"+[@searchWord3]+"*")) OR (((Product.Description) Like "*"+[@searchWord3]+"*")) AND (((Product.Name) Like "*"+[@searchWord4]+"*")) OR (((Product.Description) Like "*"+[@searchWord4]+"*")) AND (((Product.Name) Like "*"+[@searchWord5]+"*")) OR (((Product.Description) Like "*"+[@searchWord5]+"*"))
- 5
- Dotnet >> Cannot create a asp dot net projectI have 2 developper machine running visual studio 2003 and Windows
2000.
On the first machine (Machine A) I may create a new asp project without
problem. On the second (Machine B) I cannot create a new project.
Visual Studo create the project but not the initial files and freezes.
But I may create a new project from Machine A using the web server of
machine B.
I have checked the access rights of both servers, the access rights on
directory wwwroot and inetpub.
Everything seems the same.
Thank you for help
Patrick
- 6
- 7
- Visual C#.Net >> Regasm.exe Interop problemI have a dll built with c# in VS.net and Register
for COM interop is set to true. This builds
fine on my xp development machine and
the dll output is used by a User defined
function in sql server. This all works
fine until I put the dll on a production server
(small business server) then register it
(without error) using regasm.exe. I get
an error message stating "The system cannot
find the file specified". The differences between
my two environments are VS.Net on my deveopment
machine and not on the SBS server and using
VS.net's build to output and register the dll as opposed
to regasm on the SBS Server. It is possible that
both machines have a different version of the framework
which I cant check from my current location.
Any Help greatly appreciated.
Simon
- 8
- Winforms >> System.Windows.Forms.WebBrowser and PDFI tried to show an pdf on the WebBrowser.
I use this code:
this.webBrowser1.Navigate(@"C:\Path\PDFName.pdf");
I get all the time this Error message as an pop-up:
An error has occurred in the script on this page
Line 2
Char 1
Invalid character
Code: 0
URL: file://C:\Path\PDFName.pdf
Do you want to continue running script on this page?
Have anyone an idea?
Tahnks a lot
mjeh
- 9
- Visual C#.Net >> PRB: Can not get UserControl/HTML/OBJECT to work on XP/SP2/IIS/IE6PRB: Can not get UserControl/HTML/OBJECT to work on XP/SP2/IIS/IE6
Please help,
I can not get my UserControl to work from a simple OBJECT tag in a simple
HTML web page on Windows XP with SP2 and IIS. I have made UserControls
before, but for whatever reason, XP/SP2/IIS/something is not letting the web
page run the UserControl, giving an error of "Object doesn't support this
property or method". Here are the steps to reproduce:
Step 1) In XP/IIS create a virtual directory (VD) that runs ONLY scripts (NO
EXECUTABLES).
Step 2) Make this simple HTML page and put it in the VD from above.
=====================
<html>
<body>
<object
id=objTest
classid="http:MyControl.dll#MyNamespace.MyControl"
VIEWASTEXT
>
</object>
</body>
<script language=javascript>
var objTest;
objTest = document.getElementById("objTest");
var csHello = objTest.RunTest("Hello");
alert(csHello);
</script>
</html>
=====================
Note that the OBJECT tag's classid is set with "http:" in the front. Trying
it without this will still generate the same error.
Step 3) Create a C# UserControl app called MyControl, with the namespace
"MyNamespace", and add a method called "RunTest" to take a string as its only
parameter, and return the same string.
=====================================
Something about IE, XP, IIS is preventing the script from getting the
"RunTest" method. What can I do.
- 10
- ADO >> GUIDsThis is a multi-part message in MIME format.
------=_NextPart_000_0114_01C3B8DB.576D5F00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I usually use numerics with a random number generator for my unique ID =
fields in my tables, however I have an instance where I would like to =
use GUIDs (since this key will never be used or seen by the end user). =
Here is the start of my code:
Dim myGuid1 As New Guid()
JrEventID =3D myGuid1.ToString
txtEventID.Text =3D JrEventID
How do I generate a new GUID? Is is a simple process?
Thanks for the information.
Brad
------=_NextPart_000_0114_01C3B8DB.576D5F00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I usually use numerics with a random =
number=20
generator for my unique ID fields in my tables, however I have an =
instance where=20
I would like to use GUIDs (since this key will never be used or seen by =
the end=20
user). Here is the start of my code:</FONT></DIV>
<DIV>
<P><FONT face=3DArial size=3D2> Dim myGuid1 As New=20
Guid()</FONT></P>
<P><FONT face=3DArial size=3D2> JrEventID =3D=20
myGuid1.ToString</FONT></P>
<P><FONT face=3DArial size=3D2> txtEventID.Text =3D=20
JrEventID</FONT></P>
<P><FONT face=3DArial size=3D2>How do I generate a new GUID? Is is =
a simple=20
process?</FONT></P>
<P><FONT face=3DArial size=3D2>Thanks for the information.</FONT></P>
<P><FONT face=3DArial size=3D2>Brad</FONT></P></DIV></BODY></HTML>
------=_NextPart_000_0114_01C3B8DB.576D5F00--
- 11
- ADO >> NewRowBuilderHi,
We want different row types at the same time in a DataTable. The idea behind
this is to support a kind of inheritance in a table. To do this, we had
overridden the NewRowFromBuilder method. Then we select the row type
construction using a special column that contains the type of the database
record type. All row type inherit from DataRow, but they have a common set
of columns and additional columns according to each type. Top base class is
TPersons
TCustomers and TEmployees inherit from TPersons
TSpecializedCustomers inherits from TCustomers.
Actually we have succeeded using the following code at the Fill time. When
we the Merge and the GetChanges method, will get the following message "This
row has been removed from a table and does not have any data. BeginEdit()
will allow creation of new data in this row." at the line A. I know that
methods called by Fill are not the same as the GetChanges method.
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
TPersonsRow newBaseRow = new TPersonsRow(builder);
(A) string RowType = (string)newBaseRow[columnRXClassType];
if (RowType == "TEmployees") { return new TEmployeesRow(builder); }
if (RowType == "TCustomers") { return new TCustomersRow(builder); }
if (RowType == "TSpecializedCustomers") { return new
TSpecializedCustomersRow(builder); }
return newBaseRow;
}
I just want a idea of how I can overcome this issue. We already did
implement the same concept in earlier version of ADO and now we are trying
to migrate to ADO.NET. But we are not sure, the thing is we cannot migrate
if we cannot support inheritance like we have already done.
Thanks!
- 12
- ADO >> Ideas on storing and retriving files in a Windows ApplicationI'm looking for some ideas, I have a project to complete that has a
requirement to store just about ANY type of document. Most common documents
include Word, Excel, HTML, images, pdf, media files, etc. I was thinking of
storing these into SQL Server 2000 as image type but my delimma lays with
retrieval. I was thinking of using a Microsoft Web Browser control to
display the item to the user. This works ok for 2 reasons, 1. The browser
will open the appropiatte application to display the file and 2. I can just
use the Navigate(2) method to display the item. The problem with this I
don't want the requirement of storing the item to a file (filestream) before
displaying (Navigate needs somewhere to go). I was thinking of memoryStream
but I see no good examples (other than image files) on how to do this,
espcially on how to handle large files. Is this a good approach? Or should
I just stick with files stored on the server?
THANKS
--
Ken Beard
MCSD, MCP
- 13
- Visual C#.Net >> Microsoft Visual C# 2005 - missing watch windowCould anyone tell me why I cannot bring up the watch window. MS help
says its there but no matter what I do, I cannot find any settings to
enable this debug missing menu item. Searched Google, asked others and
one other said he could not find it either. Usually MS says that you
need enterprise or whatever if a feature is missing but in this case
there is no comments - it just should be there!
Thanks,
Alistair.
- 14
- Net Framework >> Timer control vs Timer classI included a timer control in my C# project, I got the following 2 events
1. Disposed
2. Tick
I included the timer class programatically in the same C# project and I got
the following events
1. Disposed
2. Elapsed
I am stumped..:-( whats going on here? I have framework 1.1 with VS.NET
2003
VJ
- 15
- Winforms >> How can one select from overlapped panels in the form design View?I am building a Windows Form App that has a splitter in the client area,
treeview on the left, and panels on the right. Different classes of tree
nodes need different views. How can I cause the one I want to work on (say
add or remove a control) to pop to the top of the z order in the design
view? I have tried about everything I can think of, without success. Bring
to top and send to bottom do not seem to do what I expect. Google revealed
nothing. Any help would be much appreciated.
|
| Author |
Message |
Lee,

|
Posted: Sat Jul 15 01:30:00 CDT 2006 |
Top |
Net Framework >> .NET one way Remoting
As a client I am sending data using a OneWay method to a server.
What happens if the client is sending messages faster than the server can
consume them?
Who is responsible for holding the queue?
If the object sending is a WellKnownObjectMode.Singleton what happens if I
send another message before the last one completes?
And the same for a WellKnownObjectMode.SingleCall?
Is there any guarantee using IPC that the messages will get to the server in
the same order I sent them?
Ditto for TCP and HTTP?
Thanks
Tom
DotNet168
|
| |
|
| |
 |
Spam

|
Posted: Sat Jul 15 01:30:00 CDT 2006 |
Top |
Net Framework >> .NET one way Remoting
EMail@HideDomain.com wrote in news:vcYtg.219$EMail@HideDomain.com:
> Who is responsible for holding the queue?
When you use the oneway attribute, messages are fire and forget. The
receiving process will need to manage an incoming queue.
> Is there any guarantee using IPC that the messages will get to the
> server in the same order I sent them?
You should only use the oneway attribtue if you do not care about
reliablity. However for IPC I guess messages are delivered almost 100% of
the time - so I guess it should be safe to use. TCP/HTTP is a different
matter.
However, in general if you need to ensure delivery - don't use the one way
attribute.
> Ditto for TCP and HTTP?
>
|
| |
|
| |
 |
_|\|_0$P

|
Posted: Tue Jul 25 05:30:01 CDT 2006 |
Top |
Net Framework >> .NET one way Remoting
OneWay is a dangerous attribute in case of disconnected objects. If you fire
the OneWay method several times when the server is dead, your threadpool
might be spammed up to the point your program grinds to a halt.
Kind regards,
--
Tom Tempelaere.
"Spam Catcher" wrote:
> EMail@HideDomain.com wrote in news:vcYtg.219$EMail@HideDomain.com:
>
> > Who is responsible for holding the queue?
>
> When you use the oneway attribute, messages are fire and forget. The
> receiving process will need to manage an incoming queue.
>
>
> > Is there any guarantee using IPC that the messages will get to the
> > server in the same order I sent them?
>
> You should only use the oneway attribtue if you do not care about
> reliablity. However for IPC I guess messages are delivered almost 100% of
> the time - so I guess it should be safe to use. TCP/HTTP is a different
> matter.
>
> However, in general if you need to ensure delivery - don't use the one way
> attribute.
>
> > Ditto for TCP and HTTP?
> >
>
>
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Net Framework |
- Next
- 1
- Visual C#.Net >> Easy Question, I hope... regarding add-insHi -
I'm new to the Vstudio environment and am learing C# express. I want
to use the Pinvoke.net, freebie, add-in, however, I do not see how to
*install* an add-in from within the IDE. Is this even possible with
the express version? If so, how do I do it? The pinvoke.net addin
comes with two DLL files and an .ADDIN file, which appears to be an XML
file.
Any help you could provide would be appreciated.
Thanks
Jim
- 2
- Visual C#.Net >> Query re ADO.NET, constraints, relations, and cascading updates/deletesOne part of a customer project I'm working on involves what seem
like fairly straightforward updates to a set of related tables.
While I've developed software for a number of years (it only seems
like centuries on days like this <grin>), I'm new to C# and ADO.NET
and I'm running into problems with record deletions.
I (think I am) applying ForeignKeyConstraints correctly. I'm not
applying DataRelations (yet), but those _appear_ to be related to
record retrieval rather than record deletion. Yet my "Cascade"
Rules don't appear to be having the effect I want, that of deleting
child records relating to the parent (Employee) record I'm
attempting to delete.
My fallback is to do it myself: starting a transaction and then
"tree-walking" in my procedural code to delete child and grandchild
records. Is that my only choice? Or am I doing something obviously
wrong, omitting something critical, or simply performing the right
steps in the wrong order?
Any hints will be appreciated (including "it doesn't work in .NET
2003, wait for .NET 2005-or-RealSoonNow(tm)").
Rather than post a set of clips from about eight modules (so far),
let me lay out what I'm attempting to do and ask whether I seem to
at least be approaching the problem correctly.
----
Imagine I have a staff of employees, each with zero or more Phone
Numbers (office, home, cell, etc.) and zero or more Skills. Each
works on zero or more Projects, and each Project has zero or more
Deadlines:
Employees: Employee_ID (Primary Key, autoincrement),
Employee_Name, etc.
PhoneNumbers: Phone_Item_ID (Primary Key, autoincrement),
Employee_ID, Phone_Number, etc.
Skills: Skill_Item_ID (Primary Key, autoincrement),
Employee_ID, Skill_Description, etc.
Projects: Project_ID (Primary Key, autoincrement),
Employee_ID, Project_Name, etc.
Deadlines: Deadline_ID (Primary Key, autoincrement),
Project_ID, Deadline_Date, Deadline_Description,
etc.
The relationships are fairly straightforward (using [1:M] because I
can't find an "infinity" symbol on my keyboard):
Employees--[1:M on Employee_ID]--PhoneNumbers
Employees--[1:M on Employee_ID]--Skills
Employees--[1:M on Employee_ID]--Projects
Projects---[1:M on Project_ID]---Deadlines
I can load all of the tables from the database into a DataSet using
a set of OleDbDataAdapters, one per table. I can browse the
Employee table. But when I attempt to delete a row from the
Employee table, even my best attempts to date continue to yield an
error message equivalent to "The record cannot be deleted or changed
because table 'Skills' includes related records."
At startup, I load each table into my (one) DataSet 'dset':
// Set up the commands and TableMappings
da_em = new OleDbDataAdapter();
da_em.SelectCommand =
new OleDbCommand("SELECT * FROM Employees", conn);
cb_em = new OleDbCommandBuilder(da_em);
da_em.TableMappings.Add("Employees", "em");
(4 more similar sections of code, once for each remaining table)
// Fill the table Schema and Tables
da_em.FillSchema(dset, SchemaType.Mapped, "Employees");
da_em.Fill(dset, "Employees");
(4 more similar sections of code, once for each remaining table)
// Apply constraints
// Employees [1:M] Skills
fkc_em_sk = new ForeignKeyConstraint(
"Employees_OneToMany_Skills",
dset.Tables["em"].Columns["Employee_ID"],
dset.Tables["sk"].Columns["Employee_ID"]
);
fkc_em_sk.DeleteRule = Rule.Cascade;
fkc_em_sk.UpdateRule = Rule.Cascade;
fkc_em_sk.AcceptRejectRule = AcceptRejectRule.Cascade;
dset.Tables["sk"].Constraints.Add(fkc_em_sk);
(3 more similar sections of code, once for each remaining FK
constraint)
dset.EnforceConstraints = true;
conn.Close();
Later, when I'm attempting to delete an Employee record, I use the
following code:
// Following the Remarks section under "DataSet Class [C#]"...
// Issue Delete for current record
dset.Tables["em"].Rows[currentposition].Delete();
// Extract changes
DataTable dt = dset.Tables["em"].GetChanges();
if (dset.HasErrors) {
PgtCommon.PgtPopUpMsg("Errors in EditEmployee deletions");
}
// Use changes to update DataSet
**daem.Update(dt); // Apply this change via DataAdapter
dset.Merge(dt);
dset.Tables["em"].AcceptChanges(); // GONE
The ** line marks where the exception occurs.
For what it's worth, the deletion process works just fine when the
Employee records _don't_ have any child/grandchild records.
As I said, any clues will be appreciated.
Frank McKenney, McKenney Associates
Richmond, Virginia / (804) 320-4887
Munged E-mail: frank uscore mckenney ayut minds pring dawt cahm (y'all)
--
Literature exists for the ordinary educated man, and any
literature that actively requires enormous training can be at best
of only peripheral value. Moreover, such a mood in literature
produces the specialist who only knows about literature. The man
who only knows about literature does not know even about
literature. -- Robert Conquest, "The Dragons of Expectation"
--
- 3
- Net Framework >> Windows .Net 2.0 Application - Exception from HRESULT: 0x80070542We have installed an .Net 2.0 windows application onto one of our clients
PC's and we are experiencing some problems. When the application starts it
tries to connect to a database in order to retrieve some information.
Given below is an extract of the thrown error:-
"System.IO.FileLoadException. Could not load file or assembly
'System.Transactions.............' or one of it's dependencies. Either a
required impersonation level was not provided, or the provided impersonation
level is invalid (Exception from HRESULT: 0x80070542)"
We believe that this error occurs due to the permission's of standard
clients domain users, as if you log onto the client PC with administrator
privileges the application can connect to the database without a problem.
This assemblies are installed into the GAC on the PC, other .Net GAC
assemblies run on the PC ok.
I do not no anything about restrictinng desktops, therefore what
restrictions would be within the user accounts to prevent this. Any ideas
will be most appreciated as I am currently at a total loss
- 4
- Microsoft Project >> Automatically Adjust DurationHow do I set Project to automatically adjust Estimated duration to fit to the
times tasks actually took place?
I am also unable in several cases to tell Project that a task completed on a
certain date. It will either set an unwanted constraint, or tell me there's a
conflict and fail to adjust any other task accordingly. I have construction
projects that have the house being roofed after the customer has moved in!
I do apologize for asking so many questions on this board, but I definitly
need the help! Thank you.
- 5
- Dotnet >> Free Copies of Visual Studio 2005 and SQL Server 2005 at Launch TourMicrosoft is posting that they will be giving away free versions of
Visual Studio 2005 and SQL Server 2005 to every attendee at their
launch event. Does anyone know the specifics on the versions they will
be giving out???? Pro, enterprise, gasp.. express...
Here's a link to the site. Not much other information seems to be
availible.
http://www.microsoft.com/events/2005launchevents/default.mspx
Thanks
- 6
- Net Framework >> WebBrowser control in .NET 2.0 and Windows 2000 doesn't work...Hi,
We have recently moved our application to using .NET 2.0 and having fixed
all
the things indicated by errors and warnings and everything works great.
However....
We switch to using the new WebBrowser control for displaying some
auditing information as HTML (transformed from XML). Problem is on
Windows 2000 SP4 the WebBrowser control does not display it correctly.
Instead of getting nice pretty information you just see the raw HTML as if
the control thinks it's text and not HTML. On Windows XP it works fine.
I don't really want to go back to using the old MS COM Interop add-in to
do this.
Tried updating a test Windows 2000 Pro SP4 machine with all the updates
that were available (inc. those for IE and .NET 2.0) but the issue remains.
Anybody else had this issue and found a solution?
Regards,
Peter
- 7
- ADO >> Using IDataAdapter to fill a strongly-typed datasetWe're using abstract interfaces for the data access in our classes. We're
using strongly-typed datasets when using data adapters.
We can use a SqlDataAdapter to fill a strongly-typed dataset using the Fill
method, but we can't get the same result if we've cast the object to an
IDataAdapter's fill method.
Is it possible to fill a stronly-typed dataset using the interface?
Thanks.
--ROBERT
- 8
- Microsoft Project >> Split task tasks won't shorten?I have split tasks in my projects where the split was lengthened, then
later shortened. While the normal blue bar ends at the correct,
earlier date, there is a trail of dots following the to the right of
the end of the blue bar, and the tasks finish date is the date where
the trail of dots ends, not where the blue bar ends. I want the finish
date to be the end of the blue bar, and to remove the trail of dots to
the right of it. Has anyone seen this before? Anyone know a fix for
this?
Dave Bellamy
Bellamy Consulting
- 9
- Dotnet >> <file> element of Clickonce application manifestHi,
I'm adding an icon file programmaticlly to a Clickonce application manifest.
How do I, or what classes do I use to, generate the SHA1 hash of the file?
I looked into using the SHA1 property of an instantiated Hash class. However
the Hash constructor only accepts an instance of type Assembly.
Thanks,
--
Kenneth Lemieux
Project Engineer
Whelen Engineering Co., Inc.
- 10
- 11
- Visual C#.Net >> Control Questionhi
how would I do the following :
i have a control which has a property which is an array of that control...
i.e. kinda like how a treenode has treenode's as children
but i want to be able to only add controls which are already on the form ...
i'm guessing i would need to write some kinda collectioneditor - but i
don't know how to do this...
can anyone help me???
thanx
g
- 12
- 13
- Dotnet >> Constructor on type 'System.Resources.RuntimeResourceSet' not foundOur application has received this exception. It is a Win32 service that
runs 24/7. The app has been in the field at various sites for about 3 yrs
and we have never seen this error until now. Does anyone have any insight?
I didn't have any luck googling it.
Thanks.
-- Alan
System.MissingMethodException: Constructor on type
'System.Resources.RuntimeResourceSet' not found.
Source: mscorlib
HResult: -2146233069 (0x80131513)
System.MissingMethodException: Constructor on type
'System.Resources.RuntimeResourceSet' not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Resources.ResourceManager.CreateResourceSet(Stream store,
Assembly assembly)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetObject(String name, CultureInfo
culture, Boolean wrapUnmanagedMemStream)
at System.Resources.ResourceManager.GetObject(String name)
at xxx.InitializeComponent()
at xxx..ctor(xxx xxx)
- 14
- Visual C#.Net >> A question about Windows serviceHello!
I think I might need to use windows service. I just read about it on the
Web.
In one place it says the following
"Some custom actions need to occur when installing a Windows service, which
can be done by the Installer class."
I just wonder can somebody tell me what kind of custom actions need to occur
when installing a windows service.
//Tony
- 15
- ADO >> C# Create Excel sheet -> Could not find installable ISAMI am using C# / ADO.NET to create an Excel sheet:
This connection string works:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filename + ";" +
"Extended Properties=Excel 8.0;";
This connection string DOES NOT:
...
"Extended Properties=Excel 8.0;HDR=YES;";
=> Error: Could not find installable ISAM
Remark: I've tried ";HDR=YES;" and ";HDR=YES"
Honestly I do not understand how this is related?
Regards HW
|
|
|