|
Greetings
I have a Gridview which contains several dropdownlists.
I need to program everything in c#
Question 1
When I press a certain button (not on the gridview) then I want to change the value of a dropdownlist in a certain row so that the selected value changes with this dropdownlist.
Question 2
How can I programmatically go through each cell in the gridview and determine which object is attached to this cell (dropdownlist, combobex , text field etc.
And determine if it is a dropdownbox what the selected value is in that cell + the DataValueField + the DataTextField.
I need to gram in c# since I have to create and change everything dynamically.
Hope somebody can help me out.
Thanks for all info
Greetings Peter Bellen
bellenp@schneider.com
|
|
|
|
|
I want to make a FileOpenDailog Box , but instead of opening files to select on local computer , I want it to open Files on a FTP server , starting from root directory , showing File and folder as they would appear on normally FileOpenDailog Box further when a file is selected OnOK should download the file to select folder on local computer , any suggestion are welcome , please write to aamir02@tpg.com.au
Aamir
|
|
|
|
|
Hey
When I run my application on windows 2000 I get this exception. But I can't even catch the error! It's something in windows (don't know).
The strange thing is that I can run the application perfect on a windows XP computer...
And when I remove all my threads from my application it works fine to
My application has 1 thread for the GUI and on for the domain (I just start a threadpoll in my panel which calls my facade to do something). On windows XP it works but not on the rest
Thx for the help!
&<log4net:events version="1.2" xmlns:log4net="http://logging.apache.org/log4net/schemas/log4net-events-1.2"><event logger="InterfaceCollector.domain.DAL.ApplicationDirector" timestamp="2007-03-19T21:02:14.2479872+01:00" level="INFO" thread="4" domain="Data Collector II.exe" username="AGVMSTUDENT\Administrator"><message>Collecting interfaces...<properties>
<event logger="InterfaceCollector.domain.DAL.WindowsSystemScan" timestamp="2007-03-19T21:02:15.8603056+01:00" level="ERROR" thread="4" domain="Data Collector II.exe" username="AGVMSTUDENT\Administrator"><message>Error processing .Ink File.<properties><exception>System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
at InterfaceCollector.domain.DAL.IShellLinkA.GetPath( StringBuilder pszFile, Int32 cchMaxPath, WIN32_FIND_DATAA& pfd, SLGP_FLAGS fFlags)
at InterfaceCollector.domain.DAL.ShellShortcut.get_Pa th() in C:\Documents and Settings\AWYDZ\My Documents\Visual Studio 2005\Projects\Data Collector II\Data Collector II\domain\DAL\MainFlow\ShellShortcut.cs:line 80
at InterfaceCollector.domain.DAL.WindowsSystemScan.pr ocessInk(FileInfo nextFile) in C:\Documents and Settings\AWYDZ\My Documents\Visual Studio 2005\Projects\Data Collector II\Data Collector II\domain\DAL\MainFlow\WindowsSystemScan.cs:line 172
&<log4net:events version="1.2" xmlns:log4net="http://logging.apache.org/log4net/schemas/log4net-events-1.2"><event logger="InterfaceCollector.domain.DAL.ApplicationDirector" timestamp="2007-03-19T21:03:58.7482512+01:00" level="INFO" thread="8" domain="Data Collector II.vshost.exe" username="AGVMSTUDENT\Administrator"><message>Collecting interfaces...<properties>
<event logger="InterfaceCollector.domain.DAL.WindowsSystemScan" timestamp="2007-03-19T21:03:59.5994752+01:00" level="ERROR" thread="8" domain="Data Collector II.vshost.exe" username="AGVMSTUDENT\Administrator"><message>Error processing .Ink File.<properties><exception>System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at InterfaceCollector.domain.DAL.IShellLinkA.GetPath( StringBuilder pszFile, Int32 cchMaxPath, WIN32_FIND_DATAA& pfd, SLGP_FLAGS fFlags)
at InterfaceCollector.domain.DAL.ShellShortcut.get_Pa th() in C:\Documents and Settings\Administrator\Desktop\Data Collector II\Data Collector II\domain\DAL\MainFlow\ShellShortcut.cs:line 80
at InterfaceCollector.domain.DAL.WindowsSystemScan.pr ocessInk(FileInfo nextFile) in C:\Documents and Settings\Administrator\Desktop\Data Collector II\Data Collector II\domain\DAL\MainFlow\WindowsSystemScan.cs:line 163
&
Olivier! Thx!
|
|
|
|
|
That is usually either a hardware error or a pointer error. With C# I doubt you are reading past a pointers allowed area.
File Not Found
|
|
|
|
|
It's on all the 4 windows 2000 PC's I tested
gtz
|
|
|
|
|
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt
is what I am going on. When I write c++ code I get this error from writing to memory I don't have access to (oops). So since you are using a COM component there could likely be differences across the OS version. Beyond that I will keep my mouth shut because I don't have any other ideas.
File Not Found
|
|
|
|
|
And how Can I lose this dependency?
thx
|
|
|
|
|
Hello,
Is there any way, or are there any tools to debug code used for design-time stuff by step-by-step debugging, breakpoints, etc.?
Thanks in advance,
Shy.
|
|
|
|
|
In visual studio you have a wonderfull debugger. just place breakpoints (in the column on the left) and use F10 or F11 to go step by step.
gtz
|
|
|
|
|
Normally, all you have to do is create a second project in the same Solution as your control project and create an instance of the control your testing in it. Set breakpoints as appropriate and start the test project.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank you both for your replies Ollie1986 and Dave Kreskowiak,
However, I think my intentions were not clear enough.
I do not wish to debug the code during application runtime, but rather at design-time.
Its possible that I didn't understand you both, but when I set breakpoints and keep designing my controls, they don't break code execution...
Help...?
|
|
|
|
|
It is possible. You need to start a second instance of the IDE and attach the debugger
to the first instance of the IDE (the one that you're using to design).
In the second instance of the development IDE use Debug -> Processes
In the Processes window select the first instance of the IDE and press Attach.
Kind of hard to explain
Maybe this will help[^]
|
|
|
|
|
|
Hi all,
I want to see if there is anyway to implement a C++ project into a C# project. I have a .cpp class that I want to use. Does anyone have any experience and can give me some sort of direction on how to do this. I am using Visual Studio 2005 and implementing in C#. Thanks!
Laura
|
|
|
|
|
I think, the easiest way is to create a new project in c++ enviorment - dll. It isn't much harder than creating single project. And than just add this dll to C# project.
One nation - Underground!
|
|
|
|
|
I have already created tables in access.but i want to have the create query of those tables.
kindly help me
|
|
|
|
|
Hi,
I'm trying to establish the following filter:
this.openFileDialog.Filter = "HTML files (*.html)|HTM files (*.htm)|PHP files (*.php)|All files (*.*)";
The thing is that only the HTML and PHP appear. The other two don't!
What's happening here?
Thx,
Nuno
|
|
|
|
|
Hi
I think your Filter should be:
this.openFileDialog.Filter = "HTML files (*.html)|*.html|HTM files (*.htm)|*.htm|PHP files (*.php)|*.php|All files (*.*)|*.*";
greets
m@u
|
|
|
|
|
Hi,
In one windows application i.e. App1 , hashtables are populated.
Is it possible to use these hashtables in another windows application i.e. App2 ?
It seems not, because App2
What do you think please
Thanks
|
|
|
|
|
Hashtables are serializable if there underlying objects are serializable. To share across app domains you can use same system remoting, windows messaging, and/or the file system to share applications.
File Not Found
|
|
|
|
|
Have just finished developing a windows application. I do not want to use crystal report in displaying report from my database. Can I use a browser (Internet Explorer) to display my report from the database Offline?, can it support the use of parameters in generating the report? If YES, Please furnish or direct me to where I can get the resouces to achieve this task. Please Note - It is a window standalone application (Not an intranet nor web application.
|
|
|
|
|
Hello,
have some problems with debugging windows service. When trying attach to service process then "Attach" button is disabled. Any idea why?
Greetings
|
|
|
|
|
This usually happens when the service is no longer running. The service starts, then stops almost immediately.
What's casuing this depends on how you wrote your service. Normally, a service is written so that in the Start event, an object is created that starts a new thread where all of the service work is performed. You should NEVER put your work code in the Start event, only the code to start the worker thread goes in there.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Don't forget the loop! I always seem to forget a loop in my threads to keep them from exiting.
File Not Found
|
|
|
|
|
How could I forget! :->
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|