|
Ah. I see - a Help Vampire.
At a guess, he got employed in a job he can't do and is trying to wing it without learning anything...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Dear Sir,
I have not asked you to provide me the code. Thanks for your cooperation.
|
|
|
|
|
|
Next time will take care of these points.
Thanks..!!
|
|
|
|
|
OK....I would appreciate if you could tell me in what way I can ask a question.
Thanks for your precious time.
|
|
|
|
|
|
When I load the data onto the gridView if the string contains a newline character, and the first line ("\r\n"), the grid in the first row of the gridView down the line when viewed slightly inconvenient to stretch the new grid see lines that are hidden, you want to stop in the gridView grid phenomenon is not ? (Ie if there is a newline character and the beginning of a line also appears on a single line of gridView), instead I have to write more code to browse all the columns in the grid newline character removed and the beginning of the line . Can you help me ?
|
|
|
|
|
No, because I have no idea what you are trying to say.
Perhaps an example with what you input, what you get, and what you would like would help?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Is there a way in C# to attach to my systems modem and either make a call, or receive a call, (or preferably both,) and push/play audio to/from two points?
|
|
|
|
|
|
I'm writing code read data of gridView1 has got using Thread but get an error:
[CODE]
// old-style writing
if (string.IsNullOrEmpty(gridView1.GetRowCellValue(i, "Ghichu").ToString()))
//new style writing
if (string.IsNullOrEmpty(GetGridCellValue(i, "Ghichu").ToString()))
//Declare complement the new style writing
public delegate void GridGetEventArg(int rowHandle, string fieldname);
private string GetGridCellValue(int row, string fieldname)
{
if (gridControl1.InvokeRequired)
{
GridGetEventArg get = new GridGetEventArg(GetGridCellValue); //Error 1 'string Vidu.frmTinh.GetGridCellValue(int, string)' has the wrong return type
return gridControl1.Invoke(get, new object[] { row, fieldname });//Error 2 Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)
}
else
{
return (gridControl1.MainView as GridView).GetRowCellValue(row, fieldname);//Error 3 Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)
}
}
[/CODE]
the help you fix ?
|
|
|
|
|
Member 2458467 wrote: GridGetEventArg get = new GridGetEventArg(GetGridCellValue); //Error 1 'string Vidu.frmTinh.GetGridCellValue(int, string)' has the wrong return type Well, the first problem you have is that you defined your GridGetEventArg as a void method, so it doesn't return anything. You can't assign a void to anything.
The second error you are seeing where it tells you that it cannot implicitly convert an object to a string is because you are returning an object from GetGridCellValue , but your method actually expects to return a string so you'd have to either change your method to return object or you need to call ToString() before returning;
This space for rent
|
|
|
|
|
thank you for only help the program run ok. thank you very much.
|
|
|
|
|
I'm glad it's working now. Good job.
This space for rent
|
|
|
|
|
As i am new to programming and i wanted to develop an application for making call using Wi-Fi, So suggest me how to start.
|
|
|
|
|
How "new" to programming?
A VOIP application would be something that I consider way-over-the-head of someone "new to programming".
|
|
|
|
|
Respected Sir ,
Every one in this field of programming and developing software's are new, there is no one who knows everything thats why i referred myself "new in programming". you know if anyone know the word voip then he have knowledge about what it does.
Thank you for your reply to my question and suggestion.
|
|
|
|
|
You are correct, to a point. There's always something to learn in this business. I've been writing code for 40 years now and I don't profess to know everything.
But, the phrase "new to programming" tells everyone who hears it that you've probably got under a year of experience writing code. This says you don't have a grasp of the basics yet. This is a major problem for writing a relatively advanced application like a VOIP phone app.
|
|
|
|
|
I have only 3-4 years of experience in programming in which i have also developed some software. VOIP i know is a big topic to take and develop any application on this, as you have a lot of experience 40 years of life spending in this field is great thank you, i should not say anything it would be disrespect to you. So from here now can you suggest me some beginning approach from where i should start.
|
|
|
|
|
You're not disrespecting me but you are misrepresenting yourself.
Maciej Los already told you where to start. As with everything, research is always your starting point.
|
|
|
|
|
Reversed - you need to send the codz
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
I'm working on a SignalR app. The app automatically serializes message to JSON. However I have noticed that enums not markes as [Serializable] cause the messages to fail to be send.
For the enums that I created it's a simple fix. Just add the attribute.
But how do I fix the enums that are .Net framework enums? On my model that I'm passing I have a copy of the FileSystemWatcher's WatcherChangeTypes enum. Since I can't mark the enum as [Serializable] the service call fails.
I thought of two possible fixes:
1) Create my own enum and copy the .Net values to mine
2) Use an int value and cast/uncast the enum value as needed.
Anyone have any insight on this? I'd really prefer to just be able to use the .Net enums.
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
According to this blog post[^], you can either decorate the property with the JsonConverter attribute:
[JsonConverter(typeof(StringEnumConverter))]
public WatcherChangeTypes ChangeTypes { get; set; }
or add the converter to the serializer globally:
public class Startup
{
public void Configuration(IAppBuilder app)
{
var serializer = new JsonSerializer();
serializer.Converters.Add(new StringEnumConverter());
GlobalHost.DependencyResolver.Register(typeof(JsonSerializer), () => serializer);
app.MapSignalR();
}
}
Although I suspect it might be better to add the converter to the default settings, rather than reusing the same serializer instance for every call:
public class Startup
{
public void Configuration(IAppBuilder app)
{
JsonConvert.DefaultSettings = () => new JsonSerializerSettings
{
Converters =
{
new StringEnumConverter()
}
};
app.MapSignalR();
}
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Looks good. I'll give it a try
Thanks
If it's not broken, fix it until it is
|
|
|
|