Roger Jennings's Q&A profile
Visual Studio Express Editions Inserting/Up loading Pictures
Todays problem - I'm new but having fun. I'm building an employee database, I want the employee's picture on the database. Which input box would be better to use or should I say easier. The picturebox or richtextbox. Now here the truely big question, how do I get or code these boxes to find the pictures on my computer, stored in Mypicture file and uploaded. To big a job for this beginner, I'm using VB2005 Express , Any help is always appreciate. Thanks, Wildwylie use a picture box for the picture: Dim OFD As New OpenFileDialog OFD . Filter = "BMP files (*.bmp)|*.bmp|JPG files (*.jpg)|*.jpg" If OFD . ShowDialog = Windows . Forms . DialogResult . OK Then Me . PictureBox1 . Image = ...Show All
Smart Device Development WebControl error..
Seems the WebBrowser control doesn’t support any refresh statements in web pages (even though PIE does) Is their differences between the two implementations.. I'm using the meta refresh to perform a delayed redirect, tried several code examples to no avail!!.. My web code periodically updates a page every 5seconds to display new status info, im using the WebControl to pull it into my application.. --- sample code ASP.net --- <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <% //------------Vars-------------// DateTime now = DateTime.Now; &nbs ...Show All
Visual Studio 2008 (Pre-release) Using X509 Certificate in WCF
Hi, I have created a Windows Service in Visualstudio 2005 and created a service host in the OnStart() method to run the service host created when the windows service is run. To run I created a setup project and configure it to install my service on the local machine but when I am running the service an error is generated and is written in the event viewer as : Cannot find the X.509 certificate using the following search criteria: StoreName 'TrustedPublisher', StoreLocation 'LocalMachine', FindType 'FindBySubjectName', FindValue 'ADIANCE08\Administrator'. The code written to host the service is as follows : try { NetTcpBinding binding = new NetTcpBinding(); binding.PortSharingEnabled = true; binding.Tra ...Show All
Visual Studio Express Editions Power Point Show in WebBrowser Control ? can it be done ?
how to view power point show inside a web browser control in an application form thank you ahmedilyas wrote: sorry whats the problem :-) you seem to have it right.... this.webBrowser1.Url = new Uri(@" file:///c:\whatever\yourpresentation.ppt ") it doesn't work with me , so i wonder is it something with the power point file extention , or is it something with the way to use the webbrowser control ...Show All
.NET Development how to reset default setting of elementFormDefault
I am creating a web service in c# and need to find out how to programmatically reset default setting of elementFormDefault (resulting wsdl) to "unqualified" < xml version="1.0" encoding="utf-8" > - <wsdl:definitions xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/ " xmlns:tm=" http://microsoft.com/wsdl/mime/textMatching/ " xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/ " xmlns:mime=" http://schemas.xmlsoap.org/wsdl/mime/ " xmlns:tns="Test_v01" xmlns:s=" http://www.w3.org/2001/XMLSchema " xmlns:soap12=" http://schemas.xmlsoap.org/wsdl/soap12/ " xmlns:http=" http://schemas.xmlsoap.org/wsdl/http/ " targetNames ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Audio hoax
I was just wondering whether the XNA framework somewhat more than using its internal icky audio engine based on prefabbed XACT packages, like writing PCM data directly to a buffer I'm not very far into game programming as of yet, but to me the use of XACT seems like a superfluous step in the work flow of a creating a game, or just an additional level to a game. Correct if I'm wrong, I've just read the documentation. First of all, wave banks, cues etc. can only be created within the XACT authoring tool, hence no possibility for integration other than using what's created in the tool. Second, apparently no reflection or discovery can be made on XACT packages in your client code to discover cues. Scenario: A level editor in which you ...Show All
Visual FoxPro impersonateloggedonuser and Getfil()
Iam running VFP 9 with SP1 under windows 2k. In order to protect my database/table files on a network I have created a single user who has access to the folder where the files are contained. This is the only user with access to the folder. When an individual on the network runs the application the application logs on as that user and has access to the database files...the code goes like this.... #define LOGON32_PROVIDER_DEFAULT 0 #define LOGON32_PROVIDER_WINNT50 3 #define LOGON32_PROVIDER_WINNT40 2 #define LOGON32_PROVIDER_WINNT35 1 #define LOGON32_LOGON_INTERACTIVE 2 #define LOGON32_LOGON_NETWORK 3 #define LOGON32_LOGON_BATCH 4 #define LOGON32_LOGON_SERVICE 5 #define LOGON32_LOGON_UNLOCK 7 DECLARE ...Show All
SQL Server Starting Full-text search on SQL Server 2005 Express Advanced Edition
I have upgraded a SBS 2003 MSDE database (instance MSSQL$SHAREPOINT) to SQL Server 2005 Express Advanced Edition. This worked without a problem even when I enabled all the options for the upgrade including Full-text search. I now want to have Full-text search on this instance of SQL 2005 with database name of STS_EVEREST_1. I first tried to use the T-SQL command of "CREATE FULLTEXT CATALOG BBVisionCatalog AS DEFAULT;" I now know that the original database was created under SQL 2000 and therefore I needed to use SQL 2000 commands. So I used the following script: USE STS_EVEREST_1 EXEC sp_fulltext_database 'enable' EXEC sp_fulltext_catalog 'BBVisionCatalog', 'create'; It produced the following ERROR messages: (1 row( ...Show All
.NET Development Live status of webservice
Hi All I have a webservice that uploads a file. Actually it uploads a FileStream and does its thing. It works great. However, I was wondering, sometimes, when I upload a large file, it takes time. Is there anyway to check the status of an upload and maybe even put it in to a progress bar for the user to see so he/she knows it's not just going on forever Thanks in advance Mike hi, I have written the program to upload large files same as you doing. My method is split file to upload in 5 threads. if you don't want to use thread, you could simply use BackgroundWorker component in visual studio 2005 to implement a progress. sample is offered for how to use BackgroundWorker in MSDN. ...Show All
Smart Device Development C# compiled screen handler
I am using Windows Application. I have a C# compiled screen handler. First I load the data base for the screen, 21 X 1000. Then i use Console.Write() to fill each location in the screen. I do not know if it works because i do not get an output. I have 3 buttons, 1 textbox, and one combobox. Do i focus on the textbox before i write private void button1_Click( object sender, EventArgs e) { } public static class abcde_read_garage_file { public static char [] q = new char [210000]; public static String header = "G_F_R_SSS_LICENSE_WA" ; public static String headerx = "G_F_R_SSS_LICENSE_WA" ; public static char [,] garage_array_database = new char [21, 10000]; ...Show All
Visual Basic Unexpected exception occurred during upgrade engine operation
Hi, During a every conversion of a 'VB6 project' to 'VB 2005 Express', I'm always getting folowing error: --------------------------- Visual Basic Upgrade Wizard error --------------------------- Unexpected exception occurred during upgrade engine operation: Kan niet aan de bron binden (Exception from HRESULT: 0x8004000A (OLE_E_CANT_BINDTOSOURCE)) --------------------------- OK --------------------------- My System : Windows 2000 SP4 (Clean Install) - Visual Basic 2005 Express ed. Any ideas howto resolve this Thx. This is a bug with the Upgrade Tool where it gets confused on where its registry settings are if there is an HLKM\Software\Wow3264Node key in the registry on a 32-bit machine ...Show All
Visual Basic My Email App Sends to Junk and Spam only
I have Developed a Windows Application using Visual Basic .NET 2003 All Problems about CDO Object and Attachment file size it's all solved but there is still one problem it sends only to Junk Mail Or Spam It Never arrive to Inbox except one time it just arrive there and didn't happened again Oh plus as Security Problem I can't use a specific SMTP Mail My Code always Use my Machine as SMTP Server and it send as any email with any Domin name even it's not Exist Please Ineed Help I believe the whole junk/spam filter is to do with your email client filter rather than your application AFAIK What happens if you use the same email address as the Sender, and to the reciepient, if you manually send the email Does it still arri ...Show All
Smart Device Development Loading an image from Pocket Pc ProgramFiles?
Hi, I want to load an image from PocketPc to to my Application PictureBox. I tried with the following code. But it gives exception "Value does not fall with in expected range". Can any guide me to load an image from PocketPC to my application. Bitmap bmp = new Bitmap("file://\\Program%20Files\\Images\\Smiley_Winking.png"); pictureBox1.Image = bmp; Thanks in Advance, try this: Bitmap bmp = new Bitmap("\\Program Files\\Images\\Smiley_Winking.png"); pictureBox1.Image = bmp; Michael ...Show All
Visual C++ Very simple member variable question
Hello all, I'm using VC++ 2005. I've got an MFC dialog app to which I've added a ComboBox control. I right-click the control and select "Add variable...". In "Category" I select "Value" and in "Variable name" I give the variable name "m_intComboBoxVal". I hit "Finish". But when I try to look for the declaration in the source files for the dialog, I don't see it anywhere. It is listed in Class View when I select my dialog class...when I right click the member variable and select "find all references" it finds one reference in the dialog header file but on an empty line. Where does the wizard insert the declaration for my variable &n ...Show All
Visual C++ Memory leak
I have a method that continuously reads 1MB of data from a hardware in a short period of time. I used a memoryStream data structure for this. In every call of this method, a memoryStream is created and used to read the data, and then it is closed and goes out of scope. These are my assumptions in this implementation: - The garbage collector will free the memory used for the memoryStream when its instance goes out of scope - The allocation for the memoryStream is done from the Large Heap objects, because of their 1MB size Therefore, I expected to see an increase in the memory for a short time until a gc collection of the 2nd generation occurs finally and the memory decreases. However, the result is different: ...Show All
