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 strongm 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: *

  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

    It is set at 85. Here is the script that I got from it: ALTER TABLE [dbo].[DCO_Sessions_P] ADD CONSTRAINT [PK_P_DCO_Sessions] PRIMARY KEY CLUSTERED ( [Operator_ID] ASC, [Sys_Num] ASC, [Logoff_Time] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF...
  3. 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...
  4. Sypher2

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

    All the servers and the workstations are set to Auto.
  5. 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...
  6. Sypher2

    Reverse video everything?

    Yes, inverting the colors. I have considered capturing a screenshot and inverting the resulting bitmap. I had hoped the application itself could be inverted so a user could still use it rather than having an image of the application displayed. But this may be my only option. Unless there is...
  7. 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...
  8. 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...
  9. Sypher2

    Socket works once - cannot reproduce on step thru

    I figured it out. I have some ManualResetEvent variables. One for connecting, one for sending, and one for receiving. When each of these operations completed it would do a Set() to signal the main thread it was done with that part. I wasn't re-initializing these ManualResetEvent variables...
  10. 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...
  11. 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...
  12. 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...
  13. Sypher2

    String variable has no closing quote - why?

    It's ASCII code 0 (zero) which is a null. Even though it is 15 characters, there may fewer than that with any real character in it. I've resorted to iterating over the char array when inserting into the DB and also interating over the char array when reading back from the DB.
  14. Sypher2

    Version number

    Take a look at the System.Version class. It has members Major, Minor, Revision that you are probably looking for.
  15. Sypher2

    String variable has no closing quote - why?

    Yes, I tried iterating through the char array and make a string builder. That worked and I insert it into a database, but then when I read the data back from the database from a different application, I get the same result. When I do a DataReader.GetString, it shows "Example when I hover the...
  16. Sypher2

    String variable has no closing quote - why?

    There are several parts where I use ReadChars. Sometimes it's Int16 afterward. Sometimes Int32. Sometimes another ReadChars.
  17. Sypher2

    String variable has no closing quote - why?

    No the debug window shows: Example However if I hover the mouse over the variable I get: "Example Then when I look at the debug window after closing the app it shows: ExampleThe program '[blah blah]' has exited with code 0 (0x0). Even with writeline it's not doing a CRLF. Maybe I need to add...
  18. Sypher2

    String variable has no closing quote - why?

    It is: 12343254Example
  19. 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...
  20. Sypher2

    BinaryReader.ReadChars() advancing position too far

    I figured it out. I needed to create the BinaryReader with the correct encoding... Dim br As New BinaryReader(stream, System.Text.Encoding.ASCII) That gives one byte per char.

Part and Inventory Search

Back
Top