riemerg's Q&A profile
Visual Basic problem with menustrips in vs 2005
Hi, i'm new to using visual studio2005. in my application i'm using menu strips and there i have added one toolstripmenu item and one toolstrip separator. and I also added some toolstrip menu items dynamically. the problem is when i want to access those menuitems using the for each loop i'm getting an exception that unable to cast from the tool strip menu item to tool stripseparator. I'll paste the part of the code here to understand my problem clrear. regards GRK code: Dim item As New ToolStripMenuItem(dev.Identity.ProductName, Nothing , New EventHandler( AddressOf OnDeviceClick)) Me . ChooseDeviceToolStripMenuItem.DropDownItems.Add(item) Next ************************************************ ...Show All
Windows Search Technologies WDS Installed, but not visual in the Taskbar?
I have it installed, and am using it in other programs. I know when I got my computer straight from the factory it was present, but in the mist of personalizing, the WDS is no longer in the taskbar. My Support info in the ADD/REMOVE says: Windows Desktop Search v. 06.00.5361.0000 Any Ideas on how to get it back in my taskbar Or another forum dealing with the same issue Thanks, Nick Nicholas, Please see my reply to your other post in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=367026&SiteID=1 Paul Nystrom - MSFT ...Show All
.NET Development c#.net: Unable to update records with sqlDataAdapter
Hi expert. I was facing some problem when updating using data adapter. I was binding d data into dataset using data adapter. Den when i make changes to d dataset n call d data adapter update command, d records is not updated. Here my code in populating d dataset with d data adapter (which doesn't hf problem) private void UpdateDatabase_Load(object sender, System.EventArgs e) { string sqlDBconn = "Persist Security Info=False;Integrated Security=SSPI;database=Emp;server=localhost"; SQLConn = new SqlConnection(sqlDBconn); string selectCMD; selectCMD = "select * from Employee"; myAdapter = new SqlDataAdapter(selectCMD, sqlDBconn); myDataSet = new DataSet(); myAdapter.Fill(myDataSet, " ...Show All
.NET Development Deleting file from fileserver
I would like to be able to delete a file from a file server. I have code to do it for an ftp server, but u nfor tunately applying this code to files on a file server does not work since the following does not exist: FileWebRequest request = ( FileWebRequest ) WebRequest .Create(serverUri); request.Method = WebRequestMethods . File .DeleteFile; I also have a way to make a temporary z drive and work with code that basically inputs into a command window. The problem here is I am not sure what the command line is to delete a file. Also, the file server will be protected by a username and password, so I need to take that into account. Does anyone know the best way to go about deleting a file from a file server If you leave ...Show All
SQL Server Change page title from "Report Viewer/Manager" to the actual report name?
Can a person change the page title from "Report Viewer/Manager" to the actual report name Yea, that's a possibility, but not do-able for 50 separate reports :/ Maybe there's some hack to set the page name that's shown by default ...Show All
Game Technologies: DirectX, XNA, XACT, etc. culling away front faces
I am experiencing problem culling away front faces of a simple cube. The culling is performed in an effect shader with CULLMODE = CW; I have listed the vertex and index buffers below, if anyone have any hints to my error please say soo. SVertex Vertices[] = { { 0.0f, 0.0f, 0.0f}, // v0 { 0.0f, 1.0f, 0.0f}, // v1 { 1.0f, 1.0f, 0.0f}, // v2 { 1.0f, 0.0f, 0.0f}, // v3 { 0.0f, 0.0f, 1.0f}, // v4 { 0.0f, 1.0f, 1.0f}, // v5 { 1.0f, 1.0f, 1.0f}, // v6 { 1.0f, 0.0f, 1.0f} // v7 }; // indeces for vertex buffer triangles t0 to t7 WORD Indices[] = { 0,1,2, 3,0,2, // front 3,2,6, 7,3,6, // right 1,5,6, 2,1,6, // top 6,5,4, 4,7,6, // back 5,1,0, 4,5,0, // left 4,0,3, 7,4,3 // bottom }; ...Show All
SQL Server locked out of sql server management studio
Hi everyone, I hope someone can help me here! A friend of mine set up a Windows 2003 Server for me in my home with Sql Server 2005. I'm developing a website for prospective employers to see the kinds of things I can program since I have no field-related work experience. I have a cool site up, but I can't showcase the any features that use sql server (which obviously, are the kinds of things employers want to see) because the login and password my friend remembers produces this error: Cannot connect to server. Additional information: An error has occurred while establishing a connection to the server. When connecting to sql server 2005, this failure may be caused by the fact that under the default settings sql server doesn't ...Show All
Visual Basic New Line
have a variable Public NewLine As String = Microsoft.VisualBasic.Constants.vbCr + Microsoft.VisualBasic.Constants.vbLf but when I try to write it gives me a null string ('',) along with the new line in the text file. I have tried: 1. Write(CurrentReportFileNum, NewLine) 2. Dim strWrite = (NewLine + "TEXTBOX") Dim strWrite = "TEXTBOX" Write(CurrentReportFileNum, strWrite, SlideNumber, CurrentDataTitle) 3. Write(CurrentReportFileNum _ , PtsLeft, PtsTop _ , (PtsRight - PtsLeft), Abs(PtsBottom - PtsTop) _ , TxtRotation, Label_Str, TxtAlignment, FontName, FontSize _ , FontBold, TextOrientation, Shaded, ForeColorRGB, NewLine) and they all give the null string after the line return. ...Show All
Software Development for Windows Vista XPS Comparing
Is there a way to compare two versions of an XPS document to highlight the changes made similar to windiff Hi Jasens, this depends on how different the documents can be, and how do you want to look at the differences. Basicly it are all xml documents inside, if you only expect relative minor differences (like a change in text, font change, etc..) you could do a diff at that level (presumably even with your windiff application). If you really want a graphical view of the differences (to see image and color changes and so on), I think the best way is to convert the files to a pixel format and do a diff on that. I do not know of a tool for the moment that does the latter automatically for xps. Regards, nixps ...Show All
Visual Studio 2008 (Pre-release) BUG: 'Converter' doesn't work for nested ItemsControl
I think there is a bug concerning 'Converters' when using nested bindings. The example program in this solution should print the following output: 1:1.1 2:2.1 2.2 3:3.1 3.2 3.3 The example program iterates through two levels. I only use a converter for the second level. The converter doesn't convert anything, but is used to illustrate the problem. The output that I receive looks like: 1:1.1 2: 3: I think this is a bug in WPF. Compile and run the example program and you'll see what is wrong. Remove the 'Converter={...}' part from the 'TextBlock' and you'll see that everything works fine. Check http://home.ict.nl/~ramklein/Download/ExposeBug.zip for the complete example that clearly illustrates the bug. Does anyone have details ...Show All
Windows Forms Access Form2 from Form1
hi i have 2 forms i have a textbox control Form1: Friend WithEvents txtAccCode As System.Windows.Forms.TextBox Private Sub txtAccCode_KeyUp( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtAccCode.KeyUp If e.KeyCode = Keys.F1 Then Dim frmSearch As New frmSearch frmSearch.Show() End If End Sub Form2 Form1.txtAccCode.Text = "Abc" Form1.lblAccName.Text = "Abc" How i can access you need to have a reference of the caller form. you need to pass form1 instance into form2 and reference that from form2 to access form1. Take a look at this: http://forums.microsoft.com/MSD ...Show All
SharePoint Products and Technologies I need to create a custom webpart?
Hi, the requirement is this: Im implementing a simple portal with Sharepoint Services 3.0 that going like this: http://img15.imgspot.com/u/07/57/14/portalServices1172605888.GIF As you can see, in the first webpart the user see the list of projects workspaces that he have permissions and, if he click in "View Details", I refresh the 2nd webpart (ProjectMainDataWebPart) and show the main data for that project and the user is allowed to modified this shared data. The first webpart was developed without any problems with VS.NET 2005, WebPart Class and the Microsoft.Sharepoint.dll assembly. But, im going crazy with the secound webpart, because the DetailsView that you see there is giving me so much problems with the postba ...Show All
SQL Server Unexpected end-of-file (EOF) SQL DTS
when i am running bulk insert from codebehind but have a error = " Unexpected end-of-file (EOF) encountered in data file. OLE DB provider 'STREAM' reported an error. The provider did not give any information about the error. OLE DB error trace [OLE/DB Provider 'STREAM' IRowset::GetNextRows returned 0x80004005: The provider did not give any information about the error.]. The statement has been terminated." can i do Sounds like the source provider is expecting data when none was given... Or you've got an EOF character in the file that's causing issues. Ensure your data is clean and mapped appropriately. ...Show All
.NET Development how can i utilize unmanaged delphi7 Dll in C# dot net
hi, i am using a delphi7 dll in C# dotnet , the delphi7 dll returns datatype of Tdataset , i am assigning the return dataset to dotnet dataset, but at the time of running the application i am getting an error message of " Attempted to read or write protected memory. This is often an indication that other memory is corrupt " The C# dot net code is using System; using System.Collections.Generic; using System.Data; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Runtime.InteropServices; namespace Test { public partial class Form1 : Form { public Form1() { InitializeComponent(); } [ DllImport ...Show All
Visual Studio Team System Server was unable to process request. ---> There was an error generating the XML document.
I got this error when I log into the TFS Server. ---- Error Server was unable to process request. ---> There was an error generating the XML document. --> The type Microsoft.TeamFoundation.VersionControl.Server.PendingSet was not expected. Use XmlInclude or SoapInclude attribute to specify types that are not known statically. more info TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 9/22/2006 1:17:20 PM Machine: BIEL Application Domain: /LM/W3SVC/2/Root/services-1-128034046397101949 Assembly: Microsoft.TeamFoundation ...Show All
