Mehdi_Becario's Q&A profile
Visual Basic How to load multi image from one picture file?
I see that some program are save all of there picture to load from run-time to one picture ( ex: eggsucker) How can i do it how to load multi picture from one image file (.bmp) Bob Powell has a example of loading a multipage tiff file on his website . I dont think there is such a thing as a multipage bitmap. ...Show All
Visual Basic TreeView Control Arrays
Hi, In VB6 I wrote a form that had a control array of treeview controls. When upgraded to .NET - which does not support control arrays - it now does not work as there is no control array object in Microsoft.VisualBasic.Compatibility.VB6 namespace like there is for some of the other controls e.g. TextBoxArray Does anyone know of a way to emulate VB6 style control arrays for Tree View controls Regards Michael Green Hi Michael, As far as I'm aware, you can't completely emulate control arrays. I might be wrong, but I taught myself very early in my .net learning to just avoid them :) If you ...Show All
Windows Forms Custom Deployment Scenario
Is it possible to deploy an application using an MSI, but then use the System.Deployment API to manage the maintenance of the application. For example, allow a user to download the MSI from a website or install it from a CD. But, for maintenance periodically use the system.deployment API to check whether updates are available from a central website, downlo ...Show All
SQL Server How to insert only new records (not already in destination)
Greetings from a SSIS newbie still on the learning curve... I have a SQL query OLE DB Source that yields a result set that I'd like to put into a SQL Server Destination, but only those records that don't already exist in the destination. Is there a recommended (read: easy) way to accomplish this Perhaps a handy transformation I have tried to incorporate a subquery in my source query along the lines of: SELECT fields FROM table1 WHERE keyfield NOT IN (SELECT keyfield from table2) which works in design time but fails at the server with a cryptic: "Error: Unable to prepare the SSIS bulk insert for data insertion." ...Show All
SQL Server Installing SQL Server 2005 question.
Hello, I installed a version of VS.NET 2005 RC and on it it says it installed SQL Server Express 2005. But, I dont see it anywhere on my system.the only thing is see new on my system related to SQL Server is: SQL Server 2005 CTP. What is this (what is CTP) And only a subfolder 'configuration tools' under it. Did I install the wrong thing I was expecting like a beta version of SQL Server 2005. SQL browser is not starting in the local machine mode. It searches for some time and comes back with a data provider not enabled message. What should I do Thanks Enab ...Show All
Visual C++ Python Makefile Actions failing
The following Python script: from subprocess import * Popen("notepad",stdout = PIPE) executes as expected when run from a command line. However, if I setup a makefile project action to invoke the script, I get an error when I try to build/rebuild/clean the project: Performing Makefile project actions Traceback (most recent call last): File "c:\Documents and Settings\Josh Petrie\Desktop\basic\trunk\bs\test.py", line 11, in Popen("notepad",stdout = PIPE) File "C:\Program Files\Python\lib\subprocess.py", line 533, in __init__ (p2cread, p2cwrite, File "C:\Program Files\ ...Show All
Smart Device Development genasm error message when adding DesignTimeAttributes.xmta to my project
This is weird. I have a Smart Device C# library that builds perfectly. When I add a DesignTimeAttributes.xmta to it and rebuild it I got the following error message: genasm.exe(1) : error There was an error finalizing type . Type 'MyNameSpace.MyClass, MyLibrary, Version=9.2.0.0, Culture=neutral, PublicKeyToken=null' was loaded in the ReflectionOnly context but the AssemblyBuilder was not created as AssemblyBuilderAccess.ReflectionOnly. My Namespace is MyNameSpace. My library is called MyLibrary. I have tried to reproduce it on a small project and I can't. I will keep trying to see if I can narrow it down. Thanks in advance for helping. ...Show All
Visual Studio Problem with uppercases in directories
I have a problem with VSS in which it changes the names of the directories to uppercase when I try to add them from my mapped drive. So I need to create a new project for each folder I want to add and then add the files to VSS. I would like to know if there is a way to make it create the case of the directories the same as they are without the case change. My VSS version is: VSS 6.0 build 8163 Help is very much appreciated Hi Dave, How are you adding the directories to VSS What kind of drive are you adding the directories from (ntfs/dos) Make sure you're not showing DOS names (SourceSafe Explore ...Show All
Visual Basic Quick question
I'm running this proejct on vb. net 03 pro. This is a small project sample that i want to developed a little bit more, but i have a problem with the output... code: Module mainmodule Public usernamedatabase(4) As String Public passworddatabase(4) As Integer Public r As Boolean Sub main() Dim objLoginform As frmlogin objLoginform = New frmlogin Dim x As String Dim y As Integer usernamedatabase(0) = "joe" usernamedatabase(1) = "angel" usernamedatabase(2) = "sam" usernamedatabase(3) = "mary" usernamedatabase(4) = &q ...Show All
Visual Studio Text is being cut off
I am using Crystal.Net in VS 2003. Sometimes, the text gets cut off on the right side of a text field. The only thing that I can find in common with all of the text fields that exhibit this behavior is that the data being displayed is actually a text datatype in a SQL Server 2000 database. It just breaks words right in the middle instead of pushing the word to the next line. Is there anyway to keep it from cutting off the text right click on the textfield - format field - common tab, check "can grow" checkbox ...Show All
Visual Studio Team System VTS Beta 3 Refresh: I get the following error while viewing reports.
I installed the Beta 3 Refresh on a single computer using SQL Server 2005 Enterprise edition. My setup, service and report users are domain users. Everything seems to work, except Reporting Services. I get the same error when running reports from Visual Studio and from SharePoint. The error message looks like this. An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'dsPriorityParam'. (rsErrorExecutingCommand) Query (1, 518) The dimension '[Microsoft_VSTS_Common_Priority]' was not found in the cube when the string, [Microsoft_VSTS_Common_Priority].[Microsoft_VSTS_Common_Pri ...Show All
Visual Basic connect to sybase ODBC server?
hi I'm a newbie in vb. can I use visual basic to connect straight to an ODBC data source withouth going through MS access and if yes, how do I do that Thx. cheers!! Yes you can using ADO.Net you would declare your ODBC connection object like so Dim Cn As OdbcConnection = New OdbcConnection(<connectstring>) goto this link to get the correct connect string http://www.connectionstrings.com/ Then i would suggest reading up on ADO.Net to get an idea what to do next because there are many different methods of retriveing data from a data source. ...Show All
SQL Server Do I need SSIS to process cube?
There is a function called "proactive caching" in Analysis services. It can: ----Automatic synchronization with the relational database ----No more explicit "cube processing But I cannot have the latest data in the cube even I set the proactive mode as "real time" Do I need SSIS to process cube in this case Following is the procedures I have done: 1. test the data 1.1 use the bi dev studio to browser the cube, ensure no new data are there 1.2 process the the cube and browser the data, ensure new data are there 1.3 delete new data from source database and reprocess the cube, ensure no new ...Show All
Visual Studio Express Editions How To Load My application on Start Up USing VB?
Hi all, I got a Application That has got no form but It suppose to act like a "FileSystemWatch" So when User add a file in this Particular folder. A method will do some validation and call Sql Procedure. And Do the Neccesary Steps. The Calling Sql Part Is done. But Right now i need to Make This Program such like. Click On the Exe (1st Attempt ) like a installer. Will Automatically add the exe in someplace(Duno where) And make sure it load on every start up after tt After this. The program will continue to run untill the Computer Is shutdown. And Advice will be gd. Thank u Looob P.s apologise for my p ...Show All
Visual Studio Express Editions Compiling
Hi, I recently downloaded the Visual Studio Express Edition, and I am unable to compile the file to run it, or at least I do not know how to use the file once created. I was wondering how I would test out a program/file once it is debugged. Thanks everyone for the help! Can you describe more what you are doing and your expected results To compile an application you will need to load it as a project, build it and then run it. ...Show All
