|
Thanks. I did the same. But how come this worked for VB.NET, stupid VB.NET
|
|
|
|
|
hi all
I need to insert a date value to the database through the form(using insert button).in the database i have declared date as datetime type.while inserting the data iam getting some problems.is there any way to insert only date (without time)through the form.
pintoo
|
|
|
|
|
No. Time will be inserted automatically. You can avoid showing the time when you do select. Look into Convert[^] function.
|
|
|
|
|
Hi All
I wount to creat Form In .Net Have One ProgressPare .
And I Wount to Call this Form In Any OPeration Fill DataTable From DataBase The ProgressPare Value is Equal The Persenteg of number Rows Is Load in to Datatable to The Number Of Rows from DataBase .
I wount to know the Idea Who I Can do that ?
Thanks For Any Body Hellp me
Thaer
|
|
|
|
|
Thaer Hamael wrote: I wount to creat Form In .Net Have One ProgressPare .
What is ProgressPare ? You can use ProgressBar control. Set the Max value to the rowcount of your datatable.
|
|
|
|
|
Thanks Mr
But I need To create Form to call it for more one form fill DataTable
Thaer
|
|
|
|
|
Hi All,
I have a richtextbox named "editor".I want to save its "text" as a dtd file.how can i use.urgent response will be appriatiated
regards,
chanzeb
|
|
|
|
|
chanzeb wrote: I want to save its "text" as a dtd file.
what is DTD file ?
|
|
|
|
|
dtd stands for "document type definition".used to define xml docment rules and elements.
|
|
|
|
|
If you know the file format and encoding you can write that. I don't think that rich editor will provide inbuilt methods for creating DTD files.
|
|
|
|
|
i want example on assembly versioning with code
sekhar
|
|
|
|
|
|
give the exlpanation on versioning in assembly
|
|
|
|
|
give the cup of tea
EDIT: I suppose I'd better explain. What you need to do is go away and do some research, Google[^] is a very good resource for this. If you still can't find what your looking for or get stuck on something specific then come back and ask for help.
When you ask for help you should state what the specific problem is, you should also say what you've tried and what research you've done. Finally you should be polite in your questions, you should take time to write the post and make sure you do the simple things like say please and not demand things.
When you post a question that comes across as being lazy, impolite and in fact rude all you'll get is stupid answers (like "And I want a cup of tea").
|
|
|
|
|
thanks for u r suggestions ,i will follow comming day what u specify
|
|
|
|
|
Would you please give me a simple example regard sending and receiving data by means of USB Port?
Mansureh Shahraki Moghaddam
|
|
|
|
|
Normally you don't talk to the USB port, you talk to a device that is connected via the USB.
example: a USB printer uses a printer driver, you talk to that driver which presents
itself as a printer (you don't have to be aware there is USB involved at all).
same is true if you have a USB-to-RS232C cable, or a USB-to-Ethernet cable.
When I bought my USB-to-serial cable, it came with a CD-ROM containing a driver.
When I installed it, it turned the port into a regular serial port, so it shows up
in all serial port enumerations, and most/all serial apps can use it, whether
HyperTerminal or some .NET based app using SerialPort class.
The app never is aware the USB-based serial port is connected in a different manner,
all the nasty details are hidden by Windows and the device drivers.
If the above does not satisfy you, you can build your own electronics target (say
a microcontroller based design), give it a USB interface, an operating system and a USB
driver; at PC side you would also need your own device driver so you can support read
and write operations from and to your device. Most often it is not worth the effort,
why reinvent the existing protocols as used on serial ports, Ethernet, etc?
|
|
|
|
|
Hi again,
Here again I want to learn USB connection between a PC and a MCU.
I know that there are some chips like FT232 or SDM-USB_QS-S that should be placed between PC and USB.
As I know these chips are called USB-to RS232 drivers or converters.
The thing I need to know is not about hardwired connection between PC USB cable and MCU. I need to know how to write a C# program to establish a send and receive pipe between the PC and the MCU.
May you please help me again, as you helped me for serial port?
Sourie
|
|
|
|
|
Hi,
if there is a USB-to-serial cable involved, it is a serial port for all intents and
purposes to both the PC and the peripheral. Please reread my previous reply.
if it is a strict USB connection (PCB-USB-microprocessor) without a serial port involved,
then it requires special software on both sides. You may be lucky and get such
software from your microprocessor vendor (i.e. both source code for the uP side, and
a working driver for the PC side); if not, you would have to develop both, which seems
unrealistic to me. For sure I would not do such thing.
|
|
|
|
|
I want to work with serial port, I found a good example in this site. And I learnt a little about serial work in c#.
But now I want to now how could I update serial port communication protocol in C##? Like; how could I change the value of serial port parameters: Parity, BaudRate, StopBits, DataBits ect.
Thanks in advance
Mansureh Shahraki Moghaddam
|
|
|
|
|
you set serial port parameters thru the SerialPort class, use one of the constructors
and/or one of several properties (such as SerialPort.BaudRate).
|
|
|
|
|
Thank you so much for helping me.
You mean like these codes:
_serialPort.Open();
_serialPort.ReadTimeout = 5000;
_serialPort.WriteLine("*cls");
But what about wiring? Is that enough to estanbish a "Null Modem" connection?
Sourie
|
|
|
|
|
Hi again,
I found this link. I think it could be helpful for me:
http://www.codeproect.com/KB/cs/serialcommunication.asp
Sourie
|
|
|
|
|
Hi again.
When you connect a peripheral to a PC, you typically need a straight cable with one
male and one female connector.
When you connect two PCs, you would need a null modem cable, which has two female
connectors.
There is nothing you can do about that in software, your cable must match the situation.
|
|
|
|
|
Thanks for your reply.
Actually I want to connect an AVR MCU to PC.
As I studied these days, I think I should make a NULL MODEM connection between AVR and Serial Port of PC (but by inserting a MAX232 chip). It means that RXD and TXD from PC should be connected to TXD and RXD of MCU and DTR of PC should be connected to its DSR and CD, also its RTS should be connected to CTS.
I think this wiring is enough and after that I should write a C# code for Pc and an assembly code for MCU to communicate to eachother.
Sourie
|
|
|
|