Topics
-
- 1 reply
- 884 views
I'm filling a Combox with values from a database. After that I get the last value from another table and want to position the combobox to the correct value. The questions is how? For Each BadgeItem In frmMainForm.cboBadge.Items If BadgeItem.Badge = myDataRow.Item("Data") Then 'Set correct index, but how? End If Next
Last reply by iebidan, -
- 2 replies
- 7.3k views
My application has been using Courier New for a long time, but lately it seems like this font keeps throwing errors whenever someone tries to load the font. I get something like, "System.Font.Courier New does not support style Regular". After digging, I find that this is on a form that is set up to show tabular data using a fixed width font. Courier New has worked on these systems in the past, but I don't know. Maybe a Microsoft Update modified them or something. Anyway, Courier New often causes my applications to crash. Is there another generic, fixed width font that I can use besides this? The only thing I want is for my font to be fixed width and set to …
Last reply by joe_pool_is, -
-
- Leaders
- 1 reply
- 3.5k views
I've been basing my head on this problem for 2 days now and give up ... hoping someone out there has a good idea to help me either fix the issue or pinpoint the actual problem... I have code to perform calculations of big numbers using (int* integer) which uses calloc and realloc to manage dynamic memory, calloc is called to create the initial memory and realloc there after to resize it when needed - take a look at how I am trying to do it... This is the HEADER FILE for my class A: class A { private: int* integer; public: A(const int = 1); A(const string&); A(const A&); ~A(); const A& operator= (const A&); void DeepCopy(const …
Last reply by snarfblam, -
-
-
- Leaders
- 1 reply
- 3.1k views
How can I flush out the rest of the users input (cin)? For example I have the following code: char cCommand; cout << "Enter: "; cin >> cCommand; if (cCommand == 'c') { ... do something ... cout << "Valid Input"; } else { cout << "Invalid Input"; } [/Code] Now this works perfectly fine when the user enters a single character, but what if the user enters something like this: Enter: abc In this case the user enters "abc" my code will out the following: Invalid Input Invalid Input ('a' & 'b' are invalid but 'c' is valid) This is not the behavior I want... Seeing as 'abc' is not 'c' I want to output "Invali…
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 2.3k views
I have a text box on a windows form (Form1) that has the double-click event enabled. When the user double-clicks the text box, another form (Form2) opens that displays codes in a listbox. When the user double-clicks the listbox item in Form2, I need the selected item to populate the textbox on Form1. I am a ASP.NET programmer and am having difficulty achieving this task. Since I cannot use the aspx markup page, I have been unsuccessful in my syntax coding attempts. I know that I need to create a method on Form1, but can't get the syntax correct after double-clicking on the selected item in Form2. An example would greatly be appreciated. Thanks.
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.5k views
i am tring to create Window Form over DirectX Full Screen. is there a way to create such thing? i tried almost all Related Win32 Screen API but the DX Window get minimized.. i am no familiar with the DX API,i search for it on DX SDK no luck. any help will be appreciated.. Thanx.
Last reply by TDMaster, -
- 1 reply
- 1.1k views
hi all. im creating a simulation, which will have, to begin with, an army of stickmen. each man will have a variety of movements, running, walking, skipping, not moving at all etc. now along with the regular boids idea, where they all move in an ordered way, i also want each man doing his own individual thing so it looks like a crap version of the lord of the rings army. my problem is im not sure how to implement this.lets say one single man can have his legs in "walking mode", but his arms could be in running mode. how do i get the wakling method, and the arms running method to run at the same time? this has to work for each individual man, in a field of up to 30 men. af…
Last reply by JumpyNET, -
- 0 replies
- 2.2k views
I am using a number of calendar extenders on a page. the layout that I am using is as follows: <div class="myDiv"> <label>Date Rescinded</label> <asp:TextBox ID="txtBNRescinded" runat="server" CssClass="FormItemStyle" ValidationGroup="view2" Width="90px"> </asp:TextBox> <asp:ImageButton ID="iBtnBNRescinded" runat="server" ImageUrl="~/Images/Calendar_scheduleHS.png" /> </div> The css that I am using is: .myDiv { text-align: left; } label { float: left; text-align: left; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.9em; font-style: normal; color: #000000; width: 17em; padding-left: 6px; paddi…
Last reply by mike55, -
- 2 replies
- 2.8k views
Hello all, I have built a small website using VB.NET and ASP.NET. I am quite unsure about which web hosts to choose from. So, I decided to ask you here, given your various experiences. Also, could anyone please tell me how to upload my website from my computer to that host? Thank you in advance!
Last reply by rollyjam, -
- 10 replies
- 8.2k views
How can this be done? I need to retrieve the backbuffer image and copy it to a texture or whatever device.present() is going to show back to a texture. Thank you
Last reply by SteelRaiden, -
- 1 reply
- 2.6k views
Hello, I have a datagridview control on panel with other controls. This panel sits on a form. Panels AutoScroll property is set to True and the datagridview's ScrollBars property is set to None. I am calulating the height of the grid. As soon as we set focus on the datagridview say by clicking on it the grid it places itself on top of the panel. It jumps up. As a result i have to scroll up to view the other controls. Here is the code - for (int i = 0; i < 100; i++) { this.dataGridView1.Rows.Add(i.ToString()); } int ht = this.dataGridView1.ColumnHeadersHeight; ht += ((this.dataGridView1.RowTemp…
Last reply by coffeejohn, -
- 0 replies
- 979 views
I have an asp:DataGrid in my page and it is just like a text area... I can't click any cell, is this supposed to be like this? if not, how can i add an event to my asp:DataGrid? this is the code behind: void Page_Load(object sender, EventArgs e) { conn= new OleDbConnection(str_conn); conn.Open(); cmd = new OleDbCommand("select * from items", conn); dg1.DataSource = cmd.ExecuteReader(); dg1.DataBind(); conn.Close(); } and this.. <asp:datagrid ID="dg1" align="center" Runat="server" class="grid" width="80%" > <HeaderStyle CssClass="header"></HeaderStyle> <ItemStyle CssClass="item"></ItemStyle> <Alt…
Last reply by cyber_bafu, -
-
- Administrators
- 1 reply
- 2.2k views
Here is the beginning of my code. The issue that I have is that this program runs in a CNC Machine. The OS is windows XP and the Machine runs in a real time Operation System. windows launches and then launches the Machines software from the Startup folder in the Start button. it takes a few minutes for the machine to completely launch its software. I need to launch my program from the startup folder also so that the operator does not have to. The problem is that my program will run a lot sooner then the machines OS so when my program tries to initialize the API's it will fail. I have a temp solution to Sleep(120000) on form1_load this helps. But if I load the software and…
Last reply by PlausiblyDamp, -
-
- 2 replies
- 812 views
I've got a 8x8 array. Each element of the array will contain an object that consists of a letter, a color, and a double value. Creating and working with arrays in my class is not the hard part. The hard part is how do I make them publicly accessible outside of my class? In other words, how would I write the Get and Set properties for it? I'm guessing I should not be using the standard 8x8 array, and instead I should be using ...what? And, how would I implement it? I'm looking to stay within Microsoft's Best Practices, if I can. As always, help, links or advice is always appreciated!
Last reply by joe_pool_is, -
- 0 replies
- 633 views
I am currently working on a small project that includes scripting via c# or vb.net. This project will include several levels of scripting, with different access to methods, ie Menu rendering, ingame stuff, and an even deeper level, possibly for changing stuff like how maps are drawn, but not sure about it yet. Its intended to be used on a client(the project is an online game engine if your curious) I already have the compiling down, since i will be cannibalizing code from a previous project(was one to play around with scripting if your wondering) One issue i have is that i never really got far with appdomains. The most i got was that they can limit access between asse…
Last reply by masshuu, -
- 0 replies
- 1k views
I built a VSTO add-in using .net 2008 that pulls some data out of a database and writes it to an Excel 2007 worksheet. This works perfectly. However, I would like to create a easy method that allows the user to define where the data should be placed. Excel already has a built-in wizard for this. For the life of me, I cannot figure out how to call the built-in FunctionArgument dialog. Can anyone help?
Last reply by kcwallace, -
-
- Administrators
- 3 replies
- 1.1k views
I have a console application. I would like to use uint for the exit code, eg. Environment.Exitcode = 0x80070005 Is there a method for returning unsigned integers or long integers? The reason is, I'm catching exceptions and want to return the native windows error code, such as System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Last reply by forgottensoul, -
-
-
- Administrators
- 1 reply
- 800 views
Hi, Can any one help me out to figure out a way to place the win32 application in a webserver. I am actually developing a win32 application that is supposed to be integrated to a website. So, i am in need of placing it in a webserver in a remote location. Please let me know if this is possible. Thanks. maddotnet
Last reply by PlausiblyDamp, -
-
- 0 replies
- 4.7k views
I have a lot of data already displayed in a DataGridView object. To sort it, add custom rows, etc., my plan is to take all of that data and copy it over to a DataTable object, manipulate it, then just copy it back over to the DataGridView object // dataGridView1.DataSource = dataTable1.DefaultView; However, I can't seem to find a way to get the data from the DataGridView object over to the DataTable object. Everything I try says the DataTable method is Read Only. Does anyone know how to do this? Regards, Joe
Last reply by joe_pool_is, -
Calling a function in one page from another
by Guest wberg-
- *Gurus*
- 3 replies
- 5.1k views
I am opening a modal window from one web page, doing what I need to do on it and then closing it. Is it possible to call a function from the modal form that is sitting on the main form? If so, how do you do it?
Last reply by JohnsHandle, -
-
Who's Online 0 Members, 0 Anonymous, 27 Guests (See full list)
- There are no registered users currently online