Software Development Network Logo
  • Windows Forms
  • Game Technologies
  • Visual Studio
  • Smart Devicet
  • Visual C++
  • SharePoint Products
  • Microsoft ISV
  • .NET Development
  • VS Team System
  • Visual Basic
  • Windows Vista
  • IE Development
  • Visual FoxPro
  • SQL Server
  • Visual C#

Software Development Network >> Larry30813217's Q&A profile

Larry30813217

Member List

Sen_p_kumar
Josh Smith
ZopoStyle
sztupi
NP Rudra
rcurrie
joshua926
krig
Marlun
Ion101
Sianspheric
SCRunner
FergusLogic
Ljhopkins
SolveIt
Philred
Wartower
zybernau
kiran1234
Analyst Chad
Only Title

Larry30813217's Q&A profile

  • Windows Forms Creating new forms using threads, and keeping then open after thread exit

    Hi there! I currently have a program that creates and displays a new form based upon a message sent by another application. The hierarchy of the threads are as follows: Main Application -> CommThread -> FormCreationThread The problem is that while the CommThread is a continuous thread, the FormCreationThread is temporary; once it creates the new forms, it ends. Because of that, once the FormCreationThread ends, it takes my new form with it. If I set the FormCreationThread to sleep or suspend after it creates the form, it also blocks the form from being used. What I'd like to do is have a way to create a new form from the FormCreationThread, and have it still alive after the thread itself ends. Any ideas on what I can do H ...Show All

  • Visual Basic [Help] - getting CRC of a string (converted from C to VB)

    Hello, i recently need a way to get a crc (32) of a string. I found an example http://www.zorc.breitbandkatze.de/crctester.c and i converted it Module test '//CRC parameters (default values are for CRC-32): Dim order As Integer = 32 Dim polynom As ULong = &H4C11DB7 Dim direct As Integer = 1 Dim crcinit As Long = &HFFFFFFFF Dim crcxor As Long = &HFFFFFFFF Dim refin As Boolean = False Dim refout As Boolean = False '// internal global values: Dim crcmask As ULong Dim crchighbit As ULong Dim crcinit_direct As ULong Dim crcinit_nondirect As ULong Dim crctab(256) As ULong Sub generate_crc_table() Dim i As Integer = 0 Dim j As Integer = 0 Dim bit As ULong Dim crc As ULong For i = 0 To 255 Step 1 crc = CULng ...Show All

  • SQL Server multi step OLE DB error

    Hi All, I have a MS Access DB that I have successfully u/graded to SQL Express 2005. I run my code using a recordset as normal, and all connections to the database work fine, but I receive the multi step OLE DB error when it gets to a line trying to populate an address field which has a datatype of nvarchar(max), null. (Field was Memo in Access version before). This field in SQL2005 has allow nulls. I've tried to add an empty string " " to the variable before being saved, but this still doesn't work. Any ideas Hi All, Is there a different group that might be better to help with this question above I'm really keen to know what's the cause of this error and how to correct. ...Show All

  • Visual Studio Express Editions SplashScreen

    How can create a splashscreen in C# Create a new form eg Splash.cs Then on your Main form code, before the Main method, type Splash splashscreen = new Splash(); Then change your Main method to show this - public Main() { InitializeComponent(); splashscreen.Show(); Application.DoEvents(); } Double click your form to create the Form_Load event then add this code Thread.Sleep(2000); splashscreen.Close(); You will need to add using System.Threading at the top to use the Thread statement. That should do it. Let me know if you get stuck. You can change the name Splash.cs to anything you want and then use that name as a declaration and you can also rename splashscreen to something else. e.g. You could have a form called Fruit.cs and ...Show All

  • SQL Server BUG: You receive an error message when you use the Package Migration Wizard to migrate a DTS package

    Article ID : 917420 CAUSE This problem occurs when one of the following conditions is true: ? The name of the DTS package starts with a space. ? The name of the DTS package ends with a space. ? The name of the DTS package contains a character that is invalid in SQL Server 2005 Integration Services (SSIS). My Workaroud was execute the follow script in MSDB in SQL 2000 Update sysdtspackages set name = rtrim(ltrim(name)) This script fix all DTS Package with names with spaces at start and ends. Regards Jose G. Yovera MCSE MCDBA Consein C.A. Venezuela ...Show All

  • Architecture Multi-tiered Application with client Server Architecture

    I want to Develop a Multi-tiered application with Client Server Architecture. I have one server and many clients around 10 to 15 or even more than that. I have one problem. When some master data is inserted by some clients it must be available to all the clients and server application at the same time and if the other clients has already opend the master form then it also immediately updated when another clients inserting record in that master. Can any one give me solution for this problem. How to implement this in .net 2.0 Thanks in advanced Nayan Nayan, just in case you are using SQL Server 2005 as database, you have the possibility of make every client suscribe to a master data query through SQL Server Quer ...Show All

  • .NET Development Trying to pass parameters to my Windows Service but how?

    hi everyone, From my Service Manager built-in in MMC no problem at all because I can perfectly allocate both parameters in "start parameters" box but how do the same from NET START command Or even better, how from another VB application I've tried to do this: NET START "MyService", "sql1","Bd1" but it did not work. Let me know if possible do (at least) from DOS session. Thanks in advance for your time. I've seen sc utility but it doesn't support parameters either I'm not sure we're on the same page here. ServiceController.Start() does the same thing as NET START, except that you can pass arguments... ...Show All

  • Internet Explorer Development RunOnceEx Broken w/IE7?

    I was curious to find that our installer failed to update our BHO on systems with IE7. I trailed it down to the RunOnceEx keys (see kb 232509). The keys added by our installer were ignored. They work fine on systems without IE7. I moved the keys to RunOnce, and that solves the problem. I'd prefer to use the RunOnceEx, but I was mostly just wondering if this is a known problem, and whether it's by design. Thanks, - Henri I've encountered the same problem and have found that this is occuring due to a change in the iernonce.dll file. After a bit of testing, I have found that you can still launch the runonceex process by copying the IE6 version of the iernonce.dll file into any location and execu ...Show All

  • Visual Studio Express Editions Hex data to serial port limited to value of 128

    When I send a hex value of DB to the serial port the actual value that the DB9 connector outputs is 3F. Why is it sending the wrong value If I send a hex value of 75 the output is fine. Here is the code I'm using: Imports System.IO.Ports Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strOutput As String Using comPort As SerialPort = My.Computer.Ports.OpenSerialPort("COM1", 19200) comPort.DtrEnable = True strOutput = Chr(&H24) & Chr(&HDB) & Chr(&H0) & Chr(&H0) & Chr(&H1) & Chr(&H4) & Chr(&HF7) & Chr(&H75) comPort.Write(strOutput) End ...Show All

  • SQL Server Valid Scope Values for the function RowNumber(Nothing) ??

    Hi there I have a sales report that is pulling up data and displaying the detailed lines and the aggregate/summary lines grouped by a single field. THe report say has 10 summary/aggregate lines and each summary lines have a maybe 20 more lines to it. I want to NUMBER the SUMMARY lines only. In a new column on the summary line cell, if I type, =RowNumber(Nothing), I get a count of all its sub-lines displayed. How can I limit the scope of numbering to just the summary lines and make sure it does not include the sub lines involved This does not appear to work. I, too, am attempting to number each group but still get a count of records within the group. The number does not change when I add the group name. Any other suggestions ...Show All

  • Visual Studio 2008 (Pre-release) XP domain controller acting as Kerberos KDC?

    Hi, I read posts about configuring a Windows XP Prof. domain controller acting as a Kerberos KDC. Could you guide me how set this up I'd like to set up a test scencario with a client and a KDC on the same machine to achieve single sign-on fpr my applications. For me, this seems to be the easiest way... If that's not possible, how about running a KDC on a local machine and let a client contact it from the same machine Many thanks!!! I really appreciate any advice! Look a little more closely. The XP KDC is backed by Active Directory . You can certainly set up a non-AD KDC and plug custom code into WCF to talk to it, but that's purely an extensibility scenario. ...Show All

  • Visual C# Passing an inherited class as 'T' to a generic container.

    I'm having trouble finding out how to use a general purpose generic container I wrote as a member of another class which wants to hold any class type based on a common base class. The first set of code below shows 4 seperate classes, RNode is a generic class, TreeControl has an RNode<TreeItemBase> member, and a "Root" property to access it, TreeItemBase is a control (not really important to this), and TreeItemHeader is derived from TreeIItemBase... Public class RNode<T> {} public partial class TreeControl : ScrollableControl { private RNode<TreeItemBase> root = null; public RNode<TreeItemBase> Root { get { return root; } set { root = value; } } } publ ...Show All

  • .NET Development Two-way communication using IPC

    Hello, I've been reading up on IPC and looking at sample code, and I can't seem to figure out how to actually accomplish communication from a client to a server. I understand the concept of a server hosting a dll which contains a method that the client can call. However, how can the server also obtain a reference to the same object I want the client to be able to send a message that makes it to where the server can use it. To clarify my question, the examples I've seen so far have been like this: Server creates a channel exposing Class A. Class A contains a handy-dandy method that can multiply two ints. Client creates a channel to be able to access Class A. But how does Client get a message all the way back to Server I tried creatin ...Show All

  • Windows Forms How do i access BindingSource current row ?

    How do i access BindingSource current row and change value of specific field I have client table with 4 elements client_guid code name surname My form is binded through BindingSource to all fields except client_guid I want to create new client. So i enter values in all fields and hit save. But i get error that client_guid should be supplied. I use BindingSource.AddNew() and then i use BindingSource.EndEdit() to save new clients - this works fine and new row is created, but it works only if i also bind client_guid to some textbox... sure it is not what i want. I wan to assign client_guid value in code not from UI textbox I can't get it how do i access this client_guid field to set it's value. I would do it before callin ...Show All

  • Visual Studio 2008 (Pre-release) FooLinq

    So we've had long discussions about Linq, XLinq, and particularly DLinq. It's probably a good exercise to forget about databases, ORMs, and XML files, and spur the masses into thinking where else they think Linq would be useful. Maybe someone here will take up one of the suggestions as a project... Hi, Databases are useful in cases where managing concurrency is an issue and the amount of data is large. Quite a few applications out there have no more than a couple of megabytes of data (if even that). These apps can easily hold all their data in memory as objects. LINQ can be every useful in quering this in memory object store. ...Show All

©2008 Software Development Network