Add References Dialog blank (in all express editions) Hey just go ahead and remove the Vista Transformation Pack.............it'll solve your problem!!! Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
VISUAL C++ AND VISTA Vista has a strong security enhancement so I suspect you might need to get Administrator permission to modify those files. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
no visual studio template found I have shifted your thread to the VC# Express Forum so that you get a better response. Regards, Saurabh Nandu www.MasterCSharp.com Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Save different lines of text from a listBox to different files? You are missing a loop that iterates over all items in your listbox and, of course, you need to create the different filenames. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Gzip Compression Creates Larger-than-original When Compressing some types of files When you try to compress a file that is already compressed the resultant file will often be slightly larger than the original file. Compression is based on the fact that most files contain redundant, structured patterns. After compression the file has a random structure. If you try to compress a file generated by a random number generator, you'll find that it can't be compressed. Any compression algorithm adds some overhead bytes to the file. If you want to avoid making files that are larger than the original, just compare the original and compressed files and keep the original if it is smaller. Usually though, it doesn't really matter because the two files will be close to the same size.
Edit: I meant to say
Usually though, it doesn't really matter because if the file isn't compressible, the two files will be close to the same size. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
How to search listbox for "Full Name" using lastname/firstname The following uses a space as the delimiter. It does a case sensitive search to find the first match and there is no error checking.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Count As Integer Dim Name As String Dim SearchString As String = TextBox1.Text Dim S() As String S = SearchString.Split(CChar(" ")) For Count = 0 To ListBox1.Items.Count - 1 Name = ListBox1.Items(Count).ToString If Name.StartsWith(S(0)) And Name.Contains(" " & S(1)) Then ListBox1.SelectedIndex = Count Exit For End If Next If count = ListBox1.Items.Count Then ListBox1.SelectedIndex = -1 End If End Sub Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Change Keyboard layout Try assigning the InputLanguage.CurrentInputLanguage property. I can't try it, I just have US. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
How would you.... Since about windows 2k keyloggers have been becoming harder and harder to make and use simply because they are a security risk.
I know you may not like this, but I suggest the problems are family problems and not technical problems and should not be solved technically. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Deploying using a 3rd party tool The one you are looking for is the bin\release
Build your project and then all your project files will be in this folder
You need all the files in the folder to include in your installer
The debug folder is your development testing folder
Release is just that - ready to release project
I believe the other folders are pre-compile folders (obj\debug - release) Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Display Problem What does the variable 'sResult' contain and where is it being set More than likely this is never equal to 'sChoice' therefore the condition is always false resulting in 'ilncorrectNum' always being incremented
Also, you can use:
'iCorrectNum += 1' and 'iIncorrectNum += 1' to increment these variables instead of 'iCorrectNum = iCorrectNum + 1' and 'iIncorrectNum = iIncorrectNum + 1'
'lblCorrectDisplay.Text = Convert.ToString(iCorrectNum)' can also be written as 'lblCorrectDisplay.Text = iCorrectNum.ToString'
'lblIncorrectDisplay.Text = Convert.ToString(iIncorrectNum)' can also be written as 'lblIncorrectDisplay.Text = iIncorrectNum.ToString' Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
VB Language Hey,
THe VB.NET Express Edition uses VB.NET, which is similar to VB6, with some noticable differences. Here are some articles on the differences:
http://www.vbdotnetheaven.com/UploadFile/mahesh/differenceVBNetVB04252005051004AM/differenceVBNetVB.aspx
http://www.codeguru.com/vb/gen/vb_general/ideincludingvisualstudionet/article.php/c11081 Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Converting VBA to VB There are quite a few of us out here that want VBA in VB.net. It's here.
Do a search in the forum for Speadsheet Gear and also check out this link
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1502922&SiteID=1
if you give me more info on what your program does i can help you furthur. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Adding Favourites I'd look at the favorites files with an editor. You'll see that they are simple text files and can be easily created with VB. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
webbrowser zoom Try the following:
Code Snippet
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Document.Body.Style = "zoom: 200%" End Sub Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
For Begining Hi,
you might take a look at:
http://www.charlespetzold.com/dotnet/ Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Process Keeps Running... In Project / Properties, is "Shutdown mode" set to "When startup form closes" Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
process kill
Guys
This was why I recommended a control instead of the DLL. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Copy a Form? Bob Heitzman,
I hope the following article on Forms collection can help you with the problem:
How to create a forms collection in Visual Basic .NET or in Visual Basic 2005
http://support.microsoft.com/kb/308537/
Visual Basic .NET or Visual Basic 2005 does not provide a built-in collection for Form objects that are used in a project. This article demonstrates how to build a custom collection class that essentially supports the same functionality as the previous versions of Microsoft Visual Basic. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Collision As XNA is supported for VB Express (Yet!!!)
I would advise asking XNA questions in the forums related to XNA
http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=20&SiteID=1
Your much more likely to get a response on how this stuff works. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Simple Question You either need a global reference to form 1 or you need to pass the reference in the forms constructor, or you can have a variable reference to the form in form 2....
Public Class Form1
Public Fred as Double
Private Sub Test()
Dim f2 as New Form2
f2.f1=Me
f2.Show
End Sub
End Class
Public Class Form2
Public f1 as Form1
Public Sub ChangeFred()
f1.Fred=x-axis
End Sub
End CLass Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
'Stringbuilder' issue or question - not sure which? Those three bytes are called the BOF for beginning of file.
I've had to strip them off before and am supplying the relevant pieces of the console program I wrote as a striping utility.
In this code, replace the commandline args with a filename string.
Try bR = New FileStream(Environment.GetCommandLineArgs(1), FileMode.Open) Catch ex As Exception Console.Write("Cannot open " + Environment.GetCommandLineArgs(1) + " for read") Console.Write(ex.Message) Exit Sub End Try Infilelen = bR.Length Dim buffer(bR.Length - 1) As Byte Try bR.Read(buffer, 0, bR.Length) Catch ex As Exception Console.Write("Could not read " + Environment.GetCommandLineArgs(1)) Console.Write(ex.Message) Exit Sub End Try
bR.Close() bR.Dispose()
If buffer(0) <> &HEF Or buffer(1) <> &HBB Then
Console.Write(Environment.GetCommandLineArgs(1) + _
" does not have signature." )
Exit Sub
End If
Try
System.IO.File.Delete(Environment.GetCommandLineArgs(1))
Console.Write(Environment.GetCommandLineArgs(1) + " deleted." )
Catch ex As Exception
Console.Write( "Error deleting " + Environment.GetCommandLineArgs(1))
Console.Write(ex.Message)
Exit Sub
End Try
bW = New FileStream(Environment.GetCommandLineArgs(1), _
FileMode.CreateNew, FileAccess.Write)
bW.Write(buffer, 3, Infilelen - 3)
bW.Close()
Console.Write( "Three signature bytes stripped from: " +
Environment.GetCommandLineArgs(1))
bW.Dispose() Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Why am I getting "End of statement expected"? I don't kknow if this is a board artifact or not but there should be a continuation line after handles
Private Sub txtReadRegValue_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _ txtReadRegValue.TextChanged
if txtreadregvalue.Text not txtreadregvalue.Text then
cmdOpenPort.PerformClick()
End If
The line in yellow doesn't make sense to me.... Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
combobox dropped down This is what i have right now
It works but you would have to make an if then statement to keep it from dropping down everytime your mouse enters the page
Private Sub TabPage2_MouseEnter( ByVal sender As Object , ByVal e As System.EventArgs) Handles TabPage2.MouseEnter
ComboBox1.DroppedDown = True
End Sub Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Overwrite Picture Question I just wanted to follow up on this question, because I'm not sure if there is an easier way to do this. It seems a bit unnecessary to load the image into memory, etc. Can I just close the connection to this picture I also have a click event on the pictureBox, which shows a larger picture. I could close this connection as well, if that is possible... Any help and information is greatly appreciated. Thanks, Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Video file attributes? You could use the VideoControl or WindowsMediaPlayer to get the attributes of the video. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
How to Print an RTF Document. бо Posted by Nobugz
бо http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1044135&SiteID=1
Imports System Imports System.Text Imports System.Drawing.Printing Imports System.Windows.Forms Imports System.Runtime.InteropServices Public Class RichTextBoxPrinter '--- P/Invoke declarations <StructLayout(LayoutKind.Sequential)> _ private structure CHARRANGE Public cpMin As Integer Public cpMax As Integer End Structure <StructLayout(LayoutKind.Sequential)> _ Private Structure RECT Public Left As Integer Public Top As Integer Public Right As Integer Public Bottom As Integer End Structure <StructLayout(LayoutKind.Sequential)> _ Private Structure FORMATRANGE Public hdc As IntPtr Public hdcTarget As IntPtr Public rc As RECT Public rcPage As RECT Public chrg As CHARRANGE End Structure Private Const WM_USER As Integer = &H400 private Const EM_FORMATRANGE As Integer = WM_USER + 57 Private Const Hundredth2Twips As Integer = 20 * 72 \ 100 Private Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wp As IntPtr, ByVal lp As IntPtr) As IntPtr Public Shared Function Print(box As RichTextBox, ByRef charFrom As Integer, e As PrintPageEventArgs) As Boolean '--- Prints text in <box>, starting at <charFrom>. Returns <true> if more pages are needed If box.Text.Length = 0 Then Return False Dim fmtRange As FORMATRANGE '--- Allocate device context for output device Dim hdc As IntPtr = e.Graphics.GetHdc() fmtRange.hdc = hdc fmtRange.hdcTarget = hdc '--- Set printable area, converted from 0.01" to twips fmtRange.rc.Top = Convert.ToInt32(e.MarginBounds.Top * Hundredth2Twips) fmtRange.rc.Bottom = Convert.ToInt32(e.MarginBounds.Bottom * Hundredth2Twips) fmtRange.rc.Left = Convert.ToInt32(e.MarginBounds.Left * Hundredth2Twips) fmtRange.rc.Right = Convert.ToInt32(e.MarginBounds.Right * Hundredth2Twips) '--- Set page area, converted from 0.01" to twips fmtRange.rcPage.Top = Convert.ToInt32(e.PageBounds.Top * Hundredth2Twips) fmtRange.rcPage.Bottom = Convert.ToInt32(e.PageBounds.Bottom * Hundredth2Twips) fmtRange.rcPage.Left = Convert.ToInt32(e.PageBounds.Left * Hundredth2Twips) fmtRange.rcPage.Right = Convert.ToInt32(e.PageBounds.Right * Hundredth2Twips) '--- Set character range to print fmtRange.chrg.cpMin = charFrom fmtRange.chrg.cpMax = box.TextLength '--- Marshal to unmanaged memory Dim hdlRange As IntPtr = Marshal.AllocCoTaskMem(Marshal.SizeOf(fmtRange)) Marshal.StructureToPtr(fmtRange, hdlRange, False) '--- Send RichTextBox the EM_FORMATRANGE message to print the text Dim res As IntPtr = SendMessage(box.Handle, EM_FORMATRANGE, CType(1, IntPtr), hdlRange) Dim err As Integer = Marshal.GetLastWin32Error() '--- Release resources Marshal.FreeCoTaskMem(hdlRange) e.Graphics.ReleaseHdc(hdc) '--- Throw exception on error so we don't endlessly print an empty page if (res = IntPtr.Zero) then throw new ApplicationException(string.Format("Printing failed, error code={0}", err)) '--- Update <charFrom> to next character to print, return <true> if more pages needed charFrom = res.ToInt32() return charFrom < box.TextLength End Function End Class Now drop a RichTextBox, a PrintPreviewDialog, a PrintDocument and a button control onto your form. Paste this code into the form: Public Class Form1 Private mCharFrom As Integer Public Sub New() InitializeComponent() Me.PrintPreviewDialog1.Document = Me.PrintDocument1 End Sub Private Sub PrintDocument1_BeginPrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs) Handles PrintDocument1.BeginPrint mCharFrom = 0 End Sub Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Try e.HasMorePages = RichTextBoxPrinter.Print(RichTextBox1, mCharFrom, e) Catch ex As Exception MessageBox.Show(ex.Message, "Printing failed", MessageBoxButtons.OK, MessageBoxIcon.Error) e.Cancel = True End Try End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PrintPreviewDialog1.ShowDialog() End Sub End Class Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
Compiling Maya Plugins error Well, the first problem is caused by the line endings, you can use advanced save options to change this. It is File->Advanced Save Options and change the line endings to either Windows (CR LF) or Unix (LF).
The second problem, have you installed the Windows Platform SDK and registered it with the IDE. Since it is not finding windows.h then it tells me you haven't done this. Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions
MOUSE OVER help! Client side coding is the only way. JavaScript is most typically used to create roll over buttons. I'm not sure is there a ready ASP.NET component which creates the functionality But here is a tutorial which describes how to create your own (check if there is a ready implementation in the Toolbox of visual studio before implementing this!). Tag: Visual C# Express Edition c# express 3.0 available? Visual Studio Express Editions