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

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

ksona

Member List

Tibor Csizmadia
tadeusz s.
Catherine Parkhouse
Alex Dresko (MVP wannabe)
Maxhec
yjm
Rattlerr
devexpert
Penny111
Grant_A
Ori'
IObject
M Thomas
rnellis2002
serg.kr
lingga
VijayAdityaK
Jessica Alba
Tryin2Bgood
Matt Lawson
Only Title

ksona's Q&A profile

  • Visual Basic Folderbrowserdialog ContextSwitchDeadlock

    I have had a problem resulting in ContextSwitchDeadlock and a consequent build up in memory use. The following is a snippet which results in the error when using a Folderbrowserdialog control. How can the ContextSwitchDeadlock be avoided Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FolderBrowserDialog1.ShowDialog() Dim tstart As Double tstart = DateAndTime.Timer Do While DateAndTime.Timer < tstart + 70.0 TextBox1.Text = DateAndTime.Timer - tstart Refresh() Loop End Sub I may have missed the whole point of what you are talking about, but anyway, the following change ...Show All

  • SQL Server Bulk insert Remote Files access denied

    Here is my setup. Machine A: SQL Server 2005 x64 on a Windows Server 2003 x64 Machine B: XP Pro SP2 with SSMS installed Machine C: hold files that I want to import to Machine A. The drive is shared and set for everyone to read. Everyone is logged in as Admin and SQL services are start up under the admin account. I'm using Windows Authentication to log into Machine A from machine B. When I try to bulk insert from query analyzer running on Machine B BULK INSERT ModelData FROM '\\MachineC\Data\Files\Something.txt' WITH ( FIELDTERMINATOR = ',' , ROWTERMINATOR = '\n' ) I get Operating system error code 5(access is denied). I have looked at the examples shown from the BOL links provided but I just have a small workg ...Show All

  • Visual C# Commandline arguments question

    I am starting a process after setting some command line arguments. Is there any way that I can see what actually executed on the command line along with all the arguments that were passed Is this information stored somewhere after the process is started The reason I'm asking is that I am using a companies command line FTP program and I keep getting told that I am using bad command line arguments. The arguments I'm passing are valid, but I want to check to make sure that is actually what is getting executed. Thanks in advance! I guess it doesnt like the catfood you give it, consider changing the brand ;-) .....guess at some level it also depends how the external app reacts. You are aware that ...Show All

  • SQL Server XQuery modifying element names

    We recently made changes to our code that involve a XML data to be changed in the database. I would like to change this: <element>      <text>hello</text>      <text>good bye</text> </element> to: <element>      <number>hello</number>      <number>good bye</number> </element> Is this possible through XQuery   If not, is there any way to do this via SQL   Note: I cannot do a string replace as other valid nodes are called <text> . Thanks, Dave Thank you for the reply. That does work for selecting the value change. But how do I replace t ...Show All

  • Visual Basic Combo Box

    I'm trying to make text boxes fill with my database data. I have a combo box which has the users in it. However, I need to know how to make it so when you click on one of the users in the combo box, it will display the data in the textboxes. My code for the combo box is below: con.ConnectionString = "Data Source=.\SQLExpress;AttachDbFilename=C:\mydb.mdf;Integrated Security=True; Connect Timeout=30; User Instance=True" con.Open() Dim dr As SqlDataReader Dim cmd As New SqlCommand( "select * from users" , con) dr = cmd.ExecuteReader Do While dr.Read cboxusers.Items.Add(dr.Item( "FirstName" ).ToString() & " " & dr.Item( "LastName" ).ToStri ...Show All

  • Visual Studio Express Editions DLL Help "VBExpress"

    hi Someone can help me with dll creation I want only know how to do this. Thanks Shady Well, I feel like I have egg on my face again. Playing with that code again, I see that I did not add provisions to handle if someone sets the public properties to an unusable value. (Such as if they set the value to 'nothing') The one 'nothing' 'catcher' I have in there is set up wrong. Anyway, I'll get back to the code again soon when I get a chance and debug it a little better. Meanwhile, it is a starting place to see how dlls are done. Try a real simple one first and start another post on how to reference it in a using program if need be. I am also a beginner in this area and the steps are not o ...Show All

  • Visual C# Passing a class as a parameter - gets error message

    I'm trying to pass a pointer to a static class to another routine, we'll call it 'bind', such that it can access a member of the class by name; however, the compiler generates an error message that says "Error 4 'nBase.cBase' is a 'type' but is used like a 'variable' ". But I want to pass the class. I'm obviously missing something about how to cast it or how to otherwise make it acceptable to the compiler to be able to pass it. In particular, the Bind() routine I'm calling expects an instance of a Windows.form, and the 'Form1' name suffices here. But this is a static class I'm passing, but perhaps using the class name is the wrong thing to try to pass as a parameter. Any smart folks out there who can tell me how I can solve ...Show All

  • Visual C# Event NullReferenceException

    I am getting a NullReferenceException when I fire an event. I know I should check for the NullReferenceException before I fire the event, but when I do that the event does not fire at all (obviously). And the event is suscribed to in another class. Any help would be appriciated, here is my code: public class Main_Configuration : System.Windows.Forms. Form { public delegate void DebugEventHandler ( string debug_message); //declare the AE Button Event Handler public event DebugEventHandler DebugMessageToRuntime; private void DIOLabel_Click( object sender, System. EventArgs e) { this .DebugMessageToRuntime( "Entering DIO Configuration Form" ); } } ...Show All

  • Visual Studio Tools for Office Outlook 2007 Ribbon Observations/Questions

    i have developed a custom ribbon for a custom message class: "IPM.Contacts. MyCustomClass " i note that inside the GetCustomUI() method I can;t seem to trap whether the ID relates to a custom message class or note, as they both come out as "Microsoft.Outlook.Contact". So I am assigning my custom ribbon to both the standard outlook form and mythingie form at this point. Am I doing this bit right case "Microsoft.Outlook.Contact" : return Properties. Resources .MyCustomClassRibbon; so next i am hiding/showing my tabs on my custom ribbon depending upon whether the messageclass is custom or not which i am ascertaining using GetVisible callback methods. but i dont think this is right because i am ...Show All

  • Visual Studio Team System Mercury QTP

    I'm setting up a testing environment from scratch and most of the testing we do will be in the UI space. Consequently, I've chosen Mercury MFT (formerly QTP) for this but would also like to be able to use the Bug management in TFS without my testers having to go from application to application. Has anyone integrated MFT in this way and if so, how Can you post this same question over in the work item tracking forum. They will have more info on third parties that are working on integration: Here is the link: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=479&SiteID=1 ...Show All

  • SQL Server Use parameter in field list?

    Hi. Hi I have a problem with using parameter as a column in an sql. Is this possible Lets say I have a input value @field1 that I want to use as field in my sql. "SELECT @field1 AS somthing FROM table" return only the value from @field1 since the parameter is a string. I tryed to write the sql as a string and then use EXECUTE. It will give me the correct result when I run it but the problem is that the dataset doesnt understand that it contains fields. Ex: DECLARE @sql VARCHAR(8000) @sql = 'SELECT ' & @field1 & ' AS somthing FROM table EXECUTE(@sql) Is there anyway to use a input parameter as a column name Reporting Services. Preferble without using stored procedures. Thanks ...Show All

  • Visual Basic Getting System Information

    I have tryed to search for this question but I really don't no what part of the forum I should be looking in to, I did do a search and never really found what I'm looking for. I'm just making a little project on getting system information and I would like to know what Namespaces, etc I should be looking into, Thanks for the help.   System.Management (WMI) System.Diagnostics System.Diagnostics.PerformanceCounter My.Computer.Info System.Evironment   ...Show All

  • Visual Studio 2008 (Pre-release) HOw to add textbox columns in Datagrid view

    i need to add textbox columns into DatagridView If you meant GridView, you can specify CellTemplate for the columns which can have any controls you want <GridViewColumn Header="Month" Width="80" CellTemplate="{StaticResource myTemplate}"/> <DataTemplate x:Key="myTemplate"> ... </DataTemplate> ...Show All

  • Visual C# Connect Windows to Gprs

    Hello, i have to connect Gprs my OS Ms Windows, it is possible with C# I can send AT Commands by SerialPort class, i tried. I know there are specific AT Commands for make this type of connection. Once the modem establish correctly a Gprs connection, Ms Windows is connected to the internet or i have to send other commands If somebody can help me... thanks really. Lewix ...Show All

  • Smart Device Development Comm ports

    Hello I need a bit of help. I am trying to use the emulator to send data onto a port which I am monitoring on my pc. I can open the port in the emulator but it freezes when I send data. I am a bit confused over mapping the pocket pc 2003 emulator ports. Do I have to do this I have added a port that connects to COM1 in the device appication. I am then simply executing the code: if (serialPort1.IsOpen == true) { serialPort1.WriteLine("blah"); } I am wanting to see the text blah in a port monitoring program on my pc. thanks I think I have a similar problem. I am using the Device Emulator to connect to 2 Virtual COM ports (created with VSPD from Eltima - www.eltima.com/products/ ...Show All

©2008 Software Development Network