Topics
-
- 1 reply
- 660 views
Hello, i'm having a problem with the speed of a piece of my code. I'm working with 3D models which have been broken up into chunks, which I am converting into a single object in an .obj file. The problem with this is that because some vertices have been duplicated to split the model the smoothing is incorrect, so this code goes through every vertex and compares it with all other vertices to see if the position and normal data is the same, and if it is it re-references the duplicates to a single vertex. The problem with my code is that 13,000 vertices takes approximately 33 seconds and these models can have over 100,000 vertices, which takes many minutes to complete. So…
Last reply by FireScythe, -
- 1 reply
- 3.1k views
I have used a list view in Ajax Update panel. And iam using this listview in a user control. and this user control is placed in a Master Page.I have implemented sorting for list view . For the intial page load, complete data appearsin both IE and Firefox. I have three links for Sorting, based on which data changes. This works fine in Internet explorer, but in Firefox, sorting is not working. When i debug, I saw that for initial page load data is getting loaded in both IE and firefox.But, when sorting link or any other link is clicked, this method is not fired in firefox.I used the condition Ispostback. In case of Internet Explorer, when it is not Ispostback, the deb…
Last reply by JohnsHandle, -
-
- Administrators
- 15 replies
- 3k views
For a school assignment I have to write a small program that allows the user to safe a student number and status (present(1) or absent(0)) into a data set. I wrote the code but when I start the project in debug mode I get an error when I try to add a new student to the dataset. I don;t know the exact error as my Visual Studio is the Dutch version. Its something about an object reference with has no object to refere to? Below you kan see the code. I hope you can help me! Dataset and Datatable DataSet dsStudenten = new DataSet("studenten"); DataTable dtStudent = new DataTable("student"); The code in question private void BtnAanmelden_Click(object sender, Ev…
Last reply by mrpddnos, -
-
-
- Administrators
- 4 replies
- 2.1k views
I wrote a web application that allows users to search words in files. These files can be .doc, .pdf, .txt, etc. Right now the search engine is working but the other day a user send a bug that the search was not seeking in files that where attached to a .doc file. I've been seeking the web and cant find nothing about this. Can anyone tell me how can i extract an attachment from a Word document? especially a PDF file? thx
Last reply by rfazendeiro, -
-
-
- Administrators
- 11 replies
- 5.7k views
Hello! I wrote a HttpModule for query string encryption so i could just encrypt automaticly the querystring when submiting pages and decrypt it back (automaticly too). I have this up and running and works perfectly for the querystring but I came into a problem. With a simple application like Fiddler i could see the request made by the website and i had a little suprise. The Form Action property was plain text so with very little work anyone could just see the actual query string decrypted. I've been looking around but still havent found a solution. How can i encript the Form Action too? thank you all
Last reply by rfazendeiro, -
-
-
- Administrators
- 1 reply
- 2.3k views
Hi, First, please excuse me for my poor English! Around 1 year ago, I was browsing the CIA website http://www.cia.gov. I found an article which I enjoyed it a lot. It was something about first spy man of the US which was executed by British army, I think. It was a real story of a man who was spying for the US and later, when British army caought him, before they kill him, he said one favor sentence: Something like: "I am so sorry that I just have one life to give for my country". Unfortunately, I don't remember the exact sentence, but I wanna have it and know his name so I can search Google and find his story and read it again. I really love it :) Anyone …
Last reply by PlausiblyDamp, -
-
- 0 replies
- 825 views
Hi, I am loading image in picturebox using bitmap -size of image = 8.5�x11". x = Single.Parse("11") * 96 y = Single.Parse("8.5") * 96 Dim ZoomImage As New Bitmap(Image1, x, y) Dim converted As Graphics = Graphics.FromImage(ZoomImage) converted.InterpolationMode = InterpolationMode.HighQualityBicubic picArt.Tag = imagePath picArt.Image = ZoomImage picArt.Height = ZoomImage.Height picArt.Width = ZoomImage.Width It shows the image perfect. And not showing scrollbars on panel on which i m adding picturebox. But when i decrease the resolution, it shows scrollbars. How to manage with resolution and image?
Last reply by Mansi Shah, -
- 3 replies
- 2.7k views
I am sending emails containing large attachments (~8 MB) and it takes more than 60 seconds to send the email. It cannot send the email and I get "The operation has timed out." is there a way to set unlimited timeout for sending emails? I'm using the MailMessage class in System.net.Mail Thanks.
Last reply by Nate Bross, -
- 0 replies
- 775 views
Hi, I have 2 questions about ListView in vb6? 1. Is there a way to design the columns of ListView at design-time rather than run-time? However, I am adding columns in code this way: ListView1.ColumnHeaders.Add , , "Item 1", 600 2. How can I lock the header of ListView from being resized? I mean I don't want columns to be resized? Thank you :)
Last reply by SIMIN, -
-
- Administrators
- 1 reply
- 786 views
Hi, I have an ImageList and load some pictures with the following names for example: uk.gif us.gif uy.gif uz.gif va.gif And so forth... I can see the name of each icon in the Images Collection Editor, but not from code. My question is that how can I get the image NOT BY INDEX but by the name of internal image? For example get the image from ImageList by "us.gif"? Thanks.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 3k views
Sorry about misleading subject, I've edited my post! I want to know what's the replacement for WebClient in VB6? What should I do in VB6? Dim MyClient As WebClient = New WebClient Dim MyData As Stream = Nothing Dim MyReader As StreamReader = Nothing Dim MyResponse As String = Nothing MyData = MyClient.OpenRead(MyString) MyReader = New StreamReader(MyData) MsgBox MyReader.ReadToEnd() I need to something like this in VB6?
Last reply by PlausiblyDamp, -
-
SQL Server installation required?
by Guest Fhwoarang-
- Administrators
- 2 replies
- 809 views
Hello, everybody. I'm about to finish this program. I use SQL Server Express as a database, and ADO.NET to create the connection. I'm using C#. The question is, once the program is ready, do I need the client or the new program user to have SQL Server Express installed on his machine? I know that NET Framework is required, but is the SQL Server completely necesary to make the program work?
-
-
-
- Administrators
- Leaders
- 5 replies
- 1.1k views
I did some searching on Google and in these forums, but didn't find my issue. I have a VB.Net Windows Forms program that will run fine out of Visual Studio, but when I build it and try to run it on someone's computer it immediately throws up a windows error and says it needs to close down. I tried placing some message boxes in the Form Load event to see how far it gets. The first line of the Load event is one of my message boxes, but it doesn't even show that, the program dies before it treis to load my startup form I guess. So I'm not sure how to trouble-shoot this since I can't even get into the code I've written, it just won't make it that far. Has anyone …
Last reply by kkonkle, -
-
-
- Administrators
- 2 replies
- 681 views
Hi, I am a newbie here and have a question : I have written my program and it's working great, without any problems. I also created a setup for it so I will release it soon. But there is a problem, all the software have technical specifications as well as : 1. Minimum system requirements 2. Recommended system requirements I don't know how I should determine this information? I only have one system! And have no idea how it will run on lower systems? Is there a software/tool I can use for this test? I'll pay if it's not free. I heard something about Intel Performance Analyzer and Thread Profiler, is this something I am looking for? Please help me guys/gals :)
Last reply by Nate Bross, -
-
-
- Administrators
- 1 reply
- 1.4k views
Hi all I have a dateset whose contents can be changed by the user. Usually the user would click the save button when they are finished making the changes. However, if they forget to click on the save button, I want to simply offer them the opportunity to do so when the FormClosing event is fired. Here is my code so far: Private Sub frmGeneralQueries_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing Select Case mintReport Case frmMain.mcTotalByOrganisation If Not dsPRTRDisplay.Tables("TotalByOrganisation").GetChanges.Rows.Count = 0 Then If MessageB…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 2.1k views
Hi Friends I'm a beginner to .NET C#, and i'm working in a project where my first MDI Child opens a normal form which is not a child form and get a value in that and returns it to the second MDI Child form. The Flow is Parent(Form 1) --> Child 1(Form 2) ---> Form 3 ----> Child 2(Form 4) I'm struck'd in third level of opening the child 2 form in MDI container from From 3. I tried with the below code in the Form3 button click event and get an exception. Form4 sr = new Form4(text); sr.MdiParent = Form1.ActiveForm; sr.Show(); And the error was Form that was specified to be the Mdi…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.8k views
Scenario: I am calling a C# dll into VB6 via Server.CreateObject . I want to pass some parameter into that class which which contains 2 methods in which one is taking one parameter . So while calling this class I have to send parameter value also . Please help me in this regard --how to pass parameter in Server.CreateObject.
Last reply by PlausiblyDamp, -
-
- 0 replies
- 2.1k views
hai all.. I am creating some labels dynamically ..when i click on label i want provide rectangular box to that label.. so user is resize the label depend upon they need.
Last reply by mdkdilip, -
- 4 replies
- 1.5k views
What are the Pros and Cons with performing a stream operation in chunks as opposed to performing that same operation on the full file? "In Chunks" Example: void ReadFileInChunks(string file) { using (FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Read)) { int len; byte[] buffer = new byte[1024]; do { len = fs.Read(buffer, 0, 1024); Console.WriteLine("Read 1024 bytes of data."); } while (0 < len); fs.Close(); } }"Full File" Example: void ReadFileAtOnce(string file) { using (FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Read)) { byte[] buffer = new byte[fs.Length]; if (fs.Read(buffer, 0, buffer.Length)…
Last reply by MrPaul, -
Hi there! At first, I would like to say that I don't speak as you british or american people do (I am from Spain!). Well, my name is Jose, and I am a new user! Glad to meet you. I am posting because I am having some problems while trying to execute a Visual C++ .NET code. It is a win32 application, and it works with Directx 9. The code is this: #include <windows.h> #include <d3d9.h> //Store handles to the main window and application instance globally. HINSTANCE hInst; // global handle to hold the application instance HWND wndHandle; // global variable to hold the window handle LPDIRECT3D9 pD3D; // the Direct3D object LPDIRECT3DDEVICE9 pd3dDevice; //…
Last reply by skinner,
-
Who's Online 0 Members, 0 Anonymous, 47 Guests (See full list)
- There are no registered users currently online