|
i am inserting data in access database. i actually am inserting data in access DB in following manner
INSERT INTO SPECIALOFFER (Description,ImageS) VALUES ('" + this.txtdesc.Text + " ','" + filename + "')"
but the problem i am facing here is that the value for txtdesc.text is as follows
textdesc.text="\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tRaheel Iqbal\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t \r\n"
thisi s inserting data in DB but the field for description is not taking any string its showing empty value..
datatype for description is memory.
can anybody please help me to solve this problem
|
|
|
|
|
raheeli wrote: datatype for description is memory.
I assume that you mean the data type Memo, the text type that can hold more than 255 characters.
Are you really sure that the value is empty? As I can se, the string starts with a line break, that means that you have to heighten the rows in Access to see the other lines in the field.
---
b { font-weight: normal; }
|
|
|
|
|
I have to develop a system which connected with radio device. & i listen radio all the time & differentiate different CTCSS Tones + DTMF Digits + Detect RF Audio & all the thing have to generate.In short it is Soft Phone with radio device for mobile communicaion.
Plz help me.
|
|
|
|
|
Hi all, i have a question, it's possible to fill mydataset with all the table of my database without make a specifically query for all the tables?
I don't know if is possible but i want to do the next things:
a)fill a dataset with all the tables of my database;
b)with the dataset check if i have to update some fields, or adding tables into mydataset;
c)update all the database with my alteration;
Regards
|
|
|
|
|
I have written an application that uses pop-up forms to view data etc.
Everything works perfectly well until you try and close the pop-up. I am using the this.close() function and instead of closing the pop-up window leaving you viewing the main window it closes the whole application.
I then reverted to using the this.hide() mehtod and while it works if i try to go back to the hidden window (ie try to re-open the form with different data) it more often than not crashes
if anyone has any ideas then that would be appreciated!
Regards
Paul.
|
|
|
|
|
Odd. According to this[^] article you seem to be doing the right thing.
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
How are you creating the pop-up windows?
Are you doing something like this:
<br />
PopupForm popup = new PopupForm();<br />
popup.Show();<br />
or this:
<br />
PopupForm popup = new PopupForm();<br />
DialogResult dr = popup.ShowDialog();<br />
...<br />
And when you close the popups are you doing this:
class PopupForm {
private void CloseButton_Click(object sender, EventArgs e){
this.Close();
}
}
or this:
<br />
PopupForm popup = new PopupForm();<br />
DialogResult dr = popup.ShowDialog();<br />
...<br />
popup.Close();<br />
If by mistake you are calling this.Close from the parent window, it will close the parent and all of the sub-windows.
|
|
|
|
|
I am using the code
new popupformname(data being passed).show()
to open the form, then using
private void btnClose_Click(object sender, System.EventArgs e)<br />
{<br />
this.Close();<br />
}
on the pop-up form to close it.
Thanx for the replies, its appreciated
|
|
|
|
|
That's strange. Everything should be working.
First try assigning the instance of the form to a variable:
<br />
popupformname form = new popupformname(data being passed);<br />
form.Show();<br />
If this doesn't work, can you post all of the code you are using for the parent form and the pop-up form?
I'll try to help you get this working.
|
|
|
|
|
Hi! I'm a newbie and I've wondered how JTable can be implemented in C#. Now I found out that there is an existing class in C# called DataGrid but it can only be used if there is data bound to it from the database. What if I just wanted to generate a number of (empty) cells (horizontally and vertically)? I saw some existing codes in this site but most of them are hard to understand, Is there any other simple way of doing it?
Thanks a lot!
|
|
|
|
|
|
That's not true. You can just create a new DataTable, add columns to it, fill it with data and then bind it to the grid. You won't need a database to do so.
Something like:
DataTable dt = new DataTable();
dt.Columns.Add("Col1", typeof(string));
dt.Columns.Add("Col2", typeof(double));
dt.Rows.Add(new object[] { "Row1", 3.5 });
dt.Rows.Add(new object[] { "Row2", 2.1 });
dt.Rows.Add(new object[] { "Row3", 2341.3646 });
myDataGrid.DataSource = dt;
|
|
|
|
|
Hello All,
Actually I want to port a windows application written in C# to a user control so that i can embed that control in a web browser and be facilitated from all its feature without installing it.(Only the .Net framework is required).
Its working fine but gives me exception when i go beyond the scope of the browser for example i want to save a file in C:\ drive and do some registry operations.
It gives me System.Security.Permissions.FileIoPermission and etc.
Please tell me how to set all the permissions for this control so that i can have full control over the machine on which this control is running in a web browser.
Thanks alot in advance,
Best Regards,
Rizwan Ahmed.
|
|
|
|
|
Anyone know if it is possible to montior the stop, pause and play button controls on the WMP ? I need to know when the user clicks the stop button. I cannot just rely on the PlayStateChange event either, since the player will enter the WMPPlayState.wmppsStopped state at the end of a song. Thanks for any help you may have....
|
|
|
|
|
The states that it goes through are different, I think, but you can also check the position within the track, to see if it stopped at the end.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have to design a system to listen radio & do some DSP task in radio(on Analog to Digital converted) signals.
This task is CTCSS detection/genaration,DTMF detection/genaration, RF Audio detection & also other filtering processing with making of filter graph.
All are done with C#.Net.
Can you help me?
-- modified at 2:18 Monday 16th January, 2006
|
|
|
|
|
As far as I am aware, DirectShow is dead. Does anyone have any ideas what we're supposed to use to play video, to capture video from devices, etc. in the future ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I don't think DShow is dead; it's just not part of the DirectX SDK since it is not limited to games. If what I've read is true, DirectShow is now part of the Platform SDK. *edit* according to this page[^], it was moved to the PSDK this past April. *edit*
What are managed code developers supposed to use? Well, we can use DirectShow via COM interop. There's a good CP article on this here[^]. I think I've mentioned to you before, the WinFX APIs are really where everything's headed; after talking with you recently about this, I looked into WinFX and the multimedia support really blows away what is available today. I saw some a demo of video being played back as the "texture" on interactive 3d objects...all in a pure WinFX application.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Little House on the Flickr
Judah Himango
|
|
|
|
|
Yeah, I've seen WinFX demos, in Seattle. I agree, it's awesome. But, this is what I'm afraid of. That Microsoft is pushing us to use WinFX. Why am I afraid ? Because I can't afford to tell people I work for that my code now targets only Windows XP and above.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
If Windows 98 & 2000 compatibility is really that important, your best bet is probably to use DirectShow via COM interop.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Little House on the Flickr
Judah Himango
|
|
|
|
|
Hi, it's been a long time since my last post here, but here my new one is:
Well, I recently installed visual c# express edition 2005, which seems to work fine. Later I installed the DirectX sdk (december 2005 release). As the readme tells me, only the documentation for managed DirectX should be available in visual studio 2005 express edition document browser. Well, that's fine for me, but there's nothing in visual studio 2005. I installed the express edition in c:\Microsoft Visual Studio 8\, which is not standard, but can this be the reason? I can tell my project where to look for the directx dlls, but the help isn't included though documentation was installed: Nothing in the documentation browser, nothing if I move my mousecursor over DirectX specific code and nothing if I hit F1. Rest of the sdk seems to be installed properly (external documentation, debug version, etc). So how can I fix that? Hope someone can help me.
Thanks.
|
|
|
|
|
The documentation should be in "C:\Program Files\Microsoft DirectX SDK (December 2005)" or some similar folder.
|
|
|
|
|
Well, that's not what I meant. I know where to find the documentation. My Problem is that I can't use the (let me call it) advanced help in visual studio. As I read DirectX help should be integrated in visual studio automatically when visual studio is installed and you install the DirectX SDK. But when I install, there's nothing in VS. Due to the fact that I use Visual C# 2005 express edition only the managed DirectX help should be available (referring to the readme of the December 2005 DirectX SDK), but it is not for me. So that's the problem. I'd still appriciate any suggestions.
Thanks
|
|
|
|
|
I want to actually extract comments ( of both '//' and '/* ..... */ styles ) from a C# code file. I want some halp regarding how to implement this ?
I want to extract all comments as follows
1. starting with //
2. comments inserted in old /* ....... */ style.
please give me any hints or links
ragards,
|
|
|
|
|
You can write a tool that loops over all your source files, opens them, and uses regular expressions to search for the above mentioned patterns, and removes them.
|
|
|
|