Sami Karaeen's Q&A profile
Visual Studio Express Editions Copy image/graphic from panel/drawing surface to richtextbox
I have the following code which allows freehand drawing using a mouse. It uses a panel as drawing surface. I will add the ability to load background images on the panel so can draw on that bmp. Now after all the drawing, I want to ensure its one image, a bmp, copy to clipboard then paste it into a richtextbox on another form in the program. Now attempting this I have tried several approaches. None have worked at all. The online tutorials or samples to study I can find are many years old and many version of basic ago. None work of course. Here is my base code for drawing. Any advice, or directing me to a tutorial, sample, or a reference book would be greatly appreciated. From what I read, this should work. There wa ...Show All
Visual Studio Tools for Office Events are not getting fire in the project , VSTO 2005 tools for office 2003
Hello, i have created a small project to generate word document, initially when i have tried out solution its worked fine,means the document i had to created from specified location its was generated and showing results as i intented. but now when i try to run the project it automatically generates document1.doc, without firing ThisAddIn_Startup() and shutdown and InternalStartup() events. When i debug the solution as setting breakpoints on following event, control does come on breakpoints. I am really stucked with this issue, Can you help me out to resolve this issue. I look forward to speaking with you soon Thank you in advance. private void ThisAddIn_Startup( object sender, System. EventArgs e) { C ...Show All
Windows Forms How to deal with file system permissions when recursing file system
I am working on a module for an app the recurses the file system. As the program recurses the "C:\" drive I get the follow exception System.UnauthorizedAccessException was caught Message="Access to the path 'C:\System Volume Information' is denied." What is the correct way to deal with this exception and continue to recurse the drive thanks, Luis Bear with me. I'm fairly new to vb. Here is what I tried Try ''Directory recursion loop here Catch ex as UnauthorizedAccessException End Try While debugging I saw the exception throw for the "System Volume Information" directory. However, instead of continuing to loop through the rest of the directories the subroutine stopped processing. An ...Show All
Windows Forms Just-In-Time debugging Windows Forms
Hello, In the MSDN documentation (How to: Enable Just-In-Time Debugging for Windows Forms) it is said: In addition, Windows Forms created with C++ must have the DebuggableAttribute set in a .config file or within their code. It is well ducumented how to put the DebuggableAttributein the code, but I found nowhere how to set it in de .config file. How do you set this attribute in the .config file Or is it an error in the documentation Thank you for your help, JF Hogue I believe all you need to do is follow the instructions for step #1. Set the jitDebugging value in the machine.config or application.exe.config file, located in the system.windows.forms section to true . For exampl ...Show All
SQL Server SSIS Import/Export wizard to excel issue
Its my first time trying to set up a SSIS job using the import/export wizard to export the results of a query into an excel file. i am using sql server 2005, windows XP SP2. In the last step in the excel destination editor, in the connection manager when i am trying to select the excel file to write into i am getting this error. 'Microsoft.Jet.OLEDB.4.0 ' provider is not registered on the local machine. I have set up the excel connection manager. i have changed the properties of the project to set the Run64BitRuntime to false. please let me know if there is anything else i need to do to fix this. thank you in advance i downloaded the latest MDAC 2.8 and tried to install it. but my ...Show All
Visual Studio Team System Question of build?
Hi, I have this scenario, I have some Team Project called "W" I did some branch of code from W version 1.1, so, I want to know if I run or build my Branch Project this automatically takes all componets from the base project in this case "W" My branch project have only for expample the version 1.2 so what happens when I build my branch project The whole purpose of branching is to create isolation. When you create a branch, a copy of the source code at that level will be created in the branch and both will be isolated from each other. So, I think when you build branch the original branch (trunk) source code will not be built. In fact you can continue separate development in both the branches. That is how you can have bug-fixes in or ...Show All
Windows Forms High level of control over PDF documents
Hi I’m creating a very professional Windows form App news reader. Now that I discover that make pagination with HTML controlling each version of the client browser is a torture. I want to use PDF format to deliver my documents. I don’t want the clients to have Acrobat reader installed on their machines (40MB in memory when is up) but I need a powerful control of the printing PDF experience I’m going to allow user to print documents in two ways: 1. They look at the document inside a form and print it if they want (I guess I need a reader or a plug in developed by myself) 2. The application print unattended some document pre-programmed (without showing the document) 3. I also want to control printing ...Show All
SQL Server vpn sqlexpress connections
I set up vpn along with lan setup on my serverbox with sqlexpress. I set up vpn connection on my laptop. When I use the LAN, I connect fine. When I use VPN, I cannect fine When I disconnect from VPN and Try to connect via LAN I get .. "error: 26 - Error Locating Server/Instance Specified" connecting to sqlexpress...it can't find the instance. So I have to restart the sqlexpress and browser. Then I can connect. Any Ideas as to why this is happening. My connection string works fine with the application I wrote. The Server\Instance is taken from user input and populates the Server\Instance in the connection string. When i disconnect form VPN I can no longer access sqlexpress. From w ...Show All
Visual Studio Express Editions I need Help Getting Started lol i Need it Badly
Yea i need help getting started with coding like for game developement on visual c# 2005 express editon Well i already tried this site http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning/default.aspx Yea and i cant understand some of it like the direct x installing part i no its suppose to be easy or somewat but iam really confused here so anyone that has any free time plz help me out thank you yea this is good ill go check it out but i need help with somehings on visual express like how to do things that the site coding for fun wants me to do like how to creat battletank 2005 i installed the wrong sdk i installed sdk june and i was suppose to install febuary lol so will this be a proble ...Show All
Internet Explorer Development IE7/Vista - WebBrowser control embedded in toolbar's dialog opening new window.
In a dialog box for a toolbar's UI (a preference dialog) I have an embedded WebBrowser control which displays a local URL. In IE7 on XP SP2 everything is beautiful. When running IE on Vista RC2 with protected mode on, navigating the WebBrowser control causes a new IE window to open, with protected mode off, which then navigates to the correct local URL. With protected mode off in the first place, everything works as expected (meaning the control navigates and doesn't open a new window). I'm at a bit of a loss how to correct this. For what its worth, currently the control is created via: ::CreateWindow(_T("AtlAxWin"), _T("about:blank"), ..... ) Anyone Anyone Bueller In Vista Protected ...Show All
.NET Development Browsing for SQL Server
Im writing a Windows app that get data from a sql sever database. Im trying to see if there is a pretty little control that browses for servers in VS2005. Ive seen many apps that use a similar looking sql server browser ...it has a tree view with the SQL Server icons and stuff. Just shows all the SQL servers connected in a network. I couldnt seem to find it on the controls list..does anyone know how I can get this Hi, There is no such control built-in, but maybe there is a third party control vendor that sells such a control. Regards, Charles ...Show All
Windows Forms How to change size of text box when form is maximized --->
I am creating a web browser, but when I maximize the Form, I need the controls to resize so that they reach the end of the form, and vice-versa for minimization. Please help!!! ...Show All
Visual Studio Express Editions system date install date ect dates
basic simple thing I hope here please don't refer me to the shareware starter kit I am not interested in it what I would like to do is set a date after a button click event that I can reference to at a later time in my code to turn certain functions off after a set amount of time 30 days for example. if I could be pointed in the right direction that would be great thanks for helping ;-) Don't tease me ahmed You can look for my answer to one of those threads, and you can try to change it to not to store the value's in the registry, but in some file that you place in eg: the Windows folder as I don't think people will find out it is placed there. (Nero for example stores some ini and cfg files in the Windows folder) ...Show All
Visual Basic finding a certain process
i'm wondering how to find a particular process that is associated with a certain folder. My issue is that In my program when I go to delete a folder that I have created for a temporary workplace I use Directory.Delete(tempPath, True) to recursively delete the folder and all of its sub-folders and files. But sometimes I get an exception stating: "The process cannot access the file "C:\temp\compress\dest2\0\source\2006.9.22_28" because it is being used by another process." i can see through other tools that process 1932 is associated with that lock, but how can I find that out through code and kill that process Dim procs As Process() = Process.GetProcesses Dim theproc As Process For Each theproc In procs thepr ...Show All
SQL Server Line feed problem in HTML
I'm using a string in report which contains chr(10) -> Line feed characters. They show up correctly (there are several lines) in Preview screen and in pdf-format but NOT in browser. I think the browser doesn't understand those characters. Is there a way to replace them somehow with other useful keys If there is an example would be great... I use the equivalent of the old vbCrLf i.e. carriage return followed by a line feed, and this works fine in the HTML. Try using Chr(13) & Chr(10) or the .NET property Environment.NewLine. For formatting in SQL I use CHAR(13) + CHAR(10) ...Show All
