the_bee_keeper's Q&A profile
.NET Development C# - create a datbase and update information
I have been a Visual FoxPro programmer for many years (Bad Luck!) I have created a simple application. Created a database with 1 table (Customers). Created a dataset from this Dragged and dropped the controls from the dataset onto the form which dropped the table adaptors etc below the form. It set up the controls correctly Adding and changing data to the form all works and saves the data to the data set It will not save it back to the database This is all done using the basic programming help from UsingVisualStudio.Com If I go to the database and click on show Table Data I can add and edit the datbase direct I am assumi ...Show All
Visual Basic Help.
How do I create a grid of pictureboxes (25 x 25) on Visual Basic 2005 and auto-name them pbx(row)_(column) for the picture boxes It is to slow and hard to manually rename all 625 of them. Ok question answered, thanks. New question: OK, I ran into another problem. I want it be so that if I click the picture box with the person in it, you can move him by clicking on another tile. How do I do this (I tried (got from Dustin_H 's sample code) : Private Sub PicBox_On_Click( ByVal sender As Object , ByVal e As EventArgs) If PicBox(x, y).Image = Tiles.picPerson.Image Then &nb ...Show All
Visual C# Update Dataset In C#
I have a Insert statement to insert new records into the Access database, but how do i Update the dataset Hi, The approach that you are doing is quite the reverse. You must first edit your dataset then send the updates to your access database. To do this you must have a activeconnection, adapter and a dataset. eg: OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM myTable", con); OleDbCommandBuilder cm = new OleDbCommandBuilder(adapter); ... // Fill the DataSet and edit adapter.Fill(ds); ds.Tables[0].Rows[10]["field1"] = "TEsting"; // send updates to database adapter.Update(ds); Just see the MSDN docs for additio ...Show All
SQL Server Group Header Alternating color
I am trying to get alternating colors on group headers. The rownumber() doesn't work; that only seems to be the count of rows in the group. Does anyone have any great ideas for this Thanks! BobP I realize this was a year ago, but was wondering if anyone had figured out a solution. I am trying to alternate colors at the group level and am not having any luck... ...Show All
Visual C# How to add task pane to a form?
Hi, I have a Windows Forms application, and would like to add a task pane either similar to the "Toolbar" in the Visual Studio IDE (dockable, auto-hide etc), or similar to the task pane in Windows Explorer of XP (e.g. common image tasks when in "My Pictures" folder etc). What kind of control(s) do I need to add to enable this in my application Thanks!! There are a lot of nice articles and control on codeproject, here is a list: Themed Windows XP style Explorer Bar IconPanel Custom Control Collapsible Splitter control in C# Full-featured XP Style Collapsible Panel Windows XP style Collapsible Pa ...Show All
Visual Studio Express Editions Crystal Reports in VB Express 2005
Is there any way to get reporting capabilities into VB Express I don't want to purchase the entire visual studio, but I want a reporting tool. ' -- Begin Code- ---- Public Class Form1 Dim App As New CRAXDRT.Application Dim Report As CRAXDRT.Report Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load CRViewer1.ReportSource = App.OpenReport(Application.StartupPath & "\Artist.rpt" , 0) AxCRViewer1.ViewReport() AxCRViewer1.EnableSearchControl = False End Sub Private Sub AxCRViewer1_FirstPageButtonClicked( By ...Show All
Visual C++ Build .exe
where is the build executable / run executable button in the Visual C++ 2005 Express Edition Beta 2 EDIT: I found it... but they're all grey out............. don't know how to use it.... help I too unfortuneatly came across the same thing. Now I can compile a single .cpp file through the command line but not through VS surely it would make many peoples lives much easier if we could just compile a single .cpp at a click of a button. I myself have only just begun to learn c++ and so im continually typing out very small programs consisting of one cpp file, I find it rather cumbersome to have to open c ...Show All
SQL Server create storedproc with smo
hi, i try to create storeproc with smo but i 've an exception "Create failed for StoredProcedure 'dbo.TEST'" {"Cannot create StoredProcedure '[dbo].[TEST]' if parent is not yet created."} but sp.parent is created please help me attache my work StoredProcedure sp = new StoredProcedure(); sp.Schema = "dbo"; sp.Name = "TEST"; sp.Parent = new Database(new Server("serveur"), "db_TEST"); sp.IgnoreForScripting = false; sp.TextMode = false; sp.ImplementationType = Implementation ...Show All
Windows Forms Startup Switch
Is it possible to use a startup switches If so how would I access them using VB.net What I'd like to do is have a shortcut that calls MyApp.exe /startup. If the startup switch is set then the app would just display in the system tray as opposed to displaying a form as well. Thanks, Ben I need this to work with a windows application. www.ftpex. ...Show All
Visual Studio 2008 (Pre-release) WPF Custom Controls
I have been using WPF for a couple of weeks now, and would like to code a custom control that does the following: Is or inherits from StackPanel Has a property called Number which controls how many buttons to display Displays those buttons Works in VS and EID (hopefully) The problem that I cannot seem to figure out is how to control the number of child elements like I described. I have no idea how to do it in XAML, but when I do it in C#, I can only get it to work using C# like this: int nButtons = 4; MyControl ctrl = new MyControl(nButtons); I want to, but cannot seem to get this to work in XAML: <MyControl Num ...Show All
Visual Studio Team System Need help: TFS RC single server installation error: 28805
I was installing TFS RC single server by following the installation guide. Everything ran pretty smoothly until the installation is almost done. A 28805 error message prompted and terminated the installation. The error message is: Product: Microsoft Visual Studio 2005 Team Foundation Server - ENU -- Error 28805.Setup cannot finish the request to the SQL Server 2005 Reporting Services report server. Verify that SQL Server 2005 Reporting Services report server is installed and running, and that you have sufficient privileges to access it. For more information, see the setup logs. The Report services runs under local system account as ins ...Show All
Windows Forms Problem with StatusStrip and ToolStrip
Im testing the new June CTP release of VS2005 and each time i try to use the Status Strip or Tool Strip control at design time i get and object reference not set to an instance of an object error, no matter where or when i added the item on the form. Anyone experienced that is there any known workaround Thanks for the help.... I cannot reproduce this issue. It actually sounds like you may have a setup issue on your machine. Can you create and build other Windows Forms controls on your application - mike ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where to find TextureLoader ?? [Derek Pierson's tutorial]
Hello, I'm studying Derek Pierson's tutorial I have found on < http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning/default.aspx >. I had to do some changes since I'm still using VS 2003 with .Net 1.1. I installed DirectX SDK from December release. At some point, in article 4, there is this code (several times...): _leftFaceTexture = TextureLoader.FromFile ( _device, @"..\..\..\Resources\Left.tga", -1, -1, -1, 0, Format.Unknown, Pool.Managed, Filter.Triangle | Filter.Mirror, Filter.Triangle | Filter.Mirror, 0 ); It won't compile because [TextureLoader] and [Filter] are unknown. So I guessed it was def ...Show All
Visual Studio Team Explorer - Document attributes
Hello, I'm writing an add-in for Team Explorer, which adds a menu option to the context menu of the documents of team projects. It loads just fine, works like a charm, but I can't seem to find out how to fetch the URL of the document (just the (screen) name). I'm doing this by accessing the _applicationObject.SelectedItems.Item(1).Name attribute. That's about the only attribute Item seems to have. Any suggestions Muchos thanks, Jourik Feenstra Jourik, unfortunately we do not set ProjectItem or Project properties, so I could not think of way for you to get the document URLs. Technically the document items a ...Show All
Software Development for Windows Vista ASP.NET And a State Machine Workflow
I recently read the MSDN magazine article, Windows Workflow Foundation, Part 2 (http://msdn.microsoft.com/msdnmag/issues/06/04/CuttingEdge/), where Dino Esposito demonstrates how to work with workflows in ASP.NET. Dinos' demonstration provides a helpful solution to working with Sequential workflows; however, it left me a little confused with how to work with a State Machine workflow. In the article, Dino demonstrates how to pass parameters to a Sequential workflow by using a Dictionary object, which is then passed as a parameter to the CreateWorkflow() method. The problem is that State Machine workflows pass parameters throug ...Show All
