Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Sypher2
  • Content: Threads
  • Order by date
  1. Sypher2

    Excel e-mailing sheet missing cell colors

    I have a spreadsheet that I e-mail daily to internal staff. It has a lot of conditional formatting which change the cell background colors. All the colors and formatting have e-mailed fine. This month, I started a new spreadsheet. All coloring looks fine in the workbook, but e-mailing the...
  2. Sypher2

    Clustered index 99% fragmented after one insert

    I am by no means an expert DBA. We have a table with 6 million records. It has 4 indexes. One is a clustered primary key (consisting of 3 columns) and the other 3 are non-clustered on one column each. If I reindex the table, the fragmentation goes down to near zero on all 4 indexes...
  3. Sypher2

    Add workstation to network - slow on some NT servers, fast on others

    We have a large number of Windows NT servers. Each server is a separate LAN. If I connect a workstation's CAT5 directly to Server A, it will show up on that server's network quickly. If I do the same with Server B, it takes up to 2 minutes and sometimes will time out. I connected the...
  4. Sypher2

    Reverse video everything?

    Hello, This may sound a bit strange, but I am trying to reverse the video of everything on the monitor. Or at least reverse the video of my application. I had hoped there would be a display setting or monitor setting where I could just reverse the video. Setting color properties in code is...
  5. Sypher2

    Optimize class member layout needed? (Byte padding)

    In Visual Basic .NET is it necessary to pay attention to the layout of member variables? I know in C++ the order in which you declare your variable can have an affect on the amount of RAM used. This is because of byte alignment and padding. Example: Dim b As Byte '1 byte Dim i As Int32 '4...
  6. Sypher2

    Socket works once - cannot reproduce on step thru

    In a socket class I have a method which essentially does this: Declares a new socket Does a BeginConnect to connect to server (waits for connection) Sends data to the server (waits for send to complete) Receives a response from the server (waits for response to complete) Shuts down the socket...
  7. Sypher2

    Cannot programmatically change Listbox SelectedIndex after Drag/Drop

    I seem to be having trouble programmatically changing the SelectedIndex of a listbox after a Drag/Drop has completed. I have a source listbox and a target listbox. I click the left mouse button over an item in the source, hold the button down, then drag to the target and release. The code to...
  8. Sypher2

    Move data from one table to another - one column is changing

    I need to move data from one table to another. The two tables have identical structures. Obviously I can use: INSERT INTO Table 2 SELECT * FROM Table 1 However one column needs to change. Is there a way to plug in this new value during the INSERT INTO statement or am I stuck having to update...
  9. Sypher2

    String variable has no closing quote - why?

    I am currently reading information from a binary file. Whenever I do a ReadChars on the binary reader, I do not get a closing quote. For example (br is the instantiated BinaryReader): Dim tData1 As Int32 = br.ReadInt32 'Works Dim tData2 As String = br.ReadChars(15) 'Get 15 characters tData1...
  10. Sypher2

    BinaryReader.ReadChars() advancing position too far

    I have a BinaryReader that I am parsing data with. There are two elements included in the data that are 6 bytes of ASCII (null-terminated). Within the code I have: For i = 0 to 10 Dim tNum as integer = br.ReadInt32 Dim tConn as byte = br.ReadByte Dim tLo as string = br.ReadChars(6)...
  11. Sypher2

    Query help - Joining 2 tables...summing from one

    I have two tables. I want to write a SQL statement which combines info from both. I'm having trouble. Table 1 fields: 1. ID 2. Name 3. Stat_1 4. TimeStamp Table 2 fields: 1. ID 2. Stat_2 3. Stat_3 4. TimeStamp Table 1 will have one record per ID per TimeStamp. Table 2 may have multiple...
  12. Sypher2

    Close program - process remains and goes to 100% CPU

    I can't seem to figure out why this is happening... We have a program which displays a lot of data from a database. This program provides near real-time display of information. It reads from the database every 10 seconds and refreshes the screen. It also has various reports. If the program...
  13. Sypher2

    Can map a remote drive but cannot ping

    I can map a drive on a remote computer, but I cannot ping that remote computer. Pings just time out. I have 2 computers mapping this remote drive. One can ping fine and the other cannot. The TCP/IP properties appear identical. Can somebody offer advice why this is happening?
  14. Sypher2

    Blurring a line with GDI+?

    I would like to draw some lines using the Graphics class. That's the easy part. Is there a way to apply a blur to these lines? Something like a gaussian blur. The objective here is to make the lines appear "glowing" or fuzzy. I'm thinking I may have to draw a lighter shade of the same color...
  15. Sypher2

    Add server in Server Exporer - can same be done in code?

    When I use Server Explorer, I can right click "Servers" and get a context menu with "Add server...". I can then type in an IP address, username, and password. Then the server appears. This isn't really a share. It lets you view performance counters, SQL servers and such. I know adding a...
  16. Sypher2

    Server UID/PWD as well as SQL Server UID/PWD in connection string

    I have a remote SQL server on the LAN that I would like to connect to. The SQL server itself is password protected. This is no problem for an ADO.NET connection string. However, the server itself (the box) requires a Windows user name and password. I would like to pass this information so I...
  17. Sypher2

    Preventing security lockout on idle computer

    One of our computers runs an application which shows current productivity and condition of the facility. The application has very large numbers so the staff can do other work and still view it from a distance. The problem is after about 15 minutes of idle (no keystrokes or mouse moves from a...
  18. Sypher2

    Is there an event that still fires after crash?

    I have an application that uses an invisible instance of Excel. I would like Excel to close even if the application crashes. This is mainly for debugging since crashes leaves Excel processes running which have to be manually stopped in Task Manager. I had seen the OnHandleDestroyed event is...
  19. Sypher2

    Does a Windows.Forms.Timer run on a separate thread?

    I'm curious about the timer control. If I have 3 timer controls, will they all fire asynchronously and perform work on separate threads, or do they fire one after the other using the same thread?
  20. Sypher2

    Reading and writing to serial port--basic way

    I've got a serial port connection between a PC and an OpenVMS system. The serial port from the PC goes into a DEC-Server. Data comes across as straight ASCII. I want to send ASCII text across the serial port and receive the ASCII responses. I am using CreateFile to open the port which works...

Part and Inventory Search

Back
Top