graymon's Q&A profile
Visual Basic how to print
how to print the data on the form what code to write when i click a cmd button given for user to click to print the details on the form Hi, Get the PrintForm component here.>> http://msdn2.microsoft.com/en-us/vbasic/aa701261.aspx Then look at the sample program that comes with the download. Regards, S_DS ...Show All
SQL Server OLEDB Command stage error in SLOWLY CHANGING DIMENSION
I have created a sample dataflow to parse the employee details (empid,empname,empaddr) from a flat file to oracle 9i database table named employee(columns : empid,empname,empaddress - All are varchar2(15)) using SLOWLY CHANGING DIMENSION transformation for insert/update on the table. EMPID as Businees key EMPNAME and EMPADDR as changing attributes. Connection string is using Microsoft oledb provider for oracle. I am getting the following oledb command error. ----------------------------------------------------------------------------------- TITLE: Microsoft Visual Studio ------------------------------ Error at Data Flow Task [OLE DB Command 1 [2007]]: An OLE DB error has occurred. Error code: 0x80040E51. An OLE DB reco ...Show All
Windows Forms How to clear old data from DataGridView and DataSet?
As an exercise in learning Visual Basic 2005, I am putting together a simple XML editor. I place on the form the objects DataGridView1 and DataSet1. ' Read an XML file into DataSet1: DataSet1.ReadXml("BIRDS.XML") ' Bind the DataGridView to the DataSet: DataGridView1.DataSource = DataSet1 ' Having determined that the TableName of the ' DataTable I am interested in is "bird", ' make this the DataMember of the DataGridView: DataGridView1.DataMember = "bird" ' Set up autogeneration of columns: DataGridView1.AutoGenerateColumns = True And now the contents of the file appear in the grid for viewing and editing. OK so far. But now I want to load in a new file. When I load "MUSICIANS.XML", with its DataMemb ...Show All
Visual Studio Express Editions how to connect remote access database from VB.net??
how to connect remote access database from VB.net hallo, i am looking for a code that connect to a remote database(ms access)on the web from a desktop vb.net/vb application. help me I need to connect to a mdb file located in internet from a VB desktop application. For Example: My database is located here: http://www.mysite.com/dbfolder/mydb.mdb What should I do in VB 6.0 Thanks ...Show All
Visual Studio How to create a IVsUIHierarchy object?
Hallo i finally created a ui hierarchy tool window and i can show it. I got its IVsUIHierarchyWindow interface. the only thing i need to do is to call the Init-method with an IVsUIHierarchy object. How can i get such a new object Is there anywhere a factory or do i have to implement it by myself (i can not belief it is this way). Thanks Benjamin HI Ed, I am trying to implement a toolwindow like solution explorer which can open a fileless editor, http://www.ureader.com/message/3084018.aspx I got some clue from the above mentioned link. But it talks about the implementation of IVsUIHierarchyWindow and IVsUIHierarchy interfaces. Basically I am trying to associate a custom editor with an object which doesnt ha ...Show All
Visual Basic How to read the value of a DataGrid cell
Hi, What I need to do is very simple, but I cannot find the syntax. I only need the value of a named column in the current row. As in: dim var as string = datagrid1.columns("JobNumber").value In VB6 that was the syntax, but 2005 does everything but the ".value" in intellesense. How do I get the value in the column called "JobNumber" Dim CellValue As Object = datagrid1 . Item ( datagrid1 . CurrentRowIndex , ColumnNumber ) ...Show All
Visual Studio Winform ReportViewer Background Thread
Hi All I'm currently trying to make our winform application more responsive, and I'm having a few problems with the reportviewer. I'm trying to call RefreshReport on a backgound thread. However, because this method call is intrinsically bound to a control that is on the UI thread, this is not allowed. There in lies my problem. Is there any way to refresh the report asynchronously I'm confused as there is a method called " CancelRendering " that stops background processing of the report. But how on earth do you start it. Any advice would be gratefully received. Hopefully I'm just missing somthing obvious. Regards Darren Brian, Thanks for the informative answer. I can definately move on from my curr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rendering 2D and 3D meshes at the same time
I followed the help menu's to render a background and then I followed the help menu's to load and render a 3D mesh. Rendering a background works great, rendering a 3D mesh works great. Both of these are files from Spacewar. However, rendering both TOGETHER fails. I'm doing the following: protected override void Draw(GameTime gameTime) { graphics.GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); spriteBatch.Draw(background, backgroundPos, null, Color.White, 0, Vector2.Zero, 1, SpriteEffects.None, 1.0f); spriteBatch.End(); //Draw the model, a model can have multiple meshes, so loop foreach (ModelMesh mesh in shipModel.Meshes) { //T ...Show All
Silverlight (formerly WPF/E) Anybody successfully using Glyph UnicodeString?
After I posted http://www.wynapse.com/WPFE/WPFE_Glyph_Explorer.aspx , Mike Harsh hinted that I could also use UnicodeString. I tried to display the UnicodeString value below the Indice in that code and all I got was "undefined" or something like that. I figured if I simply displayed the UnicodeString for an already displayed Glyph, it would let me know what I need to input to get what I want. Is this working, or is this another Glyph thing that isn't Thanks... -Dave UnicodeString doesn't return you the unicode version of glyphs displayed with the GlyphIndicies property -- the UnicodeString only returns you what you set it. Sorry. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio Cannot View a Cryastal report from an VS C++ Dot NET 2003 managed app .
Hell all, I need to show a report ( CR 10 ) from within a windows app. I can print the report but cannot VIEW the same. Can anyone help Here is the code: crReportDocument = new ReportDocument(); // MessageBox("Report Document Instance Created", "New Reports"); crReportDocument->Load("BATCHSQL.RPT"); // MessageBox("File Loaded to Report Document Instance ", "New Reports"); //Setup the connection information structure to be used //to log onto the datasource for the report. crConnectionInfo = new ConnectionInfo(); // MessageBox("Connection Info set", "New Reports"); //Get the table information from the report crDatabase = crReportDocum ...Show All
SQL Server XML to CSV
Hi, I am trying to convert an XML file to a CSV file. The fastest solution would be using IS. The xml file is like this <data> <client id="1"> <name>name1</name> <sales id="1">100</sales> <sales id="2">100</sales> <sales id="3">100</sales> </client> <client id="2"> <name>name2</name> <sales id="4">100</sales> <sales id="5">100</sales> </client> <client id="3"> <name>name3</name> <sales id="6">100</sales> </client> </data> And the csv file like this : ID,name,sales_id,value 1,name1, 1, ...Show All
Visual Studio 2008 (Pre-release) .NET 3.0 / Orcas / C# 3.0 / LINQ - I'm Confused
Hi, I'm wondering if someone could clarify for me the relationship between .NET 3.0 (which is currently RC1) and all of this LINQ stuff we're seeing in the May CTP. I apologize if this is addressed elsewhere but I haven't been able to find it. As I understand it, .NET 3.0 is supposed to be released with Vista. C# 3.0 and LINQ will be released together as the next version of Visual Studio (AKA Orcas ), but separately from .NET 3.0 and probably well after Vista. This situation confuses me a little bit because the .NET Framework has a C# compiler built into it, right So I'm guessing that the C# compiler included in the .NET Framework 3.0 will not be able to compile C# 3.0 code (LINQ, etc.) Does that mean there will be another framew ...Show All
Software Development for Windows Vista CriticalSection Changed.
I was reading the article at http://msdn.microsoft.com/windowsvista/default.aspx pull=/library/en-us/dnlong/html/AppComp.asp and noticed the section about critical sections. There is a bullet point that says the following. "Should prevent starvation. Applications that call Sleep while holding the critical section lock now can cause starvation for other threads that need the lock. Sleep calls should be placed after the LeaveCriticalSection call. " I would really like some more information on this. Is that saying that if i sleep while i own a critical section that another thread trying to obtain the critical section may have problems (other than it blocking until the owning thread releases the critical section) If so why and ...Show All
SQL Server Asynchronous events to database clients via DAL?
Greetings, I have a requirement for a SQL Server 2005 database to notify 3rd Party applications of a table change. As is stands now, 3rd Party applications access the database via a Data Access Layer (DAL) dll (C#). I'd like to somehow implement an asychronous event notification scheme via the same DAL to these clients. Can someone offer a clever way to implement such events Broker Services I am under the impression the SSBS is typically deployed when databases are to communicate with one another. Triggers to call some CLR code Other Thanks in advance, Loopsludge In SQL 2005 there is a buil-in solution for 'table change' notifications, namely Query Notifications and the technologies based on it (Sq ...Show All
Visual Studio Express Editions Group delimiters are not balanced
I was looking for a quick and dirty way of making an OpenFileDialog show thumbnails. Using the keyboard Five tabs, four Downs and an Enter seemed to do the trick so I thought I would use SendKeys (from a timer to overcome the fact that the dialog is modal) - I said it was dirty but it's only for my own use. The tabs work fine but sending a down key results in the error message of the title. At which point I gave up - anyone any ideas. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Start() OFD1.ShowDialog() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Static count As Integer ...Show All
