Topics
-
- 0 replies
- 1.2k views
Hello, I am loading mesh information from a file format other than .X. I have created the vertex and index buffers successfully but I would also like to create subsets for texturing. I have tried a couple routes, originally getting the GraphicsStream by locking the Attribute Buffer and writing to it, which always crashed at run time. Obviously I wasn't writing to the stream properly. The second method - The examples I see in C++ (few and far between) simply lock the AttributeStream which returns a DWORD pointer which they then set for each indice.
Last reply by Equis1, -
- 0 replies
- 608 views
I have been getting familiar with creating tables using dataset.xsd I noticed something I had a question on. I create a table called "Model". inside the table I have partID to basically reference another table called "Part" which I make a primary key called partID. So I know how to make a RELATION to the tables with a primary key and foriegn. What I did by accident, was when I dragged the "part" table over the "model" table it made an element based off that table "part" Is this the same making a RELATION or something different? Thanks. Hope I am clear. If not say so so I can try and make it clearer
Last reply by techmanbd, -
-
- Leaders
- 2 replies
- 11.6k views
I want to copy the whole list of a listview to another without using iteration statement because it could be time consuming if my data volume is large. I had tried lv1 = lv2, this doesn't seems to work correctly because lv2 is created in other class. I wish to do something like lv1.Items = lv2.items Please give me a clue to do this with iteration control. Thanks in advance..
Last reply by georgepatotk, -
-
-
- Leaders
- 3 replies
- 2.1k views
Is there a way in VB to kill a running process on a computer from a VB application, that infact has nothing to do with the application. For example if you have the internet open the process is "IEXPLORE.EXE" and I want to kill that process with a click of a button on a vb windows form. Is there a way to accomplish this and if so how? Any help given is greatly appreciated.
Last reply by HJB417, -
-
- 7 replies
- 1.2k views
What does sSQLFilter contain once the variables have been dropped in?
Last reply by EFileTahi-A, -
-
- Administrators
- 4 replies
- 1.5k views
I have been an ASP developer for years and am trying to get my arms around ASP.NET. I am trying to call a function from my ASPX file that exists in my VB file. The function makes a call to SQL Server to get a list of records to display. I am trying to do all of the looping in the VB file and just have that information returned to the ASPX file with a Response.Write. I have seen somewhere where the person created the DataReader in the ASPX file and then referenced it from the VB file. This allowed him to loop through the resultset in the ASPX file. I would prefer to do my looping in the ASPX file and return a StringBuilder or a Response.Write or even an HTMLTextWri…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 757 views
Does everyone have problems with .net comboboxs? What I want is a combobox that acts like the Access or VFP combobox. Something that lets you have more than one column and more contol over the format. I have tried loading the Access controls to my project but I got an error. Are the any .Net controls you would recommend? or any other ideas. Thanks
Last reply by moongodess, -
- 2 replies
- 639 views
So I'm writing a program which requires a date to be input. DateTimePicker is fine for this but the program also requires a day to be input. Is there a way to auto-fill a textbox with the day corresponding to the date selected rather than the infinate if datetimepicker1.text = 15/04/2005 then textbox1.text = Friday if datetimepicker1.text = 16/04/2005 then textbox1.text = Saturday you get my point! Thanks guys, Tom
Last reply by IngisKahn, -
- 0 replies
- 1.1k views
Here is the deal: 1. I have an image extracted out from a database through a SQL statement. ex. SELECT IMG_DATA FROM tblIMAGE WHERE ID = 1 I need to stream the IMG_DATA on a page binding it to a <IMG> tag. How do I do this?
Last reply by fasil, -
-
- *Experts*
- 5 replies
- 964 views
Can Visual C++.net program do unmanaged and managed code? or does it force you to do only managed code?
Last reply by thenerd, -
-
-
- Leaders
- 2 replies
- 1.5k views
I was told that their was a why to detect if a file or folder changes. Does anyone know about this? If it exist I need to know if the app must be running to detect the change? It will be watching a file and folder that my only change once a week. :confused:
Last reply by snarfblam, -
-
- 0 replies
- 1k views
Works for most components, a similar approach can be used on third party controls where this doesnt work. Typical Usage (assumes project appropriate references): ArrayList eventData = new ArrayList(); EventDescriptorCollection events = TypeDescriptor.GetEvents(myComponent); foreach (EventDescriptor myEvent in events) { // Unwire the events . . . EventDatum ed = EventDatum.Create(myComponent, myEvent); if (ed == null) continue; EventData.Add(ed); ed.Unwire(myComponent); } //Do something with component here . . . // now rewire . . . foreach(EventDatum ed in EventData) if (ed != null) ed.Wire(myComponent); EventData.Clear(); EventDatum listing (assumes pr…
Last reply by Joe Mamma, -
-
- Leaders
- 1 reply
- 2.2k views
I need to display a vector image (.emf) in a C# Windows form. The Picture control does this, but it seems to convert the image to raster format, because when I scale the image it becomes jaggy. Is there a way to do this right (a UserControl, or something like that)?
Last reply by snarfblam, -
-
- 4 replies
- 1k views
has anyone else had a problem with a secure page not doing a post back? I have a login page that works just fine when accessing from a http address. But when I access it using https and click on my login button, nothing happens. I inserted a response.write line and I see it working on the http but no the https when the button is clicked. Is there something special I have to do in the code behind? I can provide examples if needed. I am using forms authentications if that makes any differences.
Last reply by kahlua001, -
-
- Administrators
- 3 replies
- 1.8k views
I can hear some of you already laugh for this certainly is a Question in the easy cathegory. To cast an onbect to a known objecttype I just do: Dim fntfont as font = Directcast(Myobject,font) That�s easy enough. Now I have an object that can contain Fonts and Pens In vb6 you would use tyename to find the type of object and solve it that way but how do we do this now (I mean without the VB namespace) I would appreciate an example in VB if possible
Last reply by Napivo1972, -
-
- 1 reply
- 527 views
Does the treeview object in VB.NET have a limit to the number of items that it can contain. And if so is there a way to increase that limit? Any help given is greatly appreciated.
Last reply by mskeel, -
-
- Administrators
- 2 replies
- 782 views
I came across this example and the output is 101. But dont understand why. Anyone can give me a brief explanation? using System; class MainClass { delegate void PtrToMethod( string str, params object [] args ); static void Main( ) { PtrToMethod PtrToWriteLine = new PtrToMethod( Console.WriteLine ); PtrToWriteLine( "{1}", 100, 101, 102 ); } }
Last reply by PlausiblyDamp, -
-
- 3 replies
- 1.6k views
In C# I added the following comment /// <example> /// <br></br> /// Include object.js and Validate.js files in the HTML file where ValidateTextBox is used. /// <code> /// <script lang="javascript" src="Scripts/object.js"></script> /// <script lang="javascript" src="Scripts/Validate.js"></script> /// </code> /// You may add style class that can be set for RequiredFieldErrorCssClass or CssClass property. /// <code> /// <style> /// .requiredErrorCss { BACKGROUND-COLOR: yellow; BORDER-BOTTOM-STYLE: ridge } /// .requiredCss { BACKGROUND-COLOR: white; BORDER-BOTTOM-STYLE: sol…
Last reply by mskeel, -
- 1 reply
- 924 views
I put comment and generated documentation files using NDoc. The following shows the hiearchy of the class. But, System.Ojbect only shows namespace and classname in full. but, others don't. How can I enble full name? I want to change this System.Object Control WebControl TextBox TextBox ValidateTextBox To System.Object System.Web.UI.Control System.Web.UI.WebControls.WebControl System.Web.UI.WebControls.TextBox System.Web.UI.WebControls.TextBox DLS.Web.Controls.ValidateTextBox
Last reply by mskeel, -
- 2 replies
- 2.4k views
I wrote some code in C#: <%@ Page Language="C#" %> <script runat="server"> void myAction(Object Sender, EventArgs e) { if (Sender.Equals("theBody")) { testArea.InnerHtml = "The body works."; } else if (Sender.Equals("myLink")) { testArea.InnerHtml = "The link works."; } } </script> <html> <head> </head> <body id="theBody" onload="myAction" runat="server"> <asp:Hyperlink id="myLink" onmouseover="myAction" runat="server" NavigateUrl="" Text="Test" /> <span id="testArea" runat="server" /> </body> </html> ...but this gives me an error in Internet Explorer, saying "Error: 'myAction' is undefined".…
Last reply by joe_pool_is,
-
Who's Online 0 Members, 0 Anonymous, 97 Guests (See full list)
- There are no registered users currently online