Paul_Rus's Q&A profile
Windows Forms datagridview
hi, i have a datagridview(vid=sual basic 2005 and sql server 2000 thru dsn im working). i want to 1)display data from a table to datagridview 2) add new rows 3)delete 4)update. i added a datagridview and added 15 columns to that ans set name and columnheader for each. i also want some of the columns to be calender etc...(i added genericdatagrid user control.dll) i have the following code in the form load but no data is coming. can u please help con.ConnectionString = "dsn=alphasql" con.Open() da = New OdbcDataAdapter( "Select * from Company" , con) 'da.SelectCommand = New OdbcCommand("Select * from Company", con) da.Fill(ds, "Company" ) DataGridVi ...Show All
SQL Server Recovering SQL 2000 Database without the Log File not in clean disconnected state
We just had a hard drive crash here. We were able to copy off the .mdf file from SQL server 2000 from the drive, but not the .ldf (which was only 720k anyhow). When I try to attach the mdf to an SQL Server 2000 or 2005 server I get an error saying that the log file doesn't exist. Does anyone know a way to attach this not-cleanly-closed database file and recover the data (apparently the person decided that they need-not backup their database :<) Thanks for any help you can provide! You may get lucky and be able to attach to a SQL 2005 instance and use the ATTACH_REBUILD_LOG clause...try something like this: create database <x> on <filespec> for attach_rebuild_log ...Show All
Visual Studio Integrating msdn may 2006 with Visual Studio 2003
Hello. I've just downloaded and installed msdn may 2006 edition and I read the note that says this edition doesn't integrate with VS 2003 .net by default. So Is there a way to force integration Any help really appreciated. Hello Basel Al Khateeb, There is no force integration but you can use May 2006 library within VS 2003 IDE by following these steps: open VS 2003 go to Tools > Options > Environment > Help In Preferred Collection drop down you will see MSDN library for Visual Studio 2005. Select that and hit OK Close VS 2003 when prompted and open VS 2003 again. Now the Help will appear from May 2006 Library in VS 2003 but this library does not contain the documentation for VS 2003. Thanks ...Show All
Visual Basic O'kay so I now have a working application. How do I port it to other computers? (Testing Installation On Same PC -> Problems)
I can install VB 8 onto other computers along with my application, but that seems unusual. The other PCs never will be programming in VB. They want to just use my application. Question: Please explain to me in a step-by-step button clicking and dragging fashion how to do this. More Simple To Vb menu click build. Then outside the vb open the folder of Yr app. You'll find there a folder bin and there You have the exe file. Just run it and everything is ok ...Show All
Visual Studio Tools for Office Package Wizard etc
My system is as follows - Windows XP Pro, fully patched - .Net Framework 1.0 and 1.1, fully patched - Office 2003 Professional, fully patched - Development Environment 2003 including VB I have also attempted to install - Visual Studio Tools for Microsoft Office Systems 2003, which came with Visual Studio However, When I consult the log file at temp/vsto.log, I get a LOAD of weird errors e.g. "DEBUG: Error 2826: Control BottomLine on dialog MaintenanceWelcomeDlg extends beyond the boundaries of the dialog to the right by 5 pixels. " The final message in the log file seems to indicate that everything went OK!!! "MSI (c) (B4:10) [10:51:10:781]: Product: Microsoft Visual Studio Tools for the Microsoft Office System -- C ...Show All
SQL Server sqlxmlbulkload problem with schema
<xsd:element name="current-conditions" sql:is-constant="1"> <xsd:complexType> <xsd:sequence> <xsd:element name="date" type="xsd:string" sql:mapped="false"/> <xsd:element name="time" type="xsd:string" sql:mapped="false"/> <xsd:element name="reporting-station" sql:relation="weather"> <xsd:complexType> <xsd:sequence> <xsd:element name="city" type="xsd:string" sql:mapped="true"/> <xsd:element name="state" type="xsd:string" sql:mapped="true"/> <xsd:element name="temperature" type="xsd:str ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Debugging Content Pipeline
I'm trying to debug the content pipeline. I don't have VS Professional, only the express edition. I searched the forum an found a link to a blog that tell to try this: System.Diagnostics.Debugger.Launch(); I put this line in my content processor code, but when I compile VS output an error saying: "No JIT debugger registered on the current machine" Surfing the web i noticed that VS Express does not support JIT debugging. So, am I wrong or I can't debug the content pipeline Also... i found in some source code of a custom processor this line of code: context.Logger.LogImportantMessage("Message"); What's the need of this declaration How could I use it waruwaru, he's talking about content pipeline stuff. I' ...Show All
Visual Studio Team System Protected nested types, should CA1034 (NestedTypesShouldNotBeVisible) apply?
Currently, CA1034 suggests that types encapsulating implementation details of the containing type in a secondary, nested type are useful and should be private (inferred from "not be externally visible" and the fact that it warns about protected nested types). I would argue that the same is true for types that are encapsulating implementation details of the containing type and any derived types. If I want to declare a type that is only visible to subclasses of a type--for various reasons--the only way to implement this is to make that encapsulating type nested and protected in that base type. This, of course, raises a CA1034 warning. > Making a nested type protected is something the designer consciously has to do, ...Show All
Visual Studio Team System Error 2738 running tfpt.msi v1.2
1.Uninstalled the old Process Template Editor. 2.Installed the DSL Tools. 3.Installation of Power Tools 1.2 gives "Internal Error 2738" and finishes saying 'wizard interrupted', 'run setup later'. Can anyone provide details of that error Running the tfpt.msi via command line and creating a log says "Internal Error 2738" is a vbscript runtime error. Typing "regsvr32 vbscript.dll" fixed the problem. Running the Power Tools install again was then successfull. ...Show All
Visual Studio 2008 (Pre-release) WCF integration with GSOAP
Hi, I’m trying to write a c++ client that talks to .net WCF server. For that aim I’m using the GSOAP application. I was successful in writing a c++ client that talks to an asp.net server, but when I tried to write c++ client and a WCF server they failed to interact. When the client sent a request to the server the following fault was received: Error 415 fault: SOAP-ENV:Server [no subcode] "HTTP Error" Detail: HTTP/1.1 415 Cannot process the message because the content type 'application/soap+xml; charset=utf-8' was not the expected type 'text/xml; charset=utf-8'. It looks like the WCF server doesn’t know how to deal with the format of the client requests. Does anybody know why this occurs Can I change the ...Show All
Visual Basic Code for Drawing a circle
Hello all, I need to produce a data file that has the X and Y values for a circle. Origin at 0,0 and radius od 40. Any ideas Matt Hi, If you want to draw a circle on your form take a look at this msdn document: Drawing Shapes on Your Form cheers, Paul June A. Domag ...Show All
Visual Basic SplashScreen Help!
Hi I need help w/ my SplashScreen all i want it to do is Show another Form after it has been on the screen for like 5 seconds I know how to add it but when it shows up when my app is started it just sits there and doesnt go to the Form i want it to. I want it to go to my Login form after like 5 seconds can you help with that ...Show All
Visual Studio Team System Reporting Services is installed - no it's not!
Hi, I'm having problems getting passed the 1st hurdle in installing TFS. This will be a dual server install - and it's the data tier that's giving me a bit of grief at present. SQL 2005 (SP1) is installed on Win2003 (SP1). There are two instances of SQL Server on this server, one default instance and one named instance. Obviously, TFS will / should install to the default instance. My problem lies with the fact that the TFS install seems to think that Reporting Services is installed on this default instance. It was - but RS was then removed (I uninstalled it using the SQL Install from add/remove programs and then deleted the RS databases and RSExec roles etc from the SQL Server manually). Reporting Services is installed on the ...Show All
SQL Server about the e-mail question of Sql Server 2005 notification services
Dear all can notification services send a e-mail with a accessory of PDF file Tanks a lot. Out of the box, SSNS comes with a SMTP delivery channel that does not support attachments. However, you can easily create your own custom event provider for this. Or, the notification can send a hyperlink to a PDF file that's available online. HTH... Joe ...Show All
Visual Studio Express Editions How do I print Ascii characters?
Visual Basic 2005 Express Edition: I want to print arrow characters - up, down, right, left. I see them them in the Wingding font, but, how do I find out which key to use to select those characters Or, how do I know which ascii character number it is I tried the following code: For i As Integer = 0 To 255 RichTextBox1.Text = RichTextBox1.Text & i & " " RichTextBox1.Text = RichTextBox1.Text & Chr(i) & vbCrLf Next But, I need to switch fonts somehow in order to display i as a number, then chr(i) as a Wingding. Try this on an empty form (watch out for the forums wordwrap on long lines.) Public Class Form1 Private Sub Form1_Paint( ByV ...Show All
