Suhask's Q&A profile
Visual Studio Express Editions Save a picturebox image as jpg
Microsoft help says in order to save the image in a picturebox, you must assign a button to the image, so I don't know if this is correct, but I am using: Private Sub SetMyButtonProperties() Button2.Image = PictureBox1.Image() End Sub I have read on the forum that the easist way to save a picturebox image is to use: Me.PictureBox1.Image.Save(FileName) So I am using: Me.PictureBox1.Image.Save("C:\MyImage.jpg") My goal is to click Button1, then open an image in PictureBox1 (So far, so good.) Then click Button2 and save the image as a jpg. But this is where I click Button2 and receive an error message for this line of code: Me.PictureBox1.Image.Save("C:\MyImage.jpg") The error is: NullReferenceException was unh ...Show All
Visual Studio Express Editions .net redistributable
I have written a program in VC# Express, and it's purpose is to be installed on school computers where downloading and installing privelages are limited. Using VC# Express, is there away I can include the entire .net framework in the package so that it doesn't have to connect to the internet If not, can I do so in Visual Studio .NET 2003 Professional To run the .NET programs, the computer must have .NET Framework installed. To install .NET, you must have administrator rights. You will need to get permission from your school's Network Administrator for installing or using any programs in the school computers, including your own makings. So contact the admin, and ask him/her to install .NET Framework to scho ...Show All
SQL Server DTEXEC for remote execute
I have a legacy extraction ("E") .NET 1.1 application that is still going to be the driving force for our ETL process. We are going to be utilizing SSIS for "T" and "L". Now, the "E" phase is running on an application server where we have .NET 1.1 framework installed and working. The SSIS packages are running on a separate SQL Server. The problem here is - how do we call the SSIS package and be able to pass in the right parameters from this .NET app that runs on a separate box We would like to use DTEXEC to call the remote SSIS packages through Integrated Security. The SSIS packages are stored as File System packages. Ok, I was wondering if there was a more efficient ...Show All
Smart Device Development some question about the driver for nandflash
Hi ,im building the driver for nandflash in WinCE6.0 , and someone can tell me which .lib files should be added in source file ,and the order of those .lib files added to the source file , and how to set .reg file to mount filesystem Thx a lot! And i have drevolped the driver for nandflash in WinCE5.0 before , but the dirver doesn't work any more . someone pls help me, any advise is appreciate ! ...Show All
SQL Server COALESCE with parameters
I am trying to build a report table based on user supplied criteria at run time. The user may or may not enter criteria into one or more fields. I used the COLAESCE as follows (the temp vars may be passed valid data or left null by the user): select * from dbo . employee where LastName >= COALESCE ( @ln , lastname ) and LastName <= COALESCE ( @ln2 , lastname ) and FirstName >= COALESCE ( @fn , firstname ) and FirstName <= COALESCE ( @fn2 , firstname ) and hiredate >= COALESCE ( @hire , hiredate ) and hiredate <= COALESCE ( @hire2 , hiredate ) and checkdate >= COALESCE ( @chk , checkdate ) and checkdate <= COALESCE ( @chk2 , checkdate ) The problem comes when I want to return rows that ...Show All
SQL Server SQL Server 2005 Everywhere Edition: Replication with MS Access?
Hello @all, does anyone know whether a SQL Server 2005 Everywhere database can be replicated with a common MS Access database Is there any possibility to synch a database on a mobile device (SQL Everywhere) with a central database on a server computer (like MS Access or SQL Express) without having to use a full version of SQL Server Replication is just needed for merging a small database (4-5 tables) so I think the full version of SQL Server is a little bit oversized for this issue (and too expensive, too). Thank you very much in advance, Tim Dear Manish, thanks a lot for your post! Do I understand correctly that no conflict resolution will be implemented - this means that there will be onl ...Show All
Visual C# Using System.Net.Mail namespace to send emails
As I was writing a script in Powershell to do this, I also came up on SmtpException("Failure sending mail."). After digging a bit more, System.Net.Mail does not rely on CDOSYS dll. It's written entirely in managed code. So when I was getting that error, it was the virus scan product that was preventing me to do outbound connect to host's port 25. Just an FYI for folks reading this. ...Show All
Visual Basic How do you add EndCap AnchorCircle to each line in a Path
Hello, I'm using GDI+ to create a graph. I can have about 20,000 points and want to make a curve out of this points. I iterated each point and used DrawLine to draw each line and it was really slow. I found that with: graphPath.AddLines(test) 'test is an array of points grfx.DrawPath(pluma, graphPath) I can make ir really fast... but the thing is that the pen I'm using only displays the EndCap for the whole path (only at the end) and not for each of the lines that create that path. I want to show where each point is located with pluma.EndCap = RoundAnchor...it worked well with DrawLine... but with the path I get the EndCap only at the end of the path... I used AddEllipse for each point but it's very very slow. ...Show All
SQL Server Trouble with establishing server connection in SQL Server 2005
I have been developing a web application using Visual Web Developer with SQL Server Express. The application includes databases (I’m having users create accounts to become members, and I use their profile information to customize some of the web pages to the particular member). I have purchased Visual Studio 2005 Pro, which comes with SQL Server 2005 Developer Edition. I installed both of these without uninstalling Visual Web Developer (I wanted to have my work transfer from VWD to VS Pro). When I open Visual Studio Pro, my web application is there, with the pages I have coded. But when I try to connect to the data base (e.g., by logging in as a member), I get this error message: An error has occurred while e ...Show All
SQL Server Interpret HTML contents within sqlserver reports
How can i interpret HTML contents with sqlserver report using custom code ...Show All
Visual C++ How to pass the handle of a list box to a C DLL function.
Hi. I am working on VC++ 6.0 and VB 6.0. How to pass the handle of a list box to a C DLL function. Can anyone guide me on this Its urgent. Thanks in advance. ...Show All
Visual C# Same KEY & IV for TripleDES Encryption as well as Decryption in 2 different Win Services.
Hi, I want to encrypt as well as decrypt a file using TripleDES. My problem is that I am autogenerating the KEY & IV while encrypting the files. As per my project requirement, I have to keep both Encryption & Decryption parts in two differents windows services. Can any one please guide me how to supply same KEY & IV for both I am using the following coding for encryption & decryption: //.......................... private static void EncryptData(String inName, String outName, byte [] tdesKey, byte [] tdesIV) { //Create the file streams to handle the input and output files. FileStream fin = new FileStream(inName, FileMode.Open, FileAccess.Read); FileStream fout = new FileStream(outName, ...Show All
SharePoint Products and Technologies How do I pass the User ID from WSS to my custom aspx application?
Hi, hopefully someone can help me with this as I am really stuck. I have created a virtual server under the WSS domain and place all my aspx pages in the folder to be called from WSS site. By the time I reach to my custom made aspx application, I need to know the user ID so that I can perform permission and other settings in my custom application. How do I pass the user ID from WSS to my custom made aspx site. Just the user ID will do, I can take it from there. FYI, I am calling my custom aspx pages under from WSS by clicking on “Modify shared web parts” and amending the “Link” to the address where the aspx page is sitting. E.g /company/folder/file.aspx Thanks in advance ...Show All
SQL Server Stored Procedure
HI friends I am new to sql server,i am having a doubt please clarify it. I am having a table with 10 fields and i have to insert data into it from the front end(front end language is DOTNET) but i want to insert all of them at once into the table instead of assigining variables for each field . can we use any method where these collection of values are passed into stored procedure and they are assigned to the respective field in the stored procedure example like passing collection of values to stored procedure and seperating them there please give me reply as soon as possible your help will be appreciated Regards Srikumar Sega: Unless there is a specific reason, you are better off passing i ...Show All
.NET Development Loading words from text file in an array
Hi, How do i load a bunch of words from a text file into an array. And how can i randomly show them in a label with a sleep thread of 3000 milliseconds This is how the words in the document look like: test; west; coast; east; I tried using the for and foreach statement. Without luck! Hope you guys could help me out. Thanks in advance! I just meant when you're doing this.lblDisplayWord.Text. Is this happening on form3 or which form is lblDisplayWord on ...Show All
