A friend of mine has an Excel file that she says used to look right until someone installed some things on her computer, and now it doesn't look the same. The problem is that the text in some of the rows overlaps the left and right edges of the cell (the text is centered). This only happens in...
I recently installed ASP.net 2.0 and was playing around with it yesterday. I created a web page on my local machine and everything was working fine. I published it to a web server on our network and that worked fine. Then I did *something*, I don't know what, and now when I try to load the...
I would like the user to be able to click on a group heading to show/hide the details section for that group. The problem is that when I configure the details section for drill-down, the drilled-down subreport appears on it's own page. I would like it to appear within the current page...
I have a textbox and a button within a repeater. The OnItemCommand sub of the repeater looks like this:
Sub RepeaterButtonSub(ByVal source As Object, ByVal e As RepeaterCommandEventArgs)
Dim RejectTxt As TextBox = CType(e.Item.FindControl("txtRejectNote"), TextBox)...
I have an event sink that moves spam into the user's junk folder. The problem is that I want to check if the user has created their own rule to handle spam, and if so, not do anything. The easy ways to deal with rules programatically all seem to use CDO. As far as I can tell, CDO requires you...
Put a button on a form and add this code in the click event:
Private Sub Command1_Click()
Dim x As Date
Dim starttime As Date
Dim endtime As Date
starttime = "5:00:00 AM"
endtime = "8:00:00 AM"
For x = starttime To endtime Step...
I'm writing code to add a user to the Active Directory and create an Exchange mailbox for that user. Here's what I have:
Try
Dim de As New DirectoryEntry("LDAP://server.domain.net/cn=users,dc=domain,dc=net", "administrator", "password")...
I'm writing code to add a user to the Active Directory and create an Exchange mailbox for that user. Here's what I have:
Try
Dim de As New DirectoryEntry("LDAP://server.domain.net/cn=users,dc=domain,dc=net", "administrator", "password")...
I have some macro-containing Excel sheets that will be distributed to all the employees in my office. I don't want the users to get the warning about macros when they open the file. Signing my code with a certificate seems like the way to accomplish this. I've created a certificate with the...
Is there some new .NET-approved way to get the color of a pixel in a window (a window external to my program). In VB6 I would do something like this using API functions:
GetCursorPos p
hwnd = WindowFromPoint(p.x, p.y)
deskhdc = GetDC(hwnd)
rgbVal = GetPixel(deskhdc, p.x, p.y)
retval =...
I know this has been asked before, and it's even in the MS KB (Q289493), but I just can't believe what it's telling me. My office just upgraded (almost) all of our users' computers to Windows 2000. I went around to all of them and installed my VB program (with the setup made by PDW) while...
We just upgraded our SQL 7 server to SQL 2000. When I open a table in enterprise manager, order the rows, and try to edit a field, I get the message "Cannot edit this cell". It doesn't happen for every table, and it only happens if the rows are sorted by certain columns. It's only...
I'm running SQL 7 on an NT box. My Windows 2000 desktop has Enterprise Manager 2000 installed (we're not quite ready to upgrade the server to 2000), and is what I use most of the time to maintain and administer the database. The problem is that it takes a ridiculously long time to add or...
I have a recordset-returning DataEnvironment command thats source is a stored procedure. The stored procedure looks something like this:
CREATE PROCEDURE sproc1 @var1 varchar(6) AS
<SELECT statement 1>
if @@rowcount = 1 return else
begin
<SELECT statement 2>
if @@rowcount > 0...
I have a program that makes extensive use of Apex's TrueDBGrid (ver 6) and minor use of Janus's Gridex (ver 1.6). I now have Janus Gridex 2000 and am giving serious thought to replacing my TrueDBGrids with Gridexs. The ability of Gridex to scroll rows as you use the scroll bar alone almost...
I have a stored procedure that looks something like this:<br><br>CREATE PROCEDURE sp_dosomething @param1 varchar(5) AS<br> if @param1 = "this"<br> select * from database1.dbo.table1<br> else if @param2 =...
Is there a way to search the text of my stored procedures in SQL 7 (or 6.5 for that matter) for a string? For example, I want to make sure I'm using "IS NULL" instead of "= NULL" in all my sprocs, so I want to be able to get a list of all the sprocs that have...
I'm using CR8. My report is based on a table. I have a parameter (@grant) that is used to filter the report; this is what my record selection formula looks like: {TEMP_WEEKLY_SCHEDULE.grant_name} = {?@grant}<br>The report works as expected in the Crystal Reports...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.