- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
51 Posted Topics
Hi, I have [ICODE]DataTable[/ICODE]'s column that is a source of rows for combo box - it loads rows like it should. But, binding [ICODE]ComboBox.SelectedValue[/ICODE] does nothing. I think that this is some problem with comparison between the value provided by [ICODE]BindingSource[/ICODE] and the values from [ICODE]ComboBox[/ICODE]. [ICODE]BindingSource.Position[/ICODE] iterates through collumn … | |
Re: If by "each column contains a Textbox." you mean that there is a textbox outside the Datagrid object, where user can input values, and you want to add a new row filled with data from those textboxes, you can do it like that: [CODE] //You should already have a dataset … | |
Is it possible to convert [ICODE]std::FILE*[/ICODE] to [ICODE]iostream[/ICODE]? | |
I have network with one router and two computers connected to it (one through wireless connection). I can create 'Remote Desktop Connection' from one computer to other but connection is broken after a few seconds. Ideas? | |
Hi, I have a custom DataGridViewColumn which uses custom editing control to edit values of cells. The editing control shows up in a edited cell when I want to edit a cell :), and that works just as it should. The problem is that my editing control is much bigger … | |
Hi, I'm not sure if this is the right place to post it, but... I have VMware Player (newest version) installed on linux host, the guest is Windows XP. When I switch to 'Unity Mode' something like this appears (link to image): [URL="http://img232.imageshack.us/img232/603/vmwareunitylinux.png"]http://img232.imageshack.us/img232/603/vmwareunitylinux.png[/URL] I can click it - nothing happens. … | |
Is it possible to use custom type converter to convert types like that: [CODE=CSharp] class MyTypeConverter: TypeConverter { //... all the 'converting' methods here } [TypeConverter(typeof(MyTypeConverter))] class Type1 {} class Type2 {} Type2 object2; //and here, is this possible? (and how to make it happen) Type1 object1 = object2; //or … | |
Hi, Is it somehow possible to determine the TableAdapter related to the given table?? I have DataSet with one strong-typed DataTable and related TableAdapter. Please, don't ask why :) but I need to determine related TableAdapter of given DataTable or DataTable of given TableAdapter having only one of them. Possible?? … | |
The code is: [CODE=JAVASCRIPT] var func = function(){ this.a(){ //here 'this' refers to 'func' }; var b = function(){ //here 'this' refers to 'window' }; }; [/CODE] This is kind of beginner question, but are there any simple rules that I can follow to determine what context I'm currently in? … | |
I have a reference to some string. I need to copy (clone) that string. This is what I tried [CODE=PHP] $newString = $refToString; //this just copies the ref - no new memory allocated $newString = clone $refToString; //this creates "__clone method called on non-object" error [/CODE] If anyone knows how … | |
Please somebody help me out and explain the difference between: [CODE=JAVASCRIPT] for(var i in temp){ this["get" + i] = function(){return i;} } [/CODE] and [CODE=JAVASCRIPT] for(var i in temp){ (function(){ this["get" + i] = function(){return i;} })(); } [/CODE] Thanks in adv | |
Hi! How do I debug design-time error - it just shows up when I view my page in 'Design' mode, but I don't know where in the code it comes from. How do I check it? Please, click to see the error: [URL="http://i42.photobucket.com/albums/e321/watherby/daniweb/Screenshot.png"]http://i42.photobucket.com/albums/e321/watherby/daniweb/Screenshot.png[/URL] Thanks | |
Is there any way to know that there was an 'insert' into SQL Server's database without checking it like every minute (in C# / VB.NET)? Thanks in advance. | |
Hi! Is there any way I can save a database as an SQL file? Or at least save schema if saving data is not possible. Thanks in adv. | |
Hi, I need to get event handler's argument in Firefox3 - but it does not have any global 'event' variable like IE nor it passes an argument to the handler. How do I get this argument then??? [CODE=JAVASCRIPT] function doSomething(e) { if(!e) var e = event; //for IE alert(e); //It … | |
Hi, I've created 'Windows Control Library' project in VS2005, created one control in this project which inherits from UserControl class like this: [CODE=CSHARP] class MyControl : UserControl { MyControl(){_myproperty = 0;} int _myproperty; int MyProperty { get { return _myproperty;} set { _myproperty = value} } } [/CODE] So, now, … | |
Hi, I have one application with 'normal' user privileges. This application runs another one which has 4755 permissions. Does this mean that the second application will run as root??? I believe not... The second application tries to setuid(0) and fails. How to tackle this problem so I can run second … | |
I need to check if registry value exists from within .bat ('batch') file, and it seem to be quite hard to do - not many ideas on it I have found. Maybe you can help? I believe I should use the reg.exe programm to do this but what syntax should … | |
Hi, 1) Is it better to create one dataset for the whole project than many smaller (like one for each form)? 2) If I have 2 datasets, both has tableadapters that connects to the same data. Both table adapters load data to tables. Now, data in one of those tables … | |
Hi, What I have: 1) Table in SQL Server 2005 2) Table contains column of xml datatype 3) The column has Xml Schema defined I need to do three things (in C#): 4) Get the Xml Schema of the collumn 5) Create dataset based on that xml schema 6) Load … | |
Hi, I need to create list of links, like: Link1 Link2 Link3 ... which could be dynamically created during runtime. Is there any standard .Net control that can contain LinkLabel objects so that I can easily add them and remove? | |
Hi, I have two datatables: Projects and Employees. [ICODE]Projects[/ICODE]: ID NAME EMPLOYEES [ICODE]Employees[/ICODE]: ID NAME I need to connect one project with multiple employees. Do I need to dynamically create separate table '[ICODE]RelatedEmployees_<unique number here>[/ICODE]' and store this table's name in field [ICODE]EMPLOYEES[/ICODE] of table [ICODE]Projects[/ICODE] to achieve this??? Please … | |
Hi, I'm looking for the answer ... to following question: How it all works, I mean how my code, even assembler code or opcode, gets executed? I don't want to read about 'moving pointer on the call stack' or 'processor does one thing or other' or anything like that. I'd … | |
[CODE=C]FILE* f = NULL; fclose(f);[/CODE] Terminates with: 'No source available for "fclose@@GLIBC_2.1() " ' [CODE=C]FILE* f = NULL; ftell(f);[/CODE] Terminates with: 'No source available for "ftell()"' Why those functions does not return error value but terminate whole program? How can I safely tell if file is opened in C and … | |
Is there any difference between C and C++ pipes implementation? Is there any C++ library that makes using pipes easier? I ask those questions because there are many 'wrapper' classes in C++ that wraps C (like string, vector etc.) Is there anything that 'wraps' pipes? <Thanks> | |
I am using wireless connection ad-hoc. card 1 is on linux, card 2 on windows xp. No encryption. The connection keeps connecting/disconnecting periodically (period = about 2sec.) On LINUX: iwconfig gives: [CODE]wlan0 IEEE 802.11g ESSID:"local" Nickname:"FC8" Mode:Ad-Hoc Frequency:2.412 GHz Cell: 02:E0:01:22:D1:62 Bit Rate=11 Mb/s Tx-Power:29 dBm Sensitivity=0/3 RTS thr:off Fragment … | |
The program as it is generates: [ICODE]>Parent1 >Parent2 >In Child >Parent3 Successfull...[/ICODE] If I remove the comment from line 31 - just below "//THE PROBLEM:" so the "gets(buff);" is executed it gives: [ICODE]>Parent1 >Parent2[/ICODE] and... waits (both parent and child processes running - both waiting). I would like to be … | |
[CODE=C]int test[2]; pipe(test); FILE *to, *from; if ((to = fdopen(test[1], "w")) == NULL) return 1; //error: could not create stream if ((from = fdopen(test[0], "r")) == NULL) return 1; //error: could not create stream fputs("test text", to); char testBuff[5]; fgets(testBuff, 5, from); puts(testBuff); //This should display 'test' in console - … | |
The connections are configured like: [ICODE]Linux:[/ICODE] eth0 Link encap:Ethernet HWaddr 00:1B:FC:6C:49:8C inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:218 Base address:0x6000 [ICODE]Windows:[/ICODE] Ethernet adapter Local Area … | |
I have (in main()) something like: [CODE=C]int toChild[2], fromChild[2]; pid_t pid; //Creating pipes: if(pipe(toChild) != 0){ return 1; } if(pipe(fromChild) != 0){ return 1; } //Forking: if((pid = fork()) == -1) return 1; if(pid == 0) {/* CHILD */ close(toChild[1]); close(fromChild[0]); //create streams: (they are not used in this example) … | |
What I would like to do is to redirect stdout of some application, let say A to another application, let say B. All this from another external application (written in C). Any ideas? | |
Hi, I need to load modules to connect to the internet, so I've created a script. Script file is called 'connect.sh' is owned by root and has permissions set to 4755, so it is executed as root, even if run by non-root user (at least I think so). I still … | |
The problem is that after I use 'fast user switch' -> I see the login screen with all the 'normal' user accounts listed but if I would like to use 'Ctrl+Alt+Del' to login to other (unlisted) accounts like 'Administrator' it doesn't work - 'Ctrl+Alt+Del' does nothing. The same thing when … | |
Hi Is it possible to overload return() function for some part of code (ie. for the scope of some class)? I would NOT like to define separate function to do 'other stuff' and use it on every return like that: return(myFunction()); Is it possible? Maybe there is some other trick? … | |
Hi! I have a problem with this line: GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, LOCK TABLE ON test.* TO user1@localhost IDENTIFIED BY "abcdef"; Here is what I do: [CODE=SQL] >mysql -h localhost -u root -p Enter password: ******* Welcome to the MySQL monitor. Commands end with ; or \g. Your … | |
:The problem: enum:[CODE] enum Choice { A, B, C }[/CODE] I would like to pass it to function like that:[CODE] void function(Choice.A | Choice.B) { //how do I determine what was passed here?? //how to handle two or more values?? }[/CODE] Thanks in adv | |
Hi all! I need to create regex that matches everything before some specified (whole) word. Lets say I need everything before 'have' in such text: What ^7^*#/> I @@3->;: have to do with this *~~@}}], hmm...? ...so I would like to have "What ^7^*#/> I @@3->;: " as a result … | |
Hi all! I need to create regex that matches everything before some specified (whole) word. Lets say I need everything before 'have' in such text: What ^7^*#/> I @@3->;: have to do with this *~~@}}], hmm...? ...so I would like to have "What ^7^*#/> I @@3->;: " as a result … | |
Hi all! I need to create regex that matches everything before some specified (whole) word. Lets say I need everything before 'have' in such text: What ^7^*#/> I @@3->;: have to do with this *~~@}}], hmm...? ...so I would like to have "What ^7^*#/> I @@3->;: " as a result … | |
Re: What error do you have when trying to update from Windows Update? If some applications doesn't work try reinstalling them. If they wont reinstall remove them with[B] Windows Installer Cleanup Utility ([/B][URL]http://support.microsoft.com/kb/290301[/URL]) first. Good luck | |
When I try to login to my computer form local network it denies me to do so and automatically turns off 'fast user switching' and 'logon screen' and starts to behave like it was a part of a domain (it is only in workgroup not in domain). After that I … | |
I use XP. When I insert CD/DVD into any of the drives the system hangs - It seems that system waits for some data from this recently inserted CDs/DVDs, because after about 15~20 seconds everything is ok again - this time is necesary for system to get access to CD/DVD … | |
[code] Set Worksh = Worksheets("SampleWorksheet") Set myRange = Worksh.Range("F1") msgbox myRange.Value, , "" 'WORKS: current value in "F1" cell is displayed myRange.Value = 100 'DOESNT WORK! : value in cell DOES NOT change [/code] I have no idea - it was supposed to work. Any ideas? Thanks | |
I have two connections and one problem: 2) first is my Internet connection: [B]My computer[/B] (192.168.0.110) [B]>[/B] [B]Router[/B] (LAN address: 192.168.0.2/ WAN address: 10.67.35.65) [B]> my ISP [/B]1) second is my LAN connection: [B]My computer[/B] (192.168.0.108) [B]>[/B] [B]Other LAN computers[/B] (192.168.0.*) The problem: when I have only Internet connection switched … | |
Would you be so kind and tell me what does ^ symbol mean in definition of object, example: [code]class ^Object[/code] Thanks in adv | |
Short example of problem I have: [code]class A{ public: int x[10]; }; int main(){ int A::*pointer = &A::x; A a; a.*pointer = 3; return 0; }[/code] I got an error: cannot convert from 'int (A::* )[10]' to 'int A::* ' in second line of 'main()' I tried to remove '&' … | |
Re: The worse thing I can do for you is to write you the whole thing, but I can help: 1) Check the distance between two given centers. 2) Sum up the radiuses of the first and second sphere if the sum is bigger or equal to distance (see point 1) … ![]() | |
I need to check what hardware is installed in the computer using C++. Especially I need to check what graphic card, CPU and HDD is present in the machine of user of my program. Thanks in advance Edek | |
In the previous versions of Adobe Reader there was (as far as I remember) something that might be called "dynamic scrolling. I could use this by holding middle button of mouse and moving mouse up or down what caused the page to scroll. I can't find where to enable it … | |
Basicly I need to know how to refer to declared external static variables (GlobalMirror, GlobalMirror2 etc.) inside the class 'Initializer' and initialize them. The following code doesnt work (compiler doesnt see my 'extern' declarations inside the class Initializer): [code] #ifndef INITIALIZER_H #define INITIALIZER_H #include "Mirror.h" #include <iostream> extern Mirror GlobalMirror; … |
The End.