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

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

directSH

Member List

Dietz
Dr.Pepper
MrZkitten
incendy
Cory P
Aleniko29139
thomasabcd
Abhishek Chadha
VOC
Mairéad - MSFT
cehor
Sune Henriksen
Naolin
clint 2
Mario M.
JeffK_
NathanCaaaaaaaan
martona
Ravishesh
averge joe
Only Title

directSH's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. No typedef and no Include. . .

    Are these VBA programmers writing the .Net framework and languages Many of you probably already know this, as I'm arriving late to the party. I wanted to use the typedef equivalent but apparently not in C#. Then of course I thought I'd try the #include -- maybe so, if I wanted comments (I gather). The end result: Common.cs using System; namespace <yoursHere> { using ID = System.Int32; public class objID { private ID itsID; public objID( ID theID ) { itsID = theID; } public ID ID { get { return itsID; } set { itsID = value; } } } } Did I miss something Why not just: class AClass { public uint itsID; } The reasons why you need ty ...Show All

  • .NET Development Interface Between .Net 1 and 2

    It seems like the answer to this question should be obvious. But I can't seem to find any sort of answer anywhere on the net. Perhaps my search skills are too poor. But if you could help point me in the right direction... I have an existing asp.net 1.1 website. I have a new .net 2 dll. I want the existing website to use the new dll. What is the best way to accomplish this My thoughts... * web service * remoting * rewrite dll in .net 1 * console app that the website can execute via process.start() Any insight, guidance, direction, etc. would be greatly appreciated. John DeHope. Hi, When migrating to .NET 2.0 I use the following approach: 1) If is possible to migrate to 2.0 the main application firs ...Show All

  • Visual C# best way to pass value to another open form

    In vb.net it is so simple all you do is add a button on the form and when both form1 and form2 is open all you had to do is this. form2.textbox1.text = "Cat" where in c# it is not that simple. I am curious to see how others do what I have mentioned above in c#. So basically the scenerio is I have both form1 and form2 open. Form2 has a textbox and form1 has a button on it that I want to pass a certain word to the textbox on form2 To assign the caption of form2 with a value from a textbox in form1. In the form1: ================================= private Form2 form2; public Form1() { InitializeComponent(); ...Show All

  • Windows Forms Update datagridview in c#

    hi all i am retreiving data into the datagridview based on perticular field, OleDbConnection con = new OleDbConnection(""); OleDbDataAdapter da = new OleDbDataAdapter("SELECT * FROM table where id like '" + searchresult.str3 + "%'", con); dataSet6.Clear(); da.Fill(dataSet6, "tablename"); dataGridView1.DataSource = dataSet6.Tables["tablename"]; con.Close(); and now i have to update the datagridview. i wrote a update query in tableAdapter query builder;and in the form i am writing pROTEIN_INTERACTIONTableAdapter.UpdateQuery(dataset6); but its showing errors. please tell me how to update the records in datagridview ...Show All

  • Visual Studio ASP.NET session has expired

    I get this error in the body of the ReportViewer. I have cookieless set to false. I have timeout set to several hours. I have configured ASP Script Timeout in IIS to a very large number also. Anyone know what is going on here Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: Microsoft.Reporting.WebForms.AspNetSessionExpiredException: ASP.NET session has expired Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception ...Show All

  • Software Development for Windows Vista Travel Demo database issues

    I am having two issues with the delivered database: 1) When the database is restored the User dbo loses the 'sa' login. Then when you run the program it will always fail at line 328 in Workflow.cs sqlConn.Open(); 2) There isn't a Create statement for a table called TaskAssignment /****** Object: View dbo.TaskAssignmentInformation Script Date: 01/21/2007 12:30:05 PM ******/ CREATE VIEW dbo.TaskAssignmentInformation AS SELECT dbo.TaskAssignment.TaskTypeID, dbo.GroupActorRelationship.GroupName, dbo.GroupActorRelationship.ActorName FROM dbo.GroupActorRelationship INNER JOIN dbo.TaskAssignment ON dbo.GroupActorRelationship.ActorName = dbo.TaskAssignment.TaskOwner I'm stuck...I can get past item #2 but wh ...Show All

  • Visual Basic Connection to SQL Server (Express) from VB.NET (newbie)

    Hi All, Hope someone can help me on this or point me in the right direction. I have looked at lots of threads and other parts of the forum but seem to be going round in circles so anyone if you can please help. So far this is where I'm at ---> 1) I have SQL Server Installed and have created a small 'test' database. 2) I have created a single table called "Account" added 4 fields and added some data, again all within the SQL Server interface. 3) Within VB.NET I've opened a new 'application' and from the 'Toolbox' --> 'Data' have added SqlConnection1 and SqlDataAdapter1 to the 'form'. For the moment I've left the control names as they are. The ConnectionString (on SqlConnection1) is as follows --> work ...Show All

  • Windows Forms Binding 2 Forms

    Hi All I'm sure this question has been asked a 100 times over but could someone please help me with this in a detailed way. I have a form, with a datagridview which is linked to binding source. For our purposes let's call it BindingSource1. This datagridview shows a list of patients which are currently in my database by displaying only patient numbers. What I would like to happen, is i select a patient number from the list and click a button on the same form which which opens up another form which will display the information about the patient. I only want to display this information and not allow the user to edit it. How do I go about passing the information on the patient, ie. the unique_id or whatever is used to the second form ...Show All

  • Visual Basic hopefully a little problem with listbox/getfiles

    dear ladys and gentlemen, i've got a maybe little problem with the path in an listbox, when i use this code: For Each foundfile As String In My .Computer.FileSystem.GetFiles( _ ( "c:\nuproject\txtfiles\komm" ), _ FileIO.SearchOption.SearchTopLevelOnly, "*.txt" ) ListBox1.Items.Add(foundfile) TextBox1.Text = "" Timer1.Enabled = True Next then i got a list of all txt-files in this directory. so far so good, but i don't want the path be in there. so c:\nuproject\txtfiles\komm\ should be hidden! thanks for your solution! Using the Sysytem.io.fileinfo provides you with access to a whole load of properties relating to the file such as ...Show All

  • Visual Studio 2008 (Pre-release) NetMsmqBinding does not Queue

    I am new to Indigo. So far, this technology looks like it should be very useful for many of our applications, but am not having much luck with the example code. We are most interested in the asynch possibilities of NetMsmqBinding. The MSDN samples (examples) for NetMsmqBinding are not working for me, though the non-queuing examples do work. Specifically, the "Transacted MSMQ Binding" and the "Transacted Batching" examples at MSDN Library > .NET Development > Samples > Windows Communication Foundation Samples > Windows Communication Foundation Technology Samples > Basic Windows Communication Foundation Technology Samples > Binding Samples > Net Binding Samples > NetMsmqBinding Samples (whew! ...Show All

  • Visual Studio Tools for Office Advanced Outlook addin .msi/setup.exe Questions

    I've written a working installer. If the user runs it, he has to hit "next" once or twice to install it. No actual decisions have to be made. If we roll out an upgrade, the user has to uninstall the old addin before he can install the new one. So I have two questions about making this process better: First, what would I have to do to make my installer suitable for, say, SMS deployment I'd like to take the burden off the user. I looked at the "Admin" installer functionality, but I interpreted that as a process which simply sets the app to run or install from a network, as opposed to automating the local install itself. Second, isn't there versioning in the MSI system such that you can install a newer vers ...Show All

  • Visual Studio Tools for Office "Microsoft Visual C++ Runtime Library" error

    Since yesterday, my document customization created using VSTO 2005 causes an error to pop up in Word 2003 whenever I close the customized document: ------------------------- Title: "Microsoft Visual C++ Runtime Library" Body: "Runtime Error! Program C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." ------------------------- With an OK button. If the document is saved before I close it, all of my changes are saved (including [Cached] fields), but if I choose "Yes" to save an unsaved document after clicking close, the save process is interrupted and the d ...Show All

  • Windows Forms How to compare values from two databases.

    Hello, I have two different databases that I want to compare values from. I was thinking of loading the data into two separate listviews and then comparing the listviews but I dont know if that is the right way to go. Should I be using a datagridview instead Any ideas how to solve this problem. Regards Hi if you want to show something from database to the listview here is an example using Access Hope it help u. lv = new ListView ( ) ; lv.Left = 0 ; lv.Top = 0 ; lv.Width = 700 ; lv.Height = this .ClientRectangle.Height ; lv.GridLines = true ; lv.FullRowSelect = true ; lv.View = View.Details ; lv.Scrollable = true ; lv.MultiSelect = false ; lv.HeaderStyle = ColumnHeaderStyle.Nonclickable ; // ...Show All

  • Visual Studio Express Editions Image Cropping

    Does Visual Basic all image cropping I would like to take a big image and allow in a UI (windows app) for the user to be able to click a certain thing and it would make a crop of a certain area (box) around that area. In a normal case we would have 50-100 cropped images that would come from this one large image. Thanks Here is a link to a sample program that I wrote a few years ago in VB.NET (2002) that should be convertable to VB2005. It does cropping from any location within an image starting from the MouseDown position and ending with the MouseUp position. It draws the dashed-line box too. Maybe it will give you the idea you need for your project. james aka:Trucker http://www.gotdotnet.com/Community/UserSampl ...Show All

  • Visual Studio Express Editions image to a picture box without using the properties window.

    Hi, I would like to place a p icture box on a form and using a text box select from any number of images to show in the p icture box. How can I assign an image to a p icture box without using the properties window. Ken Tall Dude and David, thanks for all the help. Tall Dude, that was quite a procedure to get the program to work. Once again, thanks. Regards, Ken ...Show All

©2008 Software Development Network