Software Development Network Logo
  • Visual Basic
  • Windows Live
  • Game Technologies
  • Smart Device
  • Visual Studio
  • Architecture
  • VS Express Editions
  • Windows Forms
  • VS Team System
  • Visual J#
  • Microsoft ISV
  • Visual C++
  • Visual C#
  • .NET Development
  • Windows Vista

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

pater

Member List

Chrutil
Przemys?aw Rokicki
Infolux
Francis Griffin
Tim Conlan
AAtallah
WikiServer Guy
rdb
RizwanSharp
Cortex
MikeTaj
That Tim Guy
neetu_fzr
nima_API
David Gallivan
RESAT
Alejandro Gutierrez
nkerkin
andre_durand
yunjian
Only Title

pater's Q&A profile

  • Visual Basic Opening empty file as XMLDocument

    Hi, in my form load I'm looking for an xml file and if it does not exists then I create it. But wen I try to open it as an XmlDocument it popups an error. I thik its because the created file is empty. Could I add the line " < xml version ="1.0" encoding ="utf-8" > " to the file on its creation and how Here's the code : Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles MyBase .Load If Not File.Exists(FICHIER) Then MsgBox("Le fichier " + FICHIER + " vient d'etre cree donc aucune expressions regulieres n'est disp ...Show All

  • SQL Server Cannot open database "eBayTrader" requested by the login. The login failed.

    Hello. I'm using Visual Web Developer, .NET Framework 2.0, ASP.NET 20., IIS 5.1. on Windows XP Pro SP2. I have assigned every possible user i can think of full permissions to the web folder, all of the subfolders, and the database files. This includes Administrator, Administrator Groups, ASPNET user, IUSR_Machine, Interner guest account, Network Group, Network Service Group, Power Users Group, Users. I'm logged on as administrator. When i run the web service from within VWD, i get this error. Cannot open database "eBayTrader" requested by the login. The login failed. Login failed for user 'DHJC2R91\ASPNET'. Does a ...Show All

  • Windows Forms Blank Rows in DataTables

    I've implemented a function to insert a blank row into my datatable, however, I'm running into a few issues with it. Namely, it's not adding a blank entry for all the columns. Is there a way to iterate through the columns in my combobox, and based on the datatype of the column, insert the appropriate blank value Currently I have the following: Friend Shared Function InsertBlankRow( ByVal Source As DataTable) As DataTable Dim myNewSource As DataTable = Source Dim myBlankRow As DataRow = myNewSource.NewRow Dim i As Integer MessageBox.Show(myNewSource.Columns.Count) For i = 0 To myNewSource.Column ...Show All

  • SQL Server Error message "Object reference not set to an instance " when accessing servername/reports virtual directory

    The above message appears when logging in to SQL Reporting Services 2000 SP2 The only link available from the screen is a home button but the user interface does seem to be picking up the correct stylesheet (colours OK, etc) The server is windows 2000 with MS SQL 2000 Sp4 and Reporting Services SP2 Requesting a report works fine from servername/reportserver but cannot get to the U.I. for setting permissions, etc. Any help gratefully received. ...Show All

  • Visual Basic vb6 convertion

    I am porting a project from vb6 to vb.net 2005 and I cannot figure out one convertion. 'This Function gets the text of the window Private Function GetText(Get_hWnd As Long) As String Dim lenTxt As Long, retText As String lenTxt = GetWindowTextLength(Get_hWnd) + 1 retText = String$ (lenTxt, " ") GetWindowText Get_hWnd, retText, lenTxt GetText = retText End Function The bold function is what I cannot figure out. I know the String function is the following: String Function String( number , character ) Returns a Variant of subtype String that is of the length specified by number and is filled ...Show All

  • SQL Server SQL DMO Support in SQL Server 2005...

    Hi,     We have a C++ application that uses the raw SQL DMO COM interfaces to connect to the SQL Server 2000. When this application tries to connect to SQL Server 2005, it failed to connect for obvious reasons. I tried to use the latest SQL DMO interfaces and, to my surprise, in the June CTP, I didn't find any header files that contains the COM interface definitions for the latest SQL DMO. Is this something that MS forgot to include in the install SQLDMO documentation in June CTP says that the SQL DMO header files will be found under 90\Tools\DevTools\Include. I did a complete install of the June CTP and I don' ...Show All

  • Visual Basic Where Used Xref

    The .Net IDE has a nice feature "Go To Definition", which takes you to the definition of a given symbol. I'm looking for the oposite reference, "Show where used", so I could select say a method (function or sub) and see all the places that it is called. Of couse I can do this by searching source, which is what I do, but it is not so accurate and it seems like this is something that the IDE could support (at least  within a single assembly). Any ideas Thanks ...Show All

  • Windows Forms Problem in Me.ActiveControls

    Hi, I have a toolstripcontainer defined and i have 2 buttons inside the toolstrip. I want to use the Me.Activecontrols.Name to check the button that was clicked, but it always returns the toolstrip control name. Let me know how to get the button that was clicked with Me.ActiveControls.Name Private Sub btn_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn.Click MsgBox( Me .ActiveControl.Name) End Sub Thanks, Kris Are you adding Toolstripbutton or regular Windows Forms buttons to the ToolStripContentPanel -Mamta ...Show All

  • Visual Studio Express Editions Get the focus or selected item from the previous object

    Hi I am using the contextmenu so that when the user right clicks an options to copy the selected data appears. When the user clicks the copy option on the contextmenu the selected data in the listview is supposed to be copied to the clipboard. I have done all that BUT the data does not go to the clipboard. The clipboard is empty. The problem is that when the user clicks right clicks the focus moves to the copy option. So there is no selected text from the listview as the focus has moved. How do I get the selected text from the listview Please help Something else must be wrong. Normally a menu does not get focus and even ...Show All

  • Visual C# variable problem

    I am declaring an integer as a 6 digit counter: int intCount = 000000; The purpose is to use the number as part of a naming scheme.  Building the name looks like this: strName += intCount; intCount++; The problem I'm having is that this assigns the values as 0, 1, 2, 3 rather than 000001, 000002, 000003, etc. Does anyone know what I need to do in order for my counter to have the 6 digits Thank you When you convert the integer to a string use the overload of ToString() that accepts a format string.  Use the following format string to pad the number to 6 digits. ToString("000000") Michael Tayl ...Show All

  • Visual Studio Express Editions Getting HELP

    I am perhaps a little slow (stupid). Deal gently with me! I have loads of nice simple examples of every thing I learned to do in VB 6, this meant that when I had forgotten how to do something I had done before I did not need to look through miles of code. So, now I have downloaded Visual Basic Express the MyVB (originally some VB2 much VB4 then updated via 5 and 6 with new regular new examples) now I am trying to update to VB express. Ok so I get errors. If I go to MENU + HELP + "How do I" help I get online help at this URL: http://msdn2.microsoft.com/en-US/library/756acb4f-6bc6-422a-8133-b241e5003a93.aspx  this works if I click i ...Show All

  • Visual Studio Express Editions How do I build a dll from command line using C# express ?

    I have C# express installed and would like to build a dll with following command : csc /target:library /out:bank.dll a.cs The windows Command Prompt responds with " 'csc' is not recognized ..." I know in VS 2003 I can use the .NET Command Prompt. How do I do this for C# express so that my above dll build command will be recognized thanks. The C# command-line compiler is located in the .NET Framework directory. This folder is typically located here: %SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727 For example: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 ...Show All

  • Visual Basic Index was outside the bounds of the array.

    I get that exception for this line of code....I was wondering i did take a look of the index of the listbox to make sure i was referring to the right file and it is 0.....so what seems to be the problem.....Any help private void btnread_Click( object sender, System.EventArgs e) { string [] thefiles; thefiles = System.IO.Directory.GetFiles("C:\\"); string thefile = thefiles[0]; if (thefile.Substring(thefile.Length-3,3).ToLower() == "xml") { MessageBox.Show("Hello"); } } The double backslash ("C:\\") is weird but it actually works on Windows X ...Show All

  • SQL Server Stored procedure issues...

    Hi, I have a table set up in SQL Server Express with the following columns: PartNumber (PK, smallint, not null) PartName (nchar(50), not null) Status (nchar(10), not null) Price (decimal(8,2), not null) What I want to do is create a simple .Net form where the user types in a search key and the key is matched against the PartName field to provide matches. This was easily done in the .aspx file itself: SELECT * FROM dbo.PartsTemplate WHERE PartName = @PartName ORDER BY PartName ASC It works exactly as it should. However, since I'm still learning my way around SQL Server Express (and to a degree SQL itself) I wanted to try creating it as a stor ...Show All

  • Visual Studio can't install VS2005 - "not a valid win32 application"

    I'm trying to install visual studio on desktop with an AMD64 processor (but using 32-bit XP Pro), and when I try to install Visual Studio 2005, I get a "not a valid win32 application" in a dialog box. I get the error "D:\ is not a valid win32 application" when I try to use autoplay, and "D:\setup.exe is not a valid win32 application" when I try to run setup directly from the disc. Any ideas When I opened the installed programs it said "AMD 64 bit" Greg ...Show All

©2008 Software Development Network