Alexey Rokhin's Q&A profile
Visual Basic listbox not saving...
hi, i'm trying to write a program with a listbox and trying to save it using streamwriter and i cannot get it to work.here is the code:Dim saveFileDialog1 As New SaveFileDialog saveFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" saveFileDialog1.FilterIndex = 2 saveFileDialog1.RestoreDirectory = True If Me.savefiledialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Dim grocerySW As New IO.StreamWriter(saveFileDialog1.FileName) For Each i As Object In Me.groceryListBox.Items grocerysw.WriteLine(i.ToString) Next End Iffirst of all, when i run the program, and try to save it, if i type in a new filename, i get an error saying the file cannot be found. how can i correct this ...Show All
.NET Development Creating Data Source in Visual C++ Express... help me..
Hi! If You can help me on that subject than look here: LINK TO MY POST Thank you for any help... for now there is 337 visits on my post and 0 replies from other users than me.... With Regards. Arczi. OK. I think that tis subject can be close. FINAL CONCLUSSION : ther is no chance to use under Visual C++ Express database created on SQL Server Express With best regards. Arczi. ...Show All
Visual Studio 2008 (Pre-release) windows form controls
Hi i found this article: http://msdn2.microsoft.com/en-us/library/ms750559.aspx Here is NotifyIcon between controls, there have no ekquivalent in wpf. I need know, did this control from System.Windows.Forms work in Vista Thx you can use notifyicon in WPF even though its a winforms control... Also mentioned on the linked page " You can always use interoperation to host Windows Forms controls that do not have equivalents in your WPF-based applications " ...Show All
Visual Studio Minmum Visual Studio 2005 Version to use Addins?
Hello everybody, I've been searching for information whether there is a minimum version of Visual Studio 2005 needed to use Addins (not to build, just to load and use) for quite a time now but didn't find anything. So, are there any restrictions I recognized that the Express Editions for example don't have the Addin Manager (or at least I couldn't find it in C++ Express). If there is a minimum Version, how can I check for its existence in my setup project Thanks for help, Marco Hi Marco, You need to check is there a Visual Studio Standard Edition or higher version installed on user's machine. If you use WiX toolset for creating the setup you can overview the sample of how to validate the versi ...Show All
.NET Development How to access Menu in MasterPage from Content Page
Hi, I have a Master Page having asp:Menu controls having datasource as SiteMapDataSource. Depending on the menu item clicked corresponding page loads. I changed the style of the selected menu item using StaticSelectedStyle attribute. but when i clicks any hyper link on that content page which loads another page the menu item style is changing to StaticMenuItemStyle. I want to show the style as StaticSelectedStyle. How can i do that I tried accessing that Menu control from content pages page load function. But content page load is calling first and Master page load is calling next . So its throwing exception. Is there any solution for this Regards, Mohan. you can do it like this Get th ...Show All
Visual Studio How to draw BitMap using Co-ordinates
Hi, I want draw a image using X,Y coordinates.(Ex- (88,50)(86,49),(87,48)) Can some body give me idea how to draw a bit map using co-cordinates. Thx & best rgrds Roopesh ...Show All
Visual Studio read off file
Hi guys, I Have a file my rootdirectory, XXXX.txt, and I would like to read the contents of it because it contains the build number, for example 784940.1. I wanna be able to get that string and create directories with it. To create directories is pretty straightforward, but to read the contents of file I need some help. Thank you in advance, cdoloriert. Thanks for that, But now this is another problem, In my beforeBuild target, the file buildNumbers.txt is read because it contains the build number. It uses the taskparameter lines and ItemName ItemsFromFile. The string is stored in ItemsFromFile colection and I can see it work because of the line <WriteLinesToFile File="c:\test.txt" Lines=" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA + Bluetooth
I am new to game development but have been trying to learn everything I can about XNA and what it can do, so far I have yet to find any articles (I could just be missing them) about using XNA to inject your own Bluetooth operatibility for various Bluetooth devices on your Xbox 360. Is this possible - I think it is, but I imagine I am going into uncharted lands There is no network API in the Xbox 360 version of the XNA Framework or base class library. I'm not even sure Xbox 360 supports connecting to Bluetooth devices, but if it does, then we did not expose it. --Stephen ...Show All
SQL Server SQL2005 database mailer problem
Hi there, Got a 2005 SP1 SQL box, with database mailer giving problems. In the sysmail_event_log is has 1) Exception Information =================== Exception Type: System.NullReferenceException Message: Object reference not set to an instance of an object. Data: System.Collections.ListDictionaryInternal TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32) HelpLink: NULL Source: DatabaseMailEngine StackTrace Information =================== at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID) at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.SessionManager.GetAccount(Int32 accountID) at Microsoft.SqlServer.Management.SqlIMai ...Show All
Visual Studio Tools for Office Maybe I'm missing something...
Having played around with VSTO 2005 for a bit, having prior experience programming against the Office applications object model via .Net interops, and having done a bit of digging around, it seems like it's not possible to create a custom task pane that loads with every document, even a user's own existing documents. What gives here word.mvps.org claims: Task Panes display within a Work Pane’s area. A Work Pane is created by the combination of two objects. These objects are shrouded in misery and thwart most attempts to play with them. The whole area is hidden away from the Kill Cursor invoked with Ctrl+Alt+-, which changes to a hand when waved over a Work Pane. Functions are hidden away from the macro recorder. To make it eas ...Show All
Visual C++ fatal error LNK1104 and openGL
I'm trying to get some openGL tutorials to run on my PC, i'm using visual studio 2005 (not VS2005 express, btw), and have placed the openGL libraries and dlls in the correct folders. i have ensured that the linker has connected to these folders, however, for the life of me, i cannot figure out why i always get the following error: fatal error LNK1104: cannot open file 'glut.h' any help would be much appreciated EDIT: glut.h is in the following folder: C:\Program File\Microsoft Visual Studio 8\VC\PlatformSDK\Include lol, thanks mike, i had indeed copied and pasted the .h into the linker rather than the .lib it's always the little things that take forever to figure out. cheers, guys ...Show All
Windows Forms Drag And Drop events
I want to be able to drag and drop a control anywhere on a form while its executed....I am trying to do it but it wont let me drag what am i doing wrong private void textBox1_MouseMove( object sender, System.Windows.Forms.MouseEventArgs e) { if (MouseButtons.Left == MouseButtons.Left) { this .DoDragDrop( this .textBox1,DragDropEffects.Move); } } This is how i tried it again I just want to be able to move a combobox control with my panel....but this gives me no results...or any errors...any help on what i am missing... private int posx; private int posy; private void comboBox1_MouseDown( object sender, System.Windows.Forms.MouseEventArgs e) { ComboBox cb = (ComboBox)sender; ...Show All
Windows Forms Strange behaviour - Child Form Array
Hi, I have a VC++ .Net 2003 MDI application. I am declaring a __gc Array in the frmChild_load method of the child form. The declaration is as follows Double zData __gc[,] = new Double __gc[10,10]; It compiles and links properly but I get the following run-time error!!!!! Error: Method not found: Void System.Array. (System.EventHandler) The same declaration of array in the Parent form load method does not give any error Please let me know if i am missing something ar the array has to be initialized in some other way TIA Suneet Hi nobugz! thanks for your inputs. I have contacted MS support and waiting for their response. Will post their reply here for benefit of others thanks Suneet ...Show All
Community Chat Is MS trying to throw away menu bar?
In IE7, classic menu bar is disabled by default. In Office 2007, there is not menu bar at all. Also the traditional toolbar is gone. I can't find a way to create my own custom toolbar too. What's happening I know menu bar is very classic and not pretty, but it is one single place that I am 100% sure that I can get all the features from a program. I don't want to lose it. Word isn't the only Office-client with the ribbon. How about PowerPoint Doesn't it make sense to add images, graphs etc objects to the presentation Besides, I often add graphs and diagrams to Word-documents, too. Makes architectures easier to describe and read. ...Show All
SQL Server New to SSIS and can't seem to get started off right.
I am trying to show my employer the benefits of using SQL SERVER (2005) vs. MS Access. My problem is I can't get past a something I believe to be simple. I created a project in Business Solutions (I tried multiple times) - The idea of the project is to download a flat file from FTP, then pull the records into a table. I can get this to work without issue *IF* I execute this process by hand. However, I would like to execute the project via a stored procedure. I am using exec master..xp_cmdshell 'dtexec /F C:\ssis\new_package.dtsx' My last version of the package just has the FTP download in it (I was trying to break it down to small steps) - when executing I get an error " Description: Failed to decrypt protected XML ...Show All
