BlackCatBone's Q&A profile
Visual Studio Express Editions Favorites in webbrowser help!!???
ok im making a internet browser and i added the addtofavorites option and a favorites drop downlist these are the codes im useing Private Sub Favorites_DropDownItemClicked( ByVal sender As Object , ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles Favorites.DropDownItemClicked WebBrowser1.Navigate(e.ClickedItem.Text) End Sub Private Sub AddToFavorites_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddToFavorites.Click Favorites.DropDownItems.Add(WebBrowser1.Url.ToString) End Sub and when i add a favorite it gos right and everything but when i close the app and reopen all my favorites are gone how do i ...Show All
Smart Device Development SmartPhone (WM5) Regestry Lock
I work in a software company and we have an application that should run on smartphones (WM5). Several of the devices we got, are locked for registry editing. Where can I find help in unlocking those devices (and I don't mean finding cracks on the net :-) Thanks, Rotem Find more info on how to join the Mobile2Market here: http://msdn.microsoft.com/windowsmobile/partners/mobile2market/participatevendors.aspx Most mobile operators do have the privileged and the unprivileged certs on their devices. One your app is signed, it sould work on all devices with the Mobile2Market certs installed. See more here: http://msdn.microsoft.com/windowsmobile/partners/mobile2market/smartphoneapps/default.aspx ...Show All
Windows Forms deploy activex via msi instead of cab
I have a old ActiveX that we deploy via a .cab file from our website. However, one of our customers needs a MSI so they can do a remote deploy to their workstations. The current .cab file has a .inf file which stores the classid and information about the files to be deployed. I can add those files to my current vs2003 deployment project, but how do I assign those files the classID specified in the .inf file please advise -Smit. If you add the OCX to the setup&deployment project, then in the properties you can just set the property to vsdrfCOM and it will collect the registration entries into the MSI file to add them during the install. Does the inf file name any dependent Dlls that need to be installed A .dep file Choose the ...Show All
Visual Studio Express Editions Problem with using iostream
Hi there I downloaded Visual C++ Express and the Win Server PSDK. Now I try to write some small command-line apps. I want to use iostream. But the linker always tells me he can't find msvcirt(d).lib. On m computer there are two versions of this file. But they seem to be 64bit versions. I read somewhere msvcirt(d).lib is obsolete. But how can I than use the iostreams Thanks! sondundso Can you post the code that is giving the error If you start from the console template, you should be able to compile and build the following: #include <iostream> void main() { std::wcout << L"Hello, World!" << std::endln; } -Reza ...Show All
Visual C++ Can't compile MessageBox() function.
I can't compile any program where a MessageBox() or AfxMessageBox() function is included. My syntax and the error is as below: Syntax: AfxMessageBox( "Hdnbhojki" ); Error: error C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types i:\vstudio\vc\atlmfc\include\afxwin.h(5025): could be 'int AfxMessageBox(LPCTSTR,UINT,UINT)' i:\vstudio\vc\atlmfc\include\afxwin.h(5027): or 'int AfxMessageBox(UINT,UINT,UINT)' while trying to match the argument list '(const char [10])' Syntax: MessageBox( "Hdnbhojki" ); Error: error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [10]' to 'LPCTSTR' Types pointed to are u ...Show All
Visual Studio 2008 (Pre-release) How: Animation when item of a ListView gets removed through data binding?
I have a ListView which shows elements from an ObservableCollection through data binding. My business logic, which contains the ObservableCollection, fills the collection with data and removes some elements when a specific time expires. The UI then updates with the sudden disappearance of the removed element. Unfortunately this is not my desired behavior as I want the removed element to be animated before it gets dropped but I don't know how to do this. Can anyone help me out on this problem Thanks in advance! Well, ultimately, whatever logic you have for removing objects from your databound collection is going to have to handle this. Which is unfortunate, really, because that logic probably shouldn't have anything to do with UI. ...Show All
SQL Server Selecting a non existing column
Hi, If TableA doesn't have a column named ColumnA, the following scripts gives an error: if exists ( select * from sys.syscolumns where id = OBJECT_ID ( N '[dbo].[TableA]' ) AND name = N 'ColumnA' ) insert into TableB ( ColumnB ) select distinct ColumnA from TableA How can i prevent this Thanks, Perry You can try this if exists ( select * from sys.syscolumns where id = OBJECT_ID ( N '[dbo].[TableA]' ) AND name = N 'ColumnA' ) begin exec sp_executesql N 'insert into TableB(ColumnB) select distinct ColumnA from TableA' end If necessary you can have an output parameter to handle the possible errors in case the statement is executed. L0 ...Show All
Visual C# Hide/Show form while retaining Info
Is there a way to load info to a form from a file (ie text to labels,etc.), from that form call another and hide the first only to later unhide the first from an object on the second from. PROGRAM FLOW: 1)Start up 2)Press a button info comes up 3)Press another button to a)hide form1 and b)show form2 4)Do stuff on form2 5)Press button on form2 to a)make form1 visible again and b)close form2 6)Form1 still has info loaded in step 2 I've got everything working but when I make form1.visible = false to make it disappear then make it re-appear through an object in the code for form2 all the info I loaded is now gone. Can this be done Thanks Thomas I did that and I got the error 'Can not implicitly convert type ' ...Show All
Visual Studio Express Editions Memory / speed issues with loading text file into SQL express database
I put together a sub to stream a text file into a database using vb.net express and sql server express editions. The text file is about 1.5GB and consists of about 2 million rows which will be parsed into 122 columns. I setup the database with 123 columns, the last column being an autonumbered index. Each of the columns has a maxlength set to the width of the data in the text file, and I use that maxlength along with the mid function to parse the data. It all works fine, but I wanted to get some opinions as to the structure of the code to see if there's anything I could do to optimize it. It took about half an hour to load up 37,000 lines, which means I'd need to run it for a full day to get the file loaded. I also have 3 additional fil ...Show All
Visual Studio 2008 (Pre-release) VS2005 Orcas (???) release and feature complete
Can anyone in the know answer the following questions for project planning purposes: 1. When is a feature complete version of Visual Studio for .Net 3.0 & Vista expected 2. What is the release date Thanks You'll probably find the best answer to your question in Scott's post. (hint: check the summary section) http://weblogs.asp.net/scottgu/archive/2007/02/08/my-first-look-at-orcas-presentation.aspx ...Show All
SQL Server sql server 2005 sp1 installation problem
When i run sql server 2005 sp1 setup, during setup it authenticates everything except Database engine and reporting services. I m running this setup with administrative previliges.....can any one help regards, Mahmood Are you getting an error HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server A Query on Outer Join.
Hi. I want to know the difference between taking an outer join on tables and taking an outer join on the conditions that are defined between the tables. Thanks in Advance. Hi. Thanks a lot for the reply. I got about the outer join that is performed on tables.But, the outer join on the conditions is still confusing. Can you help me with an example so that i can understand the concept in a better way. Also, when and why outer joins on the conditions are used.Is it better than outer join that is performed on tables.I am really confused. I request you to help me out from this confusion. Thanks in Advance. ...Show All
SQL Server Problem with a server broker conversation between two instances
I have a problem with a server broker conversation between two instances on the same machine. I have used Server Listning Manager to setup the communication between the instances. When i a try to send a dialog it stops in sys.transmissin_queue and transmission_status is "The Service Broker protocol transport cannot listen on port 4022 because it is in use by another process." Can someone help me / Dan Svensson Are you trying to set up the communication between two instances on the same host Then only one instance can listen on port 4022, the second instance must use a different port (say 4023). Use ALTER ENDPOINT to change the listenning port of one of the instances: ALTER ENDPO ...Show All
.NET Development ADO.Net 2.0, SQL Server 2005 Express & VB 2005 Express: How to Use A DataAdapter to Create DataTables in VB Forms?
Hi all, In my SQL Server 2005 Management Studio Express (SSMSE), I created a database "ChemDatabase" with 3 .dbo tables. In my VB 2005 Express, I created a VB 2005 Express Windows Application project (called it "AveRpd" ) and tried to use ADO.Net 2.0 to connect the database "ChemDatabase" that is in SSMSE and to create the 3 tables in the App_Data folder of the "AveRpd" project as a DataSet for my Windows Application. I studied the .NET Framwork Developer's Guide "Populating a DataSet from a DataAdapter" in http://msdn2.microsoft.com/en-us/library/bh8kx08z.aspx , but I could not understand this article and the "Console Application" source code used in this article confused me g ...Show All
Windows Forms Treeview Question!
I’m using a tree, I’ve populated it fine. But if I have a form with a tree on it, the tree is expanded . Then when there is no activity on the pc for a while I hide the forms, show a log on screen. But when the user logs on again I show the forms again. But the tree is then collapsed on these forms, why did it collapse and not stay expanded Is there a reason it does this Is there a way to stop it from collapsing by itself What would the appropriate solution be Also when filling the tree, I do not want it to scroll down. I use treeGLAccounts.BeginUpdate(); //all my code here to fill the tree treeGLAccounts.EndUpdate(); I thought using the above would not make it scroll down when filling ...Show All
